libs/libpng: Update to 1.6.32
[feed/packages.git] / utils / bash / patches / 140-upstream-bash43-040.patch
1 BASH PATCH REPORT
2 =================
3
4 Bash-Release: 4.3
5 Patch-ID: bash43-040
6
7 Bug-Reported-by: Jean Delvare <jdelvare@suse.de>
8 Bug-Reference-ID: <20150609180231.5f463695@endymion.delvare>
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 --- a/subst.c
19 +++ b/subst.c
20 @@ -5782,7 +5782,7 @@ expand_arrayref:
21 /* XXX - does this leak if name[@] or name[*]? */
22 if (pflags & PF_ASSIGNRHS)
23 {
24 - temp = array_variable_name (name, &tt, (int *)0);
25 + var = array_variable_part (name, &tt, (int *)0);
26 if (ALL_ELEMENT_SUB (tt[0]) && tt[1] == ']')
27 temp = array_value (name, quoted|Q_DOUBLE_QUOTES, 0, &atype, &ind);
28 else
29 --- a/patchlevel.h
30 +++ b/patchlevel.h
31 @@ -25,6 +25,6 @@
32 regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
33 looks for to find the patch level (for the sccs version string). */
34
35 -#define PATCHLEVEL 39
36 +#define PATCHLEVEL 40
37
38 #endif /* _PATCHLEVEL_H_ */