rcolebaugh / rpms / bash

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