perl/Test-Simple: update to 1.302205
[oi-userland.git] / components / shell / bash / patches / bash52-013.patch
blob3051269c197ae8d5365d6da9a203774e527421f1
1 BASH PATCH REPORT
2 =================
4 Bash-Release: 5.2
5 Patch-ID: bash52-013
7 Bug-Reported-by: Ralf Oehler <Ralf@Oehler-Privat.de>
8 Bug-Reference-ID: <20221120140252.2fc6489b@bilbo>
9 Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2022-11/msg00082.html
11 Bug-Description:
13 Bash can leak memory when referencing a non-existent associative array
14 element.
16 Patch (apply with `patch -p0'):
18 *** ../bash-5.2-patched/subst.c 2022-11-05 17:27:48.000000000 -0400
19 --- subst.c 2022-11-21 14:42:59.000000000 -0500
20 ***************
21 *** 7498,7503 ****
22 : quote_escapes (temp);
23 rflags |= W_ARRAYIND;
24 - if (estatep)
25 - *estatep = es; /* structure copy */
27 /* Note that array[*] and array[@] expanded to a quoted null string by
28 --- 7508,7511 ----
29 ***************
30 *** 7508,7512 ****
31 rflags |= W_HASQUOTEDNULL;
33 ! if (estatep == 0)
34 flush_eltstate (&es);
36 --- 7516,7522 ----
37 rflags |= W_HASQUOTEDNULL;
39 ! if (estatep)
40 ! *estatep = es; /* structure copy */
41 ! else
42 flush_eltstate (&es);
44 *** ../bash-5.2/patchlevel.h 2020-06-22 14:51:03.000000000 -0400
45 --- patchlevel.h 2020-10-01 11:01:28.000000000 -0400
46 ***************
47 *** 26,30 ****
48 looks for to find the patch level (for the sccs version string). */
50 ! #define PATCHLEVEL 12
52 #endif /* _PATCHLEVEL_H_ */
53 --- 26,30 ----
54 looks for to find the patch level (for the sccs version string). */
56 ! #define PATCHLEVEL 13
58 #endif /* _PATCHLEVEL_H_ */