Remove BR2_DEPRECATED
[buildroot-gz.git] / package / bash / 0040-patchlevel-40.patch
blob2a03c45a92a0dfb3956f0b0774362d253e9fac86
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>
5 BASH PATCH REPORT
6 =================
8 Bash-Release: 4.3
9 Patch-ID: bash43-040
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
15 Bug-Description:
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
24 ***************
25 *** 5783,5787 ****
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);
31 --- 5783,5787 ----
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
39 ***************
40 *** 26,30 ****
41 looks for to find the patch level (for the sccs version string). */
43 ! #define PATCHLEVEL 39
45 #endif /* _PATCHLEVEL_H_ */
46 --- 26,30 ----
47 looks for to find the patch level (for the sccs version string). */
49 ! #define PATCHLEVEL 40
51 #endif /* _PATCHLEVEL_H_ */