Sourceware Bugzilla – Attachment 8862 Details for
Bug 17829
Incorrect handling of precision specifier in printf family
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix computations for max precision in vfprintf
vfprintf-max-precision-fix.patch (text/plain), 496 bytes, created by
Alexander Cherepanov
on 2015-12-23 00:23:14 UTC
(
hide
)
Description:
Fix computations for max precision in vfprintf
Filename:
MIME Type:
Creator:
Alexander Cherepanov
Created:
2015-12-23 00:23:14 UTC
Size:
496 bytes
patch
obsolete
>diff --git a/stdio-common/vfprintf.c b/stdio-common/vfprintf.c >index ae01452..5430a8c 100644 >--- a/stdio-common/vfprintf.c >+++ b/stdio-common/vfprintf.c >@@ -1564,7 +1564,7 @@ vfprintf (FILE *s, const CHAR_T *format, va_list ap) > prec = 0; > if (prec > width && prec > WORK_BUFFER_SIZE - 32) > { >- if (__glibc_unlikely (prec >= INT_MAX / sizeof (CHAR_T) - 32)) >+ if (__glibc_unlikely (prec >= SIZE_MAX / sizeof (CHAR_T) - 32)) > { > __set_errno (EOVERFLOW); > done = -1;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 17829
: 8862