summaryrefslogtreecommitdiffstats
path: root/package/bash/0036-patchlevel-36.patch
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2016-01-07 16:52:14 -0300
committerPeter Korsgaard <peter@korsgaard.com>2016-01-08 18:48:12 +0100
commit4a37f3316ccf122ad9dd5cab812edd758b5031e8 (patch)
treefc8fca3924c6f55e8642245587254bbfb753b51f /package/bash/0036-patchlevel-36.patch
parent18df1fd08813093402daf854dfbb9219d762efbf (diff)
downloadbuildroot-4a37f3316ccf122ad9dd5cab812edd758b5031e8.tar.gz
buildroot-4a37f3316ccf122ad9dd5cab812edd758b5031e8.zip
bash: bump to patchlevel 42
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/bash/0036-patchlevel-36.patch')
-rw-r--r--package/bash/0036-patchlevel-36.patch61
1 files changed, 61 insertions, 0 deletions
diff --git a/package/bash/0036-patchlevel-36.patch b/package/bash/0036-patchlevel-36.patch
new file mode 100644
index 0000000000..f35b29b5bd
--- /dev/null
+++ b/package/bash/0036-patchlevel-36.patch
@@ -0,0 +1,61 @@
+From http://ftp.gnu.org/pub/gnu/bash/bash-4.3-patches/bash43-036
+
+Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
+
+ BASH PATCH REPORT
+ =================
+
+Bash-Release: 4.3
+Patch-ID: bash43-036
+
+Bug-Reported-by: emanuelczirai@cryptolab.net
+Bug-Reference-ID: <f962e4f556da5ebfadaf7afe9c78a8cb@cryptolab.net>
+Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2015-02/msg00071.html
+
+Bug-Description:
+
+When evaluating and setting integer variables, and the assignment fails to
+create a variable (for example, when performing an operation on an array
+variable with an invalid subscript), bash attempts to dereference a null
+pointer, causing a segmentation violation.
+
+Patch (apply with `patch -p0'):
+
+*** a/bash-20150206/variables.c 2015-01-23 20:39:27.000000000 -0500
+--- b/variables.c 2015-02-19 13:56:12.000000000 -0500
+***************
+*** 2834,2841 ****
+ v = bind_variable (lhs, rhs, 0);
+
+! if (v && isint)
+! VSETATTR (v, att_integer);
+!
+! VUNSETATTR (v, att_invisible);
+
+ return (v);
+--- 2834,2843 ----
+ v = bind_variable (lhs, rhs, 0);
+
+! if (v)
+! {
+! if (isint)
+! VSETATTR (v, att_integer);
+! VUNSETATTR (v, att_invisible);
+! }
+
+ return (v);
+*** a/bash-4.3/patchlevel.h 2012-12-29 10:47:57.000000000 -0500
+--- b/patchlevel.h 2014-03-20 20:01:28.000000000 -0400
+***************
+*** 26,30 ****
+ looks for to find the patch level (for the sccs version string). */
+
+! #define PATCHLEVEL 35
+
+ #endif /* _PATCHLEVEL_H_ */
+--- 26,30 ----
+ looks for to find the patch level (for the sccs version string). */
+
+! #define PATCHLEVEL 36
+
+ #endif /* _PATCHLEVEL_H_ */
OpenPOWER on IntegriCloud