Skip to content

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

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

dcherednik
Copy link
Member

1st step to fix MacOS build

Copy link

github-actions bot commented Jan 11, 2024

Note

This is an automated comment that will be appended during run.

🔴 linux-x86_64-relwithdebinfo: some tests FAILED for commit 3287e47.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
59841 50629 0 11 9196 5

🔴 linux-x86_64-release-asan: some tests FAILED for commit 3287e47.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
15865 15733 0 31 93 8

@dcherednik dcherednik enabled auto-merge (squash) January 12, 2024 10:12
@@ -18,7 +18,7 @@ TString TLogoBlobID::ToString() const {

void TLogoBlobID::Out(IOutputStream &o) const {
char buf[240];
sprintf(buf,
snprintf(buf, sizeof(buf),
Copy link
Member

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() << ':' ....

Copy link
Member

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),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

считаю, что это другая задача, которую нужно делать в другом PR

@dcherednik dcherednik merged commit 30390d7 into ydb-platform:main Jan 12, 2024
This was referenced Jan 15, 2024
@niksaveliev niksaveliev mentioned this pull request Jan 29, 2024
@vitstn vitstn mentioned this pull request Jan 29, 2024
@starlinskiy starlinskiy mentioned this pull request Feb 12, 2024
@vitstn vitstn mentioned this pull request Feb 16, 2024
@dcherednik dcherednik deleted the macosbuild_1 branch March 22, 2024 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants