]>
Commit | Line | Data |
---|---|---|
5be71d2a AB |
1 | BASH PATCH REPORT |
2 | ================= | |
3 | ||
4 | Bash-Release: 5.2 | |
5 | Patch-ID: bash52-001 | |
6 | ||
7 | Bug-Reported-by: Emanuele Torre <torreemanuele6@gmail.com> | |
8 | Bug-Reference-ID: <CAA7hNqeR1eSdiGK8mjQSqJPo815JYoG-Ekz-5PrAJTEYy2e6hg@mail.gmail.com> | |
9 | Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2022-09/msg00060.html | |
10 | ||
11 | Bug-Description: | |
12 | ||
13 | Expanding unset arrays in an arithmetic context can cause a segmentation fault. | |
14 | ||
15 | Patch (apply with `patch -p0'): | |
16 | ||
17 | *** ../bash-5.2/subst.c 2022-08-31 17:36:46.000000000 -0400 | |
18 | --- subst.c 2022-09-30 09:12:05.000000000 -0400 | |
19 | *************** | |
20 | *** 10858,10862 **** | |
21 | t = expand_subscript_string (exp, quoted & ~(Q_ARITH|Q_DOUBLE_QUOTES)); | |
22 | free (exp); | |
23 | ! exp = sh_backslash_quote (t, abstab, 0); | |
24 | free (t); | |
25 | ||
26 | --- 10858,10862 ---- | |
27 | t = expand_subscript_string (exp, quoted & ~(Q_ARITH|Q_DOUBLE_QUOTES)); | |
28 | free (exp); | |
29 | ! exp = t ? sh_backslash_quote (t, abstab, 0) : savestring (""); | |
30 | free (t); | |
31 | ||
32 | *** ../bash-5.2/patchlevel.h 2020-06-22 14:51:03.000000000 -0400 | |
33 | --- patchlevel.h 2020-10-01 11:01:28.000000000 -0400 | |
34 | *************** | |
35 | *** 26,30 **** | |
36 | looks for to find the patch level (for the sccs version string). */ | |
37 | ||
38 | ! #define PATCHLEVEL 0 | |
39 | ||
40 | #endif /* _PATCHLEVEL_H_ */ | |
41 | --- 26,30 ---- | |
42 | looks for to find the patch level (for the sccs version string). */ | |
43 | ||
44 | ! #define PATCHLEVEL 1 | |
45 | ||
46 | #endif /* _PATCHLEVEL_H_ */ |