07a490
			     BASH PATCH REPORT
07a490
			     =================
07a490
07a490
Bash-Release:	4.2
07a490
Patch-ID:	bash42-021
07a490
07a490
Bug-Reported-by:	Dan Douglas <ormaaj@gmail.com>
07a490
Bug-Reference-ID:	<4585554.nZWb4q7YoZ@smorgbox>
07a490
Bug-Reference-URL:	http://lists.gnu.org/archive/html/bug-bash/2011-12/msg00084.html
07a490
07a490
Bug-Description:
07a490
07a490
Using `read -N' to assign values to an array can result in NUL values being
07a490
assigned to some array elements.  These values cause seg faults when referenced
07a490
later.
07a490
07a490
Patch (apply with `patch -p0'):
07a490
07a490
*** ../bash-4.2-patched/builtins/read.def	2011-11-21 18:03:38.000000000 -0500
07a490
--- builtins/read.def	2011-12-19 19:52:12.000000000 -0500
07a490
***************
07a490
*** 738,742 ****
07a490
  	    }
07a490
  	  else
07a490
! 	    var = bind_read_variable (varname, t);
07a490
  	}
07a490
        else
07a490
--- 775,779 ----
07a490
  	    }
07a490
  	  else
07a490
! 	    var = bind_read_variable (varname, t ? t : "");
07a490
  	}
07a490
        else
07a490
***************
07a490
*** 799,803 ****
07a490
      }
07a490
    else
07a490
!     var = bind_read_variable (list->word->word, input_string);
07a490
  
07a490
    if (var)
07a490
--- 836,840 ----
07a490
      }
07a490
    else
07a490
!     var = bind_read_variable (list->word->word, input_string ? input_string : "");
07a490
  
07a490
    if (var)
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 20
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 21
07a490
  
07a490
  #endif /* _PATCHLEVEL_H_ */