adding iverted index overflow patch

This commit is contained in:
Neil Horman 2006-04-21 15:13:48 +00:00
parent 4d02f79f04
commit bbb42950c5
2 changed files with 34 additions and 1 deletions

View File

@ -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

View File

@ -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 <nhorman@redhat.com> - 15.5-13.4
- adding inverted index overflow patch
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 15.5-13.2
- bump again for double-long bug on ppc(64)