Blame SOURCES/bash42-038

ff19ae
			     BASH PATCH REPORT
ff19ae
			     =================
ff19ae
ff19ae
Bash-Release:	4.2
ff19ae
Patch-ID:	bash42-038
ff19ae
ff19ae
Bug-Reported-by:	armandsl@gmail.com
ff19ae
Bug-Reference-ID:	<20120822112810.8D14920040@windmill.latviatours.lv>
ff19ae
Bug-Reference-URL:	http://lists.gnu.org/archive/html/bug-bash/2012-08/msg00049.html
ff19ae
ff19ae
Bug-Description:
ff19ae
ff19ae
If a backslash-newline (which is removed) with no other input is given as
ff19ae
input to `read', the shell tries to dereference a null pointer and seg faults.
ff19ae
ff19ae
Patch (apply with `patch -p0'):
ff19ae
ff19ae
*** ../bash-4.2-patched/builtins/read.def	2012-03-11 17:52:44.000000000 -0400
ff19ae
--- builtins/read.def	2012-08-22 11:53:09.000000000 -0400
ff19ae
***************
ff19ae
*** 792,796 ****
ff19ae
  #endif
ff19ae
  
ff19ae
!   if (saw_escape)
ff19ae
      {
ff19ae
        t = dequote_string (input_string);
ff19ae
--- 847,851 ----
ff19ae
  #endif
ff19ae
  
ff19ae
!   if (saw_escape && input_string && *input_string)
ff19ae
      {
ff19ae
        t = dequote_string (input_string);
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 37
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 38
ff19ae
  
ff19ae
  #endif /* _PATCHLEVEL_H_ */