rpms/cproto/devel cproto-segfault.patch, NONE, 1.1 cproto.spec, 1.8, 1.9

Jindrich Novy (jnovy) fedora-extras-commits at redhat.com
Fri Oct 19 12:43:16 UTC 2007


Author: jnovy

Update of /cvs/extras/rpms/cproto/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv24965

Modified Files:
	cproto.spec 
Added Files:
	cproto-segfault.patch 
Log Message:
- fix segfault while parsing #include directive (#315061)


cproto-segfault.patch:

--- NEW FILE cproto-segfault.patch ---
diff -up cproto-4_7e/lex.l.segfault cproto-4_7e/lex.l
--- cproto-4_7e/lex.l.segfault	2005-12-09 01:12:48.000000000 +0100
+++ cproto-4_7e/lex.l	2007-10-19 14:33:50.000000000 +0200
@@ -723,6 +723,8 @@ get_cpp_directive (int copy)
 
     lastc[0] = lastc[1] = lastc[2] = lastc[3] = '\0';
     if (copy) {
+	if (!temp_len)
+	    need_temp(MAX_TEXT_SIZE);
 	*temp_buf = '\0';
     }
 


Index: cproto.spec
===================================================================
RCS file: /cvs/extras/rpms/cproto/devel/cproto.spec,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- cproto.spec	23 Aug 2007 06:21:32 -0000	1.8
+++ cproto.spec	19 Oct 2007 12:42:42 -0000	1.9
@@ -1,10 +1,11 @@
 Summary: Generates function prototypes and variable declarations from C code
 Name: cproto
 Version: 4.7e
-Release: 4%{?dist}
+Release: 5%{?dist}
 License: Public Domain
 Group: Development/Tools
 Source: ftp://invisible-island.net/cproto/cproto-4_7e.tgz
+Patch0: cproto-segfault.patch
 URL: http://invisible-island.net/
 BuildRequires: byacc, flex
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -20,6 +21,7 @@
 
 %prep
 %setup -q -n cproto-4_7e
+%patch0 -p1 -b .segfault
 
 %build
 export CPP="/lib/cpp"
@@ -43,6 +45,9 @@
 %{_mandir}/man1/cproto.*
 
 %changelog
+* Fri Oct 19 2007 Jindrich Novy <jnovy at redhat.com> 4.7e-5
+- fix segfault while parsing #include directive (#315061)
+
 * Thu Aug 23 2007 Jindrich Novy <jnovy at redhat.com> 4.7e-4
 - rebuild for BuildID
 




More information about the fedora-extras-commits mailing list