source: npl/system/bash/bash-4.3-patches/bash43-007 @ a87727a

Last change on this file since a87727a 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.3 KB
Line 
1                             BASH PATCH REPORT
2                             =================
3
4Bash-Release:   4.3
5Patch-ID:       bash43-007
6
7Bug-Reported-by:        geir.hauge@gmail.com
8Bug-Reference-ID:       <20140318093650.B181C1C5B0B@gina.itea.ntnu.no>
9Bug-Reference-URL:      http://lists.gnu.org/archive/html/bug-bash/2014-03/msg00095.html
10
11Bug-Description:
12
13Using compound assignments for associative arrays like
14
15assoc=( [x]= [y]=bar )
16
17left the value corresponding to the key `x' NULL.  This caused subsequent
18lookups to interpret it as unset.
19
20Patch (apply with `patch -p0'):
21
22*** ../bash-4.3/arrayfunc.c     2013-08-02 16:19:59.000000000 -0400
23--- arrayfunc.c 2014-03-18 11:08:15.000000000 -0400
24***************
25*** 598,601 ****
26--- 598,606 ----
27        {
28          val = expand_assignment_string_to_string (val, 0);
29+         if (val == 0)
30+           {
31+             val = (char *)xmalloc (1);
32+             val[0] = '\0';    /* like do_assignment_internal */
33+           }
34          free_val = 1;
35        }
36*** ../bash-4.3/patchlevel.h    2012-12-29 10:47:57.000000000 -0500
37--- patchlevel.h        2014-03-20 20:01:28.000000000 -0400
38***************
39*** 26,30 ****
40     looks for to find the patch level (for the sccs version string). */
41 
42! #define PATCHLEVEL 6
43 
44  #endif /* _PATCHLEVEL_H_ */
45--- 26,30 ----
46     looks for to find the patch level (for the sccs version string). */
47 
48! #define PATCHLEVEL 7
49 
50  #endif /* _PATCHLEVEL_H_ */
Note: See TracBrowser for help on using the repository browser.