summaryrefslogtreecommitdiffstats
path: root/source/a/bash/bash-4.3-patches/bash43-046
blob: bea3970a2a1a4a6f037775f75faa33b063b381a6 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
			     BASH PATCH REPORT
			     =================

Bash-Release:	4.3
Patch-ID:	bash43-046

Bug-Reported-by:	Sergey Tselikh <stselikh@gmail.com>
Bug-Reference-ID:	<20150816110235.91f3e12e3f20d20cdaad963e@gmail.com>
Bug-Reference-URL:	http://lists.gnu.org/archive/html/bug-bash/2015-08/msg00080.html

Bug-Description:

An incorrect conversion from an indexed to associative array can result in a
core dump.

Patch (apply with `patch -p0'):

*** /fs2/chet/bash/bash-20150813/subst.c	2015-08-13 11:32:54.000000000 -0400
--- subst.c	2015-08-18 10:13:59.000000000 -0400
***************
*** 9562,9566 ****
  	  opts[opti] = '\0';
  	  if (opti > 0)
! 	    make_internal_declare (tlist->word->word, opts);
  
  	  t = do_word_assignment (tlist->word, 0);
--- 9562,9573 ----
  	  opts[opti] = '\0';
  	  if (opti > 0)
! 	    {
! 	      t = make_internal_declare (tlist->word->word, opts);
! 	      if (t != EXECUTION_SUCCESS)
! 		{
! 		  last_command_exit_value = t;
! 		  exp_jump_to_top_level (DISCARD);
! 		}
! 	    }
  
  	  t = do_word_assignment (tlist->word, 0);

*** ../bash-4.3/patchlevel.h	2012-12-29 10:47:57.000000000 -0500
--- 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 45
  
  #endif /* _PATCHLEVEL_H_ */
--- 26,30 ----
     looks for to find the patch level (for the sccs version string). */
  
! #define PATCHLEVEL 46
  
  #endif /* _PATCHLEVEL_H_ */