usr/src/cmd/bash/Patches-4.0/bash40-040
branchoi_151a
changeset 254 9c2a4ac793f0
equal deleted inserted replaced
253:702bbe36863b 254:9c2a4ac793f0
       
     1 			     BASH PATCH REPORT
       
     2 			     =================
       
     3 
       
     4 Bash-Release:	4.0
       
     5 Patch-ID:	bash40-040
       
     6 
       
     7 Bug-Reported-by:	Tavis Ormandy <[email protected]>
       
     8 Bug-Reference-ID:
       
     9 Bug-Reference-URL:	http://twitter.com/taviso/statuses/514887394294652929
       
    10 
       
    11 Bug-Description:
       
    12 
       
    13 Under certain circumstances, bash can incorrectly save a lookahead character and
       
    14 return it on a subsequent call, even when reading a new line.
       
    15 
       
    16 Patch (apply with `patch -p0'):
       
    17 
       
    18 *** ../bash-4.0.39/parse.y	2009-06-02 09:08:07.000000000 -0400
       
    19 --- parse.y	2014-09-25 16:15:47.000000000 -0400
       
    20 ***************
       
    21 *** 2671,2674 ****
       
    22 --- 2671,2676 ----
       
    23     word_desc_to_read = (WORD_DESC *)NULL;
       
    24   
       
    25 +   eol_ungetc_lookahead = 0;
       
    26 + 
       
    27     current_token = '\n';		/* XXX */
       
    28     last_read_token = '\n';
       
    29 *** ../bash-4.0/patchlevel.h	2009-01-04 14:32:40.000000000 -0500
       
    30 --- patchlevel.h	2009-02-22 16:11:31.000000000 -0500
       
    31 ***************
       
    32 *** 26,30 ****
       
    33      looks for to find the patch level (for the sccs version string). */
       
    34   
       
    35 ! #define PATCHLEVEL 39
       
    36   
       
    37   #endif /* _PATCHLEVEL_H_ */
       
    38 --- 26,30 ----
       
    39      looks for to find the patch level (for the sccs version string). */
       
    40   
       
    41 ! #define PATCHLEVEL 40
       
    42   
       
    43   #endif /* _PATCHLEVEL_H_ */