rcolebaugh / rpms / bash

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