ALT Linux Bugzilla
– Attachment 3931 Details for
Bug 21684
ошибка в strfmon()
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Примерный патч для glibc-2.3.5
strfmon_l.patch (text/plain), 972 bytes, created by
Damir Shayhutdinov
on 2009-09-23 19:10:54 MSD
(
hide
)
Description:
Примерный патч для glibc-2.3.5
Filename:
MIME Type:
Creator:
Damir Shayhutdinov
Created:
2009-09-23 19:10:54 MSD
Size:
972 bytes
patch
obsolete
>Index: strfmon_l.c >=================================================================== >--- strfmon_l.c (revision 80) >+++ strfmon_l.c (working copy) >@@ -233,7 +233,7 @@ > > /* If we don't have enough room for the demanded width we > can stop now and return an error. */ >- if (dest + width >= s + maxsize) >+ if (width < 0 || dest + width >= s + maxsize) > { > __set_errno (E2BIG); > return -1; >@@ -255,6 +255,11 @@ > left_prec *= 10; > left_prec += to_digit (*fmt); > } >+ if (left_prec < 0 || dest + left_prec >= s + maxsize) >+ { >+ __set_errno (E2BIG); >+ return -1; >+ } > } > > /* Recognize right precision. */ >@@ -272,6 +277,11 @@ > right_prec *= 10; > right_prec += to_digit (*fmt); > } >+ if (right_prec < 0 || dest + left_prec + right_prec >= s + maxsize ) >+ { >+ __set_errno (E2BIG); >+ return -1; >+ } > } > > /* Handle modifier. This is an extension. */
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 21684
: 3931