This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug stdio/17829] Incorrect handling of precision specifier in printf family
- From: "cherepan at mccme dot ru" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 23 Dec 2015 00:23:14 +0000
- Subject: [Bug stdio/17829] Incorrect handling of precision specifier in printf family
- Auto-submitted: auto-generated
- References: <bug-17829-131 at http dot sourceware dot org/bugzilla/>
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.