diff --git a/cscope-dblfree.patch b/cscope-dblfree.patch new file mode 100644 index 0000000..d300d04 --- /dev/null +++ b/cscope-dblfree.patch @@ -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); + } diff --git a/cscope.spec b/cscope.spec index 87c56e0..09e8590 100644 --- a/cscope.spec +++ b/cscope.spec @@ -1,7 +1,7 @@ Summary: C source code tree search and browse tool Name: cscope Version: 15.9 -Release: 3%{?dist} +Release: 4%{?dist} Source0: https://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.gz URL: http://cscope.sourceforge.net License: BSD and GPLv2+ @@ -13,6 +13,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 @@ -28,6 +30,7 @@ matches for use in file editing. %prep %setup -q +%patch1 -p1 autoreconf @@ -86,6 +89,9 @@ rm -f %{emacs_lisp_path}/xcscope.el rm -f %{vim_plugin_path}/cctree.vim %changelog +* Thu Apr 11 2019 Neil Horman - 15.9-4 +- Fixing double free (bz 1657210) + * Thu Jan 31 2019 Fedora Release Engineering - 15.9-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild