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