-
Notifications
You must be signed in to change notification settings - Fork 638
sprintf -> snprintf replacement inside ydb code #952
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Note This is an automated comment that will be appended during run. 🔴 linux-x86_64-relwithdebinfo: some tests FAILED for commit 3287e47.
🔴 linux-x86_64-release-asan: some tests FAILED for commit 3287e47.
|
@@ -18,7 +18,7 @@ TString TLogoBlobID::ToString() const { | |||
|
|||
void TLogoBlobID::Out(IOutputStream &o) const { | |||
char buf[240]; | |||
sprintf(buf, | |||
snprintf(buf, sizeof(buf), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest you to rewrite it like this:
o << '[' << TabletID() << ':' << Generation() << ':' ....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
считаю, что это другая задача, которую нужно делать в другом PR
@@ -18,7 +18,7 @@ TString TLogoBlobID::ToString() const { | |||
|
|||
void TLogoBlobID::Out(IOutputStream &o) const { | |||
char buf[240]; | |||
sprintf(buf, | |||
snprintf(buf, sizeof(buf), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
считаю, что это другая задача, которую нужно делать в другом PR
1st step to fix MacOS build