462fb2
			     BASH PATCH REPORT
462fb2
			     =================
462fb2
462fb2
Bash-Release:	4.2
462fb2
Patch-ID:	bash42-021
462fb2
462fb2
Bug-Reported-by:	Dan Douglas <ormaaj@gmail.com>
462fb2
Bug-Reference-ID:	<4585554.nZWb4q7YoZ@smorgbox>
462fb2
Bug-Reference-URL:	http://lists.gnu.org/archive/html/bug-bash/2011-12/msg00084.html
462fb2
462fb2
Bug-Description:
462fb2
462fb2
Using `read -N' to assign values to an array can result in NUL values being
462fb2
assigned to some array elements.  These values cause seg faults when referenced
462fb2
later.
462fb2
462fb2
Patch (apply with `patch -p0'):
462fb2
462fb2
*** ../bash-4.2-patched/builtins/read.def	2011-11-21 18:03:38.000000000 -0500
462fb2
--- builtins/read.def	2011-12-19 19:52:12.000000000 -0500
462fb2
***************
462fb2
*** 738,742 ****
462fb2
  	    }
462fb2
  	  else
462fb2
! 	    var = bind_read_variable (varname, t);
462fb2
  	}
462fb2
        else
462fb2
--- 775,779 ----
462fb2
  	    }
462fb2
  	  else
462fb2
! 	    var = bind_read_variable (varname, t ? t : "");
462fb2
  	}
462fb2
        else
462fb2
***************
462fb2
*** 799,803 ****
462fb2
      }
462fb2
    else
462fb2
!     var = bind_read_variable (list->word->word, input_string);
462fb2
  
462fb2
    if (var)
462fb2
--- 836,840 ----
462fb2
      }
462fb2
    else
462fb2
!     var = bind_read_variable (list->word->word, input_string ? input_string : "");
462fb2
  
462fb2
    if (var)
462fb2
*** ../bash-4.2-patched/patchlevel.h	Sat Jun 12 20:14:48 2010
462fb2
--- patchlevel.h	Thu Feb 24 21:41:34 2011
462fb2
***************
462fb2
*** 26,30 ****
462fb2
     looks for to find the patch level (for the sccs version string). */
462fb2
  
462fb2
! #define PATCHLEVEL 20
462fb2
  
462fb2
  #endif /* _PATCHLEVEL_H_ */
462fb2
--- 26,30 ----
462fb2
     looks for to find the patch level (for the sccs version string). */
462fb2
  
462fb2
! #define PATCHLEVEL 21
462fb2
  
462fb2
  #endif /* _PATCHLEVEL_H_ */