Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 219971 Details for
Bug 289022
dev-vcs/cvs-1.12.12-r6 getcwd failure on nfs4 mounted dirs
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
cvs-1.12.13-printf.patch
cvs-1.12.13-printf.patch (text/plain), 1.10 KB, created by
Martin Jansa
on 2010-02-17 09:34:39 UTC
(
hide
)
Description:
cvs-1.12.13-printf.patch
Filename:
MIME Type:
Creator:
Martin Jansa
Created:
2010-02-17 09:34:39 UTC
Size:
1.10 KB
patch
obsolete
>diff -uNr cvs-1.12.13.1.orig//lib/vasnprintf.c cvs-1.12.13.1/lib/vasnprintf.c >--- cvs-1.12.13.1.orig//lib/vasnprintf.c 2006-01-25 13:53:38.000000000 +0100 >+++ cvs-1.12.13.1/lib/vasnprintf.c 2010-02-16 17:54:00.000000000 +0100 >@@ -560,9 +560,21 @@ > } > *p = dp->conversion; > #if USE_SNPRINTF >- p[1] = '%'; >- p[2] = 'n'; >- p[3] = '\0'; >+#if !(__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) >+ p[1] = '%'; >+ p[2] = 'n'; >+ p[3] = '\0'; >+#else >+ /* On glibc2 systems from glibc >= 2.3 - probably also older >+ ones - we know that snprintf's returns value conforms to >+ ISO C 99: the gl_SNPRINTF_DIRECTIVE_N test passes. >+ Therefore we can avoid using %n in this situation. >+ On glibc2 systems from 2004-10-18 or newer, the use of %n >+ in format strings in writable memory may crash the program >+ (if compiled with _FORTIFY_SOURCE=2), so we should avoid it >+ in this situation. */ >+ p[1] = '\0'; >+#endif > #else > p[1] = '\0'; > #endif
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 289022
:
208057
| 219971