Sourceware Bugzilla – Attachment 3625 Details for
Bug 7075
sprintf(buf, "%sfoo", buf) has different results with -O2 -D_FORTIFY_SOURCE=2 (__sprintf_chk bug?)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
work-around pre-trunc behavior
no-sprintf-pre-truncate.diff (text/plain), 550 bytes, created by
Kees Cook
on 2008-12-24 17:40:22 UTC
(
hide
)
Description:
work-around pre-trunc behavior
Filename:
MIME Type:
Creator:
Kees Cook
Created:
2008-12-24 17:40:22 UTC
Size:
550 bytes
patch
obsolete
>Index: glibc-2.9/debug/vsprintf_chk.c >=================================================================== >--- glibc-2.9.orig/debug/vsprintf_chk.c 2008-12-23 21:30:07.000000000 -0800 >+++ glibc-2.9/debug/vsprintf_chk.c 2008-12-23 21:30:19.000000000 -0800 >@@ -76,7 +76,9 @@ > > _IO_no_init (&f._sbf._f, _IO_USER_LOCK, -1, NULL, NULL); > _IO_JUMPS ((struct _IO_FILE_plus *) &f._sbf) = &_IO_str_chk_jumps; >+/* > s[0] = '\0'; >+*/ > _IO_str_init_static_internal (&f, s, slen - 1, s); > > /* For flags > 0 (i.e. __USE_FORTIFY_LEVEL > 1) request that %n
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 7075
:
3095
| 3625