security patch for debug functions, #1077026
This commit is contained in:
parent
6edaa41b8e
commit
b008061e05
29
readline-6.2-debug_fncs_security_fix.patch
Normal file
29
readline-6.2-debug_fncs_security_fix.patch
Normal 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
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
Summary: A library for editing typed command lines
|
Summary: A library for editing typed command lines
|
||||||
Name: readline
|
Name: readline
|
||||||
Version: 6.2
|
Version: 6.2
|
||||||
Release: 8%{?dist}
|
Release: 9%{?dist}
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
URL: http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
|
URL: http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
|
||||||
@ -19,6 +19,8 @@ Patch22: readline-6.2-cppmacro.patch
|
|||||||
Patch23: readline-6.2-gdb.patch
|
Patch23: readline-6.2-gdb.patch
|
||||||
#temporary fix build on 64b ARM
|
#temporary fix build on 64b ARM
|
||||||
Patch24: readline-aarch64.patch
|
Patch24: readline-aarch64.patch
|
||||||
|
# BZ1077026, security fix for temporary file
|
||||||
|
Patch25: readline-6.2-debug_fncs_security_fix.patch
|
||||||
Requires(post): /sbin/install-info
|
Requires(post): /sbin/install-info
|
||||||
Requires(preun): /sbin/install-info
|
Requires(preun): /sbin/install-info
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
@ -63,6 +65,7 @@ library.
|
|||||||
%patch22 -p1 -b .cppmacro
|
%patch22 -p1 -b .cppmacro
|
||||||
%patch23 -p1 -b .gdb
|
%patch23 -p1 -b .gdb
|
||||||
%patch24 -p1 -b .arm
|
%patch24 -p1 -b .arm
|
||||||
|
%patch25 -p1 -b .debug_fncs_security_fix
|
||||||
|
|
||||||
pushd examples
|
pushd examples
|
||||||
rm -f rlfe/configure
|
rm -f rlfe/configure
|
||||||
@ -140,6 +143,10 @@ fi
|
|||||||
%{_libdir}/lib*.a
|
%{_libdir}/lib*.a
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon May 26 2014 jchaloup <jchaloup@redhat.com> - 6.2-9
|
||||||
|
- resolves: #1077026
|
||||||
|
Security patch for debug functions
|
||||||
|
|
||||||
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.2-8
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.2-8
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user