Dr. Werner Fink 2010-10-14 12:41:20 +00:00 committed by Git OBS Bridge
parent 66cccc6d5d
commit dc808c14f4
5 changed files with 23 additions and 30 deletions

View File

@ -1,21 +1,3 @@
Andreas Schwab <schwab@linux-m68k.org> writes:
> $ declare -A a=b; unset a
> *** glibc detected *** /bin/bash: free(): invalid pointer: 0x10091644 ***
And the obvious patch:
--- builtins/declare.def
+++ builtins/declare.def 2010-04-09 17:20:51.000000000 +0000
@@ -512,7 +512,7 @@ declare_internal (list, local_var)
{
/* let bind_{array,assoc}_variable take care of this. */
if (assoc_p (var))
- bind_assoc_variable (var, name, "0", value, aflags);
+ bind_assoc_variable (var, name, savestring ("0"), value, aflags);
else
bind_array_variable (name, 0, value, aflags);
}
Roman Rakus <rrakus@redhat.com> writes:
> Repeated in the bash-4.0.38 and bash-4.1.7 by the script;
> #!/bin/bash

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c09d82089a275831e34dd2a885d50f733265d4929e62c0fce5a5ae623e8d8a0b
size 3633
oid sha256:863d13c4739d3ce674f9d4f2d25e65eb1bd6dabe1e7d46be1b41ff053dbc9a1e
size 4268

View File

@ -1,6 +1,6 @@
--- jobs.c
+++ jobs.c 2008-01-08 18:10:15.575513000 +0000
@@ -2417,7 +2417,11 @@ wait_for (pid)
+++ jobs.c 2008-01-08 18:10:16.000000000 +0000
@@ -2426,7 +2426,11 @@ wait_for (pid)
act.sa_handler = SIG_DFL;
sigemptyset (&act.sa_mask);
sigemptyset (&oact.sa_mask);
@ -13,12 +13,11 @@
# endif
queue_sigchld = 1;
--- sig.c
+++ sig.c 2008-04-02 10:42:23.742406622 +0000
@@ -654,6 +654,17 @@ set_signal_handler (sig, handler)
act.sa_flags |= SA_INTERRUPT; /* XXX */
else
act.sa_flags |= SA_RESTART; /* XXX */
+#else
+++ sig.c 2010-10-14 12:28:48.004425767 +0000
@@ -658,6 +658,16 @@ set_signal_handler (sig, handler)
#else
if (sig == SIGCHLD)
act.sa_flags |= SA_RESTART;
+# if !defined(MUST_REINSTALL_SIGHANDLERS)
+ if (sig != SIGALRM)
+ act.sa_flags |= SA_RESTART; /* XXX */

View File

@ -1,7 +1,19 @@
-------------------------------------------------------------------
Thu Oct 14 14:34:15 CEST 2010 - werner@suse.de
- Update bash 4.1 to patch level 9
* When declaring an associative array and implicitly assigning a
value to element "0", bash does not correctly allocate memory,
leading to a segmentation violation when that element or the
array itself is unset.
* An arriving SIGCHLD will interrupt `slow' system calls such as
write(2) to or read(2) from a terminal. This results in an
error message and truncated input or output.
-------------------------------------------------------------------
Fri Sep 3 20:55:30 UTC 2010 - cristian.rodriguez@opensuse.org
- builtin "man2html"generates html manaul with a timestamp
- builtin "man2html"generates html manual with a timestamp
that causes the package to be published over and over again.
-------------------------------------------------------------------

View File

@ -60,7 +60,7 @@ Patch9: bash-4.0-extended_quote.patch
Patch10: bash-3.2-printf.patch
Patch11: bash-4.0-loadables.dif
Patch12: bash-4.1-completion.dif
Patch14: bash-3.2-sigrestart.patch
Patch14: bash-4.1-sigrestart.patch
Patch15: bash-3.2-longjmp.dif
Patch16: bash-4.0-setlocale.dif
Patch17: bash-4.0-headers.dif