OBS User unknown 2007-03-01 19:36:52 +00:00 committed by Git OBS Bridge
parent 92320b10a3
commit 0016404f9c
4 changed files with 40 additions and 6 deletions

18
bash-3.2-valgrind.patch Normal file
View File

@ -0,0 +1,18 @@
--- array.c
+++ array.c 2007-02-28 11:17:18.000000000 +0000
@@ -649,13 +649,14 @@ int quoted;
result = (char *)xmalloc (rsize = 128);
result[0] = '(';
+ indstr[0] = '\0';
rlen = 1;
for (ae = element_forw(a->head); ae != a->head; ae = element_forw(ae)) {
is = inttostr (element_index(ae), indstr, sizeof(indstr));
valstr = element_value (ae) ? sh_double_quote (element_value(ae))
: (char *)NULL;
- elen = STRLEN (indstr) + 8 + STRLEN (valstr);
+ elen = STRLEN (is) + 3 + STRLEN (valstr);
RESIZE_MALLOCED_BUFFER (result, rlen, (elen + 1), rsize, rsize);
result[rlen++] = '[';

View File

@ -1,6 +1,6 @@
--- .pkgextract --- .pkgextract
+++ .pkgextract 2006-03-27 14:15:25.000000000 +0200 +++ .pkgextract 2006-03-27 14:15:25.000000000 +0200
@@ -0,0 +1,14 @@ @@ -0,0 +1,15 @@
+tar Oxfj ../bash-3.2-patches.tar.bz2 | patch -p0 -s +tar Oxfj ../bash-3.2-patches.tar.bz2 | patch -p0 -s
+patch -p0 -s --suffix=".manual" < ../bash-2.03-manual.patch +patch -p0 -s --suffix=".manual" < ../bash-2.03-manual.patch
+patch -p0 -s --suffix=".security" < ../bash-2.05a-security.patch +patch -p0 -s --suffix=".security" < ../bash-2.05a-security.patch
@ -13,6 +13,7 @@
+patch -p0 -s --suffix=".equote" < ../bash-3.1-extended_quote.patch +patch -p0 -s --suffix=".equote" < ../bash-3.1-extended_quote.patch
+patch -p0 -s --suffix=".printf" < ../bash-3.2-printf.patch +patch -p0 -s --suffix=".printf" < ../bash-3.2-printf.patch
+patch -p0 -s --suffix=".plugins" < ../bash-3.1-loadables.dif +patch -p0 -s --suffix=".plugins" < ../bash-3.1-loadables.dif
+patch -p0 -s --suffix=".valgrind" < ../bash-3.2-valgrind.patch
+patch -p0 -s --suffix=".zerotty" < ../readline-4.3-input.dif +patch -p0 -s --suffix=".zerotty" < ../readline-4.3-input.dif
+patch -p0 -s --suffix=".wrap" < ../readline-5.2-wrap.patch +patch -p0 -s --suffix=".wrap" < ../readline-5.2-wrap.patch
+patch -p0 -s --suffix=".conf" < ../readline-5.2-conf.patch +patch -p0 -s --suffix=".conf" < ../readline-5.2-conf.patch

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Wed Feb 28 13:25:29 CET 2007 - werner@suse.de
- Don't access buffer but resulting pointer for array element names
to avoid the not initialized area of the buffer. This also fixes
an inherent wrong calculation of the string length of the array
element names (bug #248717)
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Dec 14 13:10:30 CET 2006 - werner@suse.de Thu Dec 14 13:10:30 CET 2006 - werner@suse.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package bash (Version 3.2) # spec file for package bash (Version 3.2)
# #
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine # This file and all modifications and additions to the pristine
# package are under the same license as the package itself. # package are under the same license as the package itself.
# #
@ -16,7 +16,7 @@ Group: System/Shells
Requires: readline >= 5.2 Requires: readline >= 5.2
Autoreqprov: on Autoreqprov: on
Version: 3.2 Version: 3.2
Release: 5 Release: 12
%define bash_vers 3.2 %define bash_vers 3.2
%define rl_vers 5.2 %define rl_vers 5.2
Summary: The GNU Bourne-Again Shell Summary: The GNU Bourne-Again Shell
@ -38,6 +38,7 @@ Patch8: bash-3.1-random.patch
Patch9: bash-3.1-extended_quote.patch Patch9: bash-3.1-extended_quote.patch
Patch10: bash-3.2-printf.patch Patch10: bash-3.2-printf.patch
Patch11: bash-3.1-loadables.dif Patch11: bash-3.1-loadables.dif
Patch12: bash-3.2-valgrind.patch
Patch20: readline-%{rl_vers}.dif Patch20: readline-%{rl_vers}.dif
Patch21: readline-4.3-input.dif Patch21: readline-4.3-input.dif
Patch22: readline-5.2-wrap.patch Patch22: readline-5.2-wrap.patch
@ -64,7 +65,7 @@ Summary: The Readline Library
Group: System/Libraries Group: System/Libraries
Provides: bash:/lib/libreadline.so.5 Provides: bash:/lib/libreadline.so.5
Version: 5.2 Version: 5.2
Release: 5 Release: 12
Autoreqprov: on Autoreqprov: on
%description -n readline %description -n readline
@ -84,7 +85,7 @@ Summary: Include Files and Libraries mandatory for Development.
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Provides: bash:/usr/lib/libreadline.a Provides: bash:/usr/lib/libreadline.a
Version: 5.2 Version: 5.2
Release: 5 Release: 12
Requires: readline = %{version}-%{release}, %{_libdir}/libncurses.so Requires: readline = %{version}-%{release}, %{_libdir}/libncurses.so
Autoreqprov: on Autoreqprov: on
@ -118,6 +119,7 @@ unset p
%patch9 -p0 -b .extended_quote %patch9 -p0 -b .extended_quote
%patch10 -p0 -b .printf %patch10 -p0 -b .printf
%patch11 -p0 -b .plugins %patch11 -p0 -b .plugins
%patch12 -p0 -b .valgrind
for p in ../readline-%{rl_vers}-patches/*; do for p in ../readline-%{rl_vers}-patches/*; do
test -e $p || break test -e $p || break
case "${p##*/}" in case "${p##*/}" in
@ -325,7 +327,12 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/libreadline.so %{_libdir}/libreadline.so
%doc %{_mandir}/man3/readline.3.gz %doc %{_mandir}/man3/readline.3.gz
%changelog -n bash %changelog
* Wed Feb 28 2007 - werner@suse.de
- Don't access buffer but resulting pointer for array element names
to avoid the not initialized area of the buffer. This also fixes
an inherent wrong calculation of the string length of the array
element names (bug #248717)
* Thu Dec 14 2006 - werner@suse.de * Thu Dec 14 2006 - werner@suse.de
- Update to bash 3.2 patch level 9 - Update to bash 3.2 patch level 9
* Wed Dec 06 2006 - schwab@suse.de * Wed Dec 06 2006 - schwab@suse.de