From 5cd16297037e33afeb16121ddb991c2eb66b5b1a Mon Sep 17 00:00:00 2001 From: Neil Horman Date: Tue, 16 Apr 2019 10:56:27 -0400 Subject: [PATCH] Resolves: bz 1657210 --- cscope-dblfree.patch | 11 +++++++++++ cscope.spec | 8 +++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 cscope-dblfree.patch 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 1c9d7e6..1338c97 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: 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 - 15.9-3 +- Fixing double free (bz 1657210) + * Mon Dec 10 2018 Neil Horman - 15.9-2 - update Requires to include coreutils (bz 1657775)