|
1 BASH PATCH REPORT |
|
2 ================= |
|
3 |
|
4 Bash-Release: 4.3 |
|
5 Patch-ID: bash43-040 |
|
6 |
|
7 Bug-Reported-by: Jean Delvare <[email protected]> |
|
8 Bug-Reference-ID: <[email protected]> |
|
9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2015-06/msg00033.html |
|
10 |
|
11 Bug-Description: |
|
12 |
|
13 There is a memory leak that occurs when bash expands an array reference on |
|
14 the rhs of an assignment statement. |
|
15 |
|
16 Patch (apply with `patch -p0'): |
|
17 |
|
18 *** ../bash-4.3-patched/subst.c 2014-10-01 12:57:47.000000000 -0400 |
|
19 --- subst.c 2015-06-22 09:16:53.000000000 -0400 |
|
20 *************** |
|
21 *** 5783,5787 **** |
|
22 if (pflags & PF_ASSIGNRHS) |
|
23 { |
|
24 ! temp = array_variable_name (name, &tt, (int *)0); |
|
25 if (ALL_ELEMENT_SUB (tt[0]) && tt[1] == ']') |
|
26 temp = array_value (name, quoted|Q_DOUBLE_QUOTES, 0, &atype, &ind); |
|
27 --- 5783,5787 ---- |
|
28 if (pflags & PF_ASSIGNRHS) |
|
29 { |
|
30 ! var = array_variable_part (name, &tt, (int *)0); |
|
31 if (ALL_ELEMENT_SUB (tt[0]) && tt[1] == ']') |
|
32 temp = array_value (name, quoted|Q_DOUBLE_QUOTES, 0, &atype, &ind); |
|
33 *** ../bash-4.3/patchlevel.h 2012-12-29 10:47:57.000000000 -0500 |
|
34 --- patchlevel.h 2014-03-20 20:01:28.000000000 -0400 |
|
35 *************** |
|
36 *** 26,30 **** |
|
37 looks for to find the patch level (for the sccs version string). */ |
|
38 |
|
39 ! #define PATCHLEVEL 39 |
|
40 |
|
41 #endif /* _PATCHLEVEL_H_ */ |
|
42 --- 26,30 ---- |
|
43 looks for to find the patch level (for the sccs version string). */ |
|
44 |
|
45 ! #define PATCHLEVEL 40 |
|
46 |
|
47 #endif /* _PATCHLEVEL_H_ */ |