This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug stdio/17829] Incorrect handling of precision specifier in printf family


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]