[Bug stdio/17829] Incorrect handling of precision specifier in printf family
cherepan at mccme dot ru
sourceware-bugzilla@sourceware.org
Wed Dec 23 00:23:00 GMT 2015
https://sourceware.org/bugzilla/show_bug.cgi?id=17829
--- Comment #6 from Alexander Cherepanov <cherepan at mccme dot ru> ---
Created attachment 8862
--> https://sourceware.org/bugzilla/attachment.cgi?id=8862&action=edit
Fix computations for max precision in vfprintf
While the full fix requires some work allowing INT_MAX on 64-bit platforms
seems easy.
The computation of the amount of the required memory is done in size_t but the
check uses INT_MAX for some reason. Replacing it with SIZE_MAX looks like a
right thing.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list