FreeBSD Bugzilla – Attachment 153941 Details for
Bug 198377
libc: Invalid size check in load_msgcat()
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix
libc-nls-CID1193663.diff (text/plain), 470 bytes, created by
Pedro F. Giffuni
on 2015-03-06 23:35:26 UTC
(
hide
)
Description:
Fix
Filename:
MIME Type:
Creator:
Pedro F. Giffuni
Created:
2015-03-06 23:35:26 UTC
Size:
470 bytes
patch
obsolete
>Index: lib/libc/nls/msgcat.c >=================================================================== >--- lib/libc/nls/msgcat.c (revision 279661) >+++ lib/libc/nls/msgcat.c (working copy) >@@ -401,7 +401,7 @@ > * it to the memory. Probably, this will not be a problem given > * that catalog files are usually small. > */ >- if (st.st_size > SIZE_T_MAX) { >+ if (st.st_size >= SIZE_T_MAX || st.st_size < 0) { > _close(fd); > SAVEFAIL(name, lang, EFBIG); > NLRETERR(EFBIG);
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 198377
: 153941