rpms/cscope/devel cscope-15.5-inv-overflow.patch, NONE, 1.1 cscope.spec, 1.21, 1.22

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Fri Apr 21 15:13:52 UTC 2006


Author: nhorman

Update of /cvs/dist/rpms/cscope/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv22765

Modified Files:
	cscope.spec 
Added Files:
	cscope-15.5-inv-overflow.patch 
Log Message:
adding iverted index overflow patch

cscope-15.5-inv-overflow.patch:
 invlib.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

--- NEW FILE cscope-15.5-inv-overflow.patch ---
--- cscope-15.5/src/invlib.c.overflow	2003-06-20 03:46:03.000000000 -0400
+++ cscope-15.5/src/invlib.c	2006-04-21 10:28:06.000000000 -0400
@@ -47,7 +47,6 @@
 
 #define	DEBUG		0	/* debugging code and realloc messages */
 #define BLOCKSIZE	2 * BUFSIZ	/* logical block size */
-#define	LINEMAX		1000	/* sorted posting line max size */
 #define	POSTINC		10000	/* posting buffer size increment */
 #define SEP		' '	/* sorted posting field separator */
 #define	SETINC		100	/* posting set size increment */
@@ -112,7 +111,7 @@
 	long	fileindex = 0;	/* initialze, to avoid warning */
 	unsigned postsize = POSTINC * sizeof(POSTING);
 	unsigned long	*intptr;
-	char	line[LINEMAX];
+	char	line[TERMMAX];
 	long	tlong;
 	PARAM	param;
 	POSTING	posting;
@@ -177,7 +176,7 @@
 	lastinblk = sizeof(t_logicalblk);
 
 	/* now loop as long as more to read (till eof)  */
-	while (fgets(line, LINEMAX, infile) != NULL) {
+	while (fgets(line, TERMMAX, infile) != NULL) {
 #if DEBUG || STATS
 		++totpost;
 #endif


Index: cscope.spec
===================================================================
RCS file: /cvs/dist/rpms/cscope/devel/cscope.spec,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- cscope.spec	11 Feb 2006 02:20:45 -0000	1.21
+++ cscope.spec	21 Apr 2006 15:13:48 -0000	1.22
@@ -1,7 +1,7 @@
 Summary: C source code tree search and browse tool 
 Name: cscope
 Version: 15.5
-Release: 13.2 
+Release: 13.4 
 Source0: http://unc.dl.sourceforge.net/sourceforge/cscope/cscope-15.5.tar.gz 
 URL: http://cscope.sourceforge.net
 License: BSD 
@@ -20,6 +20,7 @@
 Patch4:cscope-15.5-inverted.patch
 Patch5:cscope-15.5-resize.patch
 Patch6:cscope-15.5-tempsec.patch
+Patch7:cscope-15.5-inv-overflow.patch
 
 %description
 cscope is a mature, ncurses based, C source code tree browsing tool.  It 
@@ -37,6 +38,7 @@
 %patch4 -p1
 %patch5 -p1
 %patch6 -p1
+%patch7 -p1
 
 %build
 %configure
@@ -85,6 +87,9 @@
 rm -f %{emacs_lisp_path}/xcscope.el
 
 %changelog
+* Fri Apr 21 2006 Neil Horman <nhorman at redhat.com> - 15.5-13.4
+- adding inverted index overflow patch
+
 * Fri Feb 10 2006 Jesse Keating <jkeating at redhat.com> - 15.5-13.2
 - bump again for double-long bug on ppc(64)
 




More information about the fedora-cvs-commits mailing list