1 From http://ftp.gnu.org/pub/gnu/bash/bash-4.3-patches/bash43-040
3 Signed-off-by: Gustavo Zacarias <gustavo@zacrias.com.ar>
11 Bug-Reported-by: Jean Delvare <jdelvare@suse.de>
12 Bug-Reference-ID: <20150609180231.5f463695@endymion.delvare>
13 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2015-06/msg00033.html
17 There is a memory leak that occurs when bash expands an array reference on
18 the rhs of an assignment statement.
20 Patch (apply with `patch -p0'):
22 *** a/bash-4.3-patched/subst.c 2014-10-01 12:57:47.000000000 -0400
23 --- b/subst.c 2015-06-22 09:16:53.000000000 -0400
26 if (pflags & PF_ASSIGNRHS)
28 ! temp = array_variable_name (name, &tt, (int *)0);
29 if (ALL_ELEMENT_SUB (tt[0]) && tt[1] == ']')
30 temp = array_value (name, quoted|Q_DOUBLE_QUOTES, 0, &atype, &ind);
32 if (pflags & PF_ASSIGNRHS)
34 ! var = array_variable_part (name, &tt, (int *)0);
35 if (ALL_ELEMENT_SUB (tt[0]) && tt[1] == ']')
36 temp = array_value (name, quoted|Q_DOUBLE_QUOTES, 0, &atype, &ind);
37 *** a/bash-4.3/patchlevel.h 2012-12-29 10:47:57.000000000 -0500
38 --- b/patchlevel.h 2014-03-20 20:01:28.000000000 -0400
41 looks for to find the patch level (for the sccs version string). */
43 ! #define PATCHLEVEL 39
45 #endif /* _PATCHLEVEL_H_ */
47 looks for to find the patch level (for the sccs version string). */
49 ! #define PATCHLEVEL 40
51 #endif /* _PATCHLEVEL_H_ */