bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bash-4.2 Official Patch 38


From: Chet Ramey
Subject: Bash-4.2 Official Patch 38
Date: Fri, 2 Nov 2012 10:15:52 -0400

                             BASH PATCH REPORT
                             =================

Bash-Release:   4.2
Patch-ID:       bash42-038

Bug-Reported-by:        armandsl@gmail.com
Bug-Reference-ID:       <20120822112810.8D14920040@windmill.latviatours.lv>
Bug-Reference-URL:      
http://lists.gnu.org/archive/html/bug-bash/2012-08/msg00049.html

Bug-Description:

If a backslash-newline (which is removed) with no other input is given as
input to `read', the shell tries to dereference a null pointer and seg faults.

Patch (apply with `patch -p0'):

*** ../bash-4.2-patched/builtins/read.def       2012-03-11 17:52:44.000000000 
-0400
--- builtins/read.def   2012-08-22 11:53:09.000000000 -0400
***************
*** 792,796 ****
  #endif
  
!   if (saw_escape)
      {
        t = dequote_string (input_string);
--- 847,851 ----
  #endif
  
!   if (saw_escape && input_string && *input_string)
      {
        t = dequote_string (input_string);
*** ../bash-4.2-patched/patchlevel.h    Sat Jun 12 20:14:48 2010
--- patchlevel.h        Thu Feb 24 21:41:34 2011
***************
*** 26,30 ****
     looks for to find the patch level (for the sccs version string). */
  
! #define PATCHLEVEL 37
  
  #endif /* _PATCHLEVEL_H_ */
--- 26,30 ----
     looks for to find the patch level (for the sccs version string). */
  
! #define PATCHLEVEL 38
  
  #endif /* _PATCHLEVEL_H_ */

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]