FreeBSD Bugzilla – Attachment 57853 Details for
Bug 87260
devel/str uses the same va_list ap twice causing segfault
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
str-ap.diff
str-ap.diff (text/plain), 1.13 KB, created by
Vasil Dimov
on 2005-10-11 17:10:15 UTC
(
hide
)
Description:
str-ap.diff
Filename:
MIME Type:
Creator:
Vasil Dimov
Created:
2005-10-11 17:10:15 UTC
Size:
1.13 KB
patch
obsolete
>diff -urN --exclude=CVS --exclude=README.html str/Makefile /usr/ports/devel/str/Makefile >--- str/Makefile Tue Oct 4 08:21:23 2005 >+++ /usr/ports/devel/str/Makefile Tue Oct 11 18:00:16 2005 >@@ -7,6 +7,7 @@ > > PORTNAME= str > PORTVERSION= 0.9.11 >+PORTREVISION= 1 > CATEGORIES= devel > MASTER_SITES= ${MASTER_SITE_OSSP} > MASTER_SITE_SUBDIR= lib/${PORTNAME} >diff -urN --exclude=CVS --exclude=README.html str/files/patch-str_parse.c.diff /usr/ports/devel/str/files/patch-str_parse.c.diff >--- str/files/patch-str_parse.c.diff Thu Jan 1 02:00:00 1970 >+++ /usr/ports/devel/str/files/patch-str_parse.c.diff Tue Oct 11 17:56:44 2005 >@@ -0,0 +1,14 @@ >+--- str_parse.c.orig Tue Oct 11 17:44:45 2005 >++++ str_parse.c Tue Oct 11 17:49:35 2005 >+@@ -564,7 +564,10 @@ >+ sf.data[3].p = (char *)string; >+ sf.data[4].p = cap_vec; >+ sf.data[5].i = cap_num; >+- l = str_vformat(&sf, buf_ptr, ap); >++ /* we shall need `ap' untouched later */ >++ va_list ap_temp; >++ va_copy(ap_temp, ap); >++ l = str_vformat(&sf, buf_ptr, ap_temp); >+ >+ /* allocate output buffer */ >+ if ((*cpp = (char *)malloc(l+1)) == NULL) {
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 87260
: 57853