[cscope/f16] Resolves: bz 786523
Neil Horman
nhorman at fedoraproject.org
Mon Mar 12 18:11:34 UTC 2012
commit c078cdcbada930cbef74c2bbc985ed75b0e8e00d
Author: Neil Horman <nhorman at hmsreliant.think-freely.org>
Date: Mon Mar 12 14:11:15 2012 -0400
Resolves: bz 786523
cscope-invlib-overflow.patch | 11 +++++++++++
cscope.spec | 9 +++++++--
2 files changed, 18 insertions(+), 2 deletions(-)
---
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 69d177d..6f7cb22 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: 8%{?dist}
+Release: 9%{?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,7 +95,10 @@ rm -f %{emacs_lisp_path}/xcscope.el
rm -f %{vim_plugin_path}/cctree.vim
%changelog
-* Mon Mar 05 2012 Neil Horman <nhorman at redhat.com> - 17.7a-8
+* Mon Mar 12 2012 Neil Horman <nhorman at redhat.com> - 15.7a-9
+- Fixed overflow on construction of invlib (bz 786523)
+
+* Mon Mar 05 2012 Neil Horman <nhorman at redhat.com> - 15.7a-8
- fixed segfault on check_for_assignment (bz 799643)
* Wed Jun 30 2011 Neil Horman <nhorman at redhat.com> - 15.7a-7
More information about the scm-commits
mailing list