svashisht / rpms / bash

Forked from rpms/bash 4 years ago
Clone

Blame SOURCES/bash42-019

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