source: npl/system/bash/bash-4.3-patches/bash43-036 @ 4e95a55

perl-5.22
Last change on this file since 4e95a55 was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 1.5 KB
Line 
1                             BASH PATCH REPORT
2                             =================
3
4Bash-Release:   4.3
5Patch-ID:       bash43-036
6
7Bug-Reported-by:        emanuelczirai@cryptolab.net
8Bug-Reference-ID:       <f962e4f556da5ebfadaf7afe9c78a8cb@cryptolab.net>
9Bug-Reference-URL:      http://lists.gnu.org/archive/html/bug-bash/2015-02/msg00071.html
10
11Bug-Description:
12
13When evaluating and setting integer variables, and the assignment fails to
14create a variable (for example, when performing an operation on an array
15variable with an invalid subscript), bash attempts to dereference a null
16pointer, causing a segmentation violation.
17
18Patch (apply with `patch -p0'):
19
20*** ../bash-20150206/variables.c        2015-01-23 20:39:27.000000000 -0500
21--- variables.c 2015-02-19 13:56:12.000000000 -0500
22***************
23*** 2834,2841 ****
24      v = bind_variable (lhs, rhs, 0);
25 
26!   if (v && isint)
27!     VSETATTR (v, att_integer);
28!
29!   VUNSETATTR (v, att_invisible);
30 
31    return (v);
32--- 2834,2843 ----
33      v = bind_variable (lhs, rhs, 0);
34 
35!   if (v)
36!     {
37!       if (isint)
38!       VSETATTR (v, att_integer);
39!       VUNSETATTR (v, att_invisible);
40!     }
41 
42    return (v);
43*** ../bash-4.3/patchlevel.h    2012-12-29 10:47:57.000000000 -0500
44--- patchlevel.h        2014-03-20 20:01:28.000000000 -0400
45***************
46*** 26,30 ****
47     looks for to find the patch level (for the sccs version string). */
48 
49! #define PATCHLEVEL 35
50 
51  #endif /* _PATCHLEVEL_H_ */
52--- 26,30 ----
53     looks for to find the patch level (for the sccs version string). */
54 
55! #define PATCHLEVEL 36
56 
57  #endif /* _PATCHLEVEL_H_ */
Note: See TracBrowser for help on using the repository browser.