The Wayback Machine - https://web.archive.org/web/20201201005528/https://github.com/microsoft/cpprestsdk/pull/1462
Skip to content
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

fix format-truncation on 64bit #1462

Open
wants to merge 1 commit into
base: master
from

Conversation

@priv-kweihmann
Copy link

@priv-kweihmann priv-kweihmann commented Jul 7, 2020

GCC 10.x rightfully complains about out-of-bounds snprintf operation
on 64bit systems, where size_t could be 64bit sized.
Cast bytes_read down to 32bit and printf it without specifying input
format

Fixes #1461

Signed-off-by: Konrad Weihmann [email protected]

GCC 10.x rightfully complains about out-of-bounds snprintf operation
on 64bit systems, where size_t could be 64bit sized.
Cast bytes_read down to 32bit and printf it without specifying input
format

Signed-off-by: Konrad Weihmann <[email protected]>
@priv-kweihmann priv-kweihmann force-pushed the priv-kweihmann:gcc10-64bit branch from 6c635f9 to 76dded3 Jul 26, 2020
@priv-kweihmann
Copy link
Author

@priv-kweihmann priv-kweihmann commented Oct 20, 2020

@BrandonStaab anything I can do to get this merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

2 participants
You can’t perform that action at this time.