From bbb42950c5e1ff19838330dade3eae78d9a326ef Mon Sep 17 00:00:00 2001 From: Neil Horman Date: Apr 21 2006 15:13:48 +0000 Subject: adding iverted index overflow patch --- diff --git a/cscope-15.5-inv-overflow.patch b/cscope-15.5-inv-overflow.patch new file mode 100644 index 0000000..cca5799 --- /dev/null +++ b/cscope-15.5-inv-overflow.patch @@ -0,0 +1,28 @@ +--- 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 diff --git a/cscope.spec b/cscope.spec index 41a24c3..bfeaea3 100644 --- a/cscope.spec +++ b/cscope.spec @@ -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 @@ Patch3:cscope-15.5-xcscope-man.patch 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 @@ matches for use in file editing. %patch4 -p1 %patch5 -p1 %patch6 -p1 +%patch7 -p1 %build %configure @@ -85,6 +87,9 @@ rm -f %{xemacs_lisp_path}/xcscope.el rm -f %{emacs_lisp_path}/xcscope.el %changelog +* Fri Apr 21 2006 Neil Horman - 15.5-13.4 +- adding inverted index overflow patch + * Fri Feb 10 2006 Jesse Keating - 15.5-13.2 - bump again for double-long bug on ppc(64)