Fix CVE-2014-2524 (RHBZ #1077035)

This commit is contained in:
Erik van Pienbroek 2014-05-29 17:42:24 +02:00
parent c7bb008d42
commit 6adddf045d
2 changed files with 36 additions and 0 deletions

View File

@ -10,6 +10,9 @@ Group: System Environment/Libraries
URL: http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
Source0: ftp://ftp.gnu.org/gnu/readline/readline-%{version}.tar.gz
# CVE-2014-2524
Patch0: readline-6.2-debug_fncs_security_fix.patch
BuildArch: noarch
BuildRequires: mingw32-filesystem >= 95
@ -82,6 +85,7 @@ Static version of the cross compiled readline library.
%prep
%setup -q -n readline-%{version}
%patch0 -p1
%build
@ -130,6 +134,9 @@ rm -f $RPM_BUILD_ROOT%{mingw64_datadir}/readline/*.c
%changelog
* Thu May 29 2014 Erik van Pienbroek <epienbro@fedoraproject.org> - 6.2-4
- Fix CVE-2014-2524 (RHBZ #1077035)
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

View File

@ -0,0 +1,29 @@
From 0597f0b34a0c93578b83f24ecca9e66d183728c5 Mon Sep 17 00:00:00 2001
From: jchaloup <jchaloup@redhat.com>
Date: Mon, 26 May 2014 13:02:02 +0200
Subject: [PATCH] security fix for debug functions
---
util.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/util.c b/util.c
index 6c68ad8..bc50dc1 100644
--- a/util.c
+++ b/util.c
@@ -468,6 +468,7 @@ _rl_savestring (s)
return (strcpy ((char *)xmalloc (1 + (int)strlen (s)), (s)));
}
+#if defined (DEBUG)
#if defined (USE_VARARGS)
static FILE *_rl_tracefp;
@@ -524,3 +525,4 @@ _rl_trclose ()
}
#endif
+#endif /* DEBUG */
--
1.9.0