Resolves: bz 1657210

This commit is contained in:
Neil Horman 2019-04-16 10:56:27 -04:00 committed by nhorman
parent f8809872a6
commit 5cd1629703
2 changed files with 18 additions and 1 deletions

11
cscope-dblfree.patch Normal file
View File

@ -0,0 +1,11 @@
diff -up ./src/command.c.dblfree ./src/command.c
--- ./src/command.c.dblfree 2019-04-11 07:08:24.358253603 -0400
+++ ./src/command.c 2019-04-11 07:08:43.955193615 -0400
@@ -803,7 +803,6 @@ changestring(void)
}
changing = NO;
mousemenu();
- fclose(script);
free(change);
return(anymarked);
}

View File

@ -1,7 +1,7 @@
Summary: C source code tree search and browse tool
Name: cscope
Version: 15.9
Release: 2%{?dist}
Release: 3%{?dist}
Source0: https://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.gz
URL: http://cscope.sourceforge.net
License: BSD and GPLv2+
@ -14,6 +14,8 @@ Requires: emacs-filesystem coreutils
Requires: xemacs-filesystem
%endif
Patch1: cscope-dblfree.patch
%define cscope_share_path %{_datadir}/cscope
%define xemacs_lisp_path %{_datadir}/xemacs/site-packages/lisp
%define emacs_lisp_path %{_datadir}/emacs/site-lisp
@ -29,6 +31,7 @@ matches for use in file editing.
%prep
%setup -q
%patch1 -p1
autoreconf
@ -87,6 +90,9 @@ rm -f %{emacs_lisp_path}/xcscope.el
rm -f %{vim_plugin_path}/cctree.vim
%changelog
* Thu Apr 11 2019 Neil Horman <nhorman@redhat.com> - 15.9-3
- Fixing double free (bz 1657210)
* Mon Dec 10 2018 Neil Horman <nhorman@redhat.com> - 15.9-2
- update Requires to include coreutils (bz 1657775)