diff --git a/cscope-invlib-overflow.patch b/cscope-invlib-overflow.patch new file mode 100644 index 0000000..85fe9e7 --- /dev/null +++ b/cscope-invlib-overflow.patch @@ -0,0 +1,11 @@ +--- ./src/invlib.c.orig 2012-03-06 15:34:39.424814229 -0500 ++++ ./src/invlib.c 2012-03-06 15:34:54.787240366 -0500 +@@ -228,7 +228,7 @@ invmake(char *invname, char *invpost, FI + num = BASE * num + *++s - '!'; + } while (++i < PRECISION); + posting.lineoffset = num; +- while (++fileindex < nsrcoffset && num > srcoffset[fileindex]) { ++ while (++fileindex < nsrcfiles && num > srcoffset[fileindex]) { + ; + } + posting.fileindex = --fileindex; diff --git a/cscope.spec b/cscope.spec index dad98cb..26cbb85 100644 --- a/cscope.spec +++ b/cscope.spec @@ -1,7 +1,7 @@ Summary: C source code tree search and browse tool Name: cscope Version: 15.7a -Release: 9%{?dist} +Release: 10%{?dist} Source0: http://unc.dl.sourceforge.net/sourceforge/cscope/cscope-15.7a.tar.bz2 URL: http://cscope.sourceforge.net License: BSD and GPLv2+ @@ -21,6 +21,7 @@ Patch2:cscope-15.6-xcscope-man.patch Patch3:cscope-15.7-sig_pipe.patch Patch4:cscope-15.7a-add-cctree.patch Patch5:cscope-15.7a-lexerr.patch +Patch6:cscope-invlib-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. %patch3 -p1 %patch4 -p1 %patch5 -p1 +%patch6 -p1 %build %configure @@ -93,6 +95,9 @@ rm -f %{emacs_lisp_path}/xcscope.el rm -f %{vim_plugin_path}/cctree.vim %changelog +* Mon Mar 12 2012 Neil Horman -15.7a-10 +- Fixed a segfault in invlib construction ( bz 786523) + * Mon Mar 05 2012 Neil Horman 15.7a-9 - Fixed a segfault in the symbol assignment search (bz 799643)