Skip to content

Replace sprintf() call with snprintf()#785

Merged
mhucka merged 6 commits into
masterfrom
mh-fix-sprintf
Jun 21, 2025
Merged

Replace sprintf() call with snprintf()#785
mhucka merged 6 commits into
masterfrom
mh-fix-sprintf

Conversation

@mhucka
Copy link
Copy Markdown
Collaborator

@mhucka mhucka commented Jun 18, 2025

clang on MacOS complains that sprintf() is insecure and should be replaced with snprintf().

clang on MacOS complains that sprintf() is insecure and should be
replaced with snprintf().
@mhucka mhucka requested review from fdmalone and pavoljuhas June 18, 2025 22:22
@mhucka mhucka marked this pull request as ready for review June 18, 2025 22:22
@mhucka mhucka enabled auto-merge (squash) June 18, 2025 22:22
Comment thread pybind_interface/pybind_main.cpp Outdated
Copy link
Copy Markdown
Collaborator

@pavoljuhas pavoljuhas left a comment

Choose a reason for hiding this comment

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

Let us switch to c++ if compiler makes us to do so.

mhucka and others added 2 commits June 20, 2025 21:31
Per [review comment by
@pavoljuhas](#785 (review)),
rewrote the assignment to `msg` to use C++ types.
@mhucka mhucka requested a review from pavoljuhas June 20, 2025 21:33
@mhucka mhucka disabled auto-merge June 21, 2025 03:56
@mhucka mhucka merged commit 37ab158 into master Jun 21, 2025
48 checks passed
@mhucka mhucka deleted the mh-fix-sprintf branch June 21, 2025 03:56
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