07a490
			     BASH PATCH REPORT
07a490
			     =================
07a490
07a490
Bash-Release:	4.2
07a490
Patch-ID:	bash42-019
07a490
07a490
Bug-Reported-by:	Diego Augusto Molina <diegoaugustomolina@gmail.com>
07a490
Bug-Reference-ID:	<CAGOxLdHcSQu3ck9Qy3pRjj_NBU5tAPSAvNm-95-nLQ9Szwb6aA@mail.gmail.com>
07a490
Bug-Reference-URL:	lists.gnu.org/archive/html/bug-bash/2011-09/msg00047.html
07a490
07a490
Bug-Description:
07a490
07a490
Using `declare' with attributes and an invalid array variable name or
07a490
assignment reference resulted in a segmentation fault instead of a
07a490
declaration error.
07a490
07a490
Patch (apply with `patch -p0'):
07a490
07a490
*** ../bash-4.2-patched/builtins/declare.def	2010-05-30 18:25:21.000000000 -0400
07a490
--- builtins/declare.def	2011-09-15 15:20:20.000000000 -0400
07a490
***************
07a490
*** 514,517 ****
07a490
--- 514,522 ----
07a490
  	      var = assign_array_element (name, value, 0);	/* XXX - not aflags */
07a490
  	      *subscript_start = '\0';
07a490
+ 	      if (var == 0)	/* some kind of assignment error */
07a490
+ 		{
07a490
+ 		  assign_error++;
07a490
+ 		  NEXT_VARIABLE ();
07a490
+ 		}
07a490
  	    }
07a490
  	  else if (simple_array_assign)
07a490
*** ../bash-4.2-patched/patchlevel.h	Sat Jun 12 20:14:48 2010
07a490
--- patchlevel.h	Thu Feb 24 21:41:34 2011
07a490
***************
07a490
*** 26,30 ****
07a490
     looks for to find the patch level (for the sccs version string). */
07a490
  
07a490
! #define PATCHLEVEL 18
07a490
  
07a490
  #endif /* _PATCHLEVEL_H_ */
07a490
--- 26,30 ----
07a490
     looks for to find the patch level (for the sccs version string). */
07a490
  
07a490
! #define PATCHLEVEL 19
07a490
  
07a490
  #endif /* _PATCHLEVEL_H_ */