components/bash/patches/bash42-049.patch
changeset 5518 c47fe0edc204
parent 5517 7758049098f4
child 5519 a02d4d12218f
equal deleted inserted replaced
5517:7758049098f4 5518:c47fe0edc204
     1 			     BASH PATCH REPORT
       
     2 			     =================
       
     3 
       
     4 Bash-Release:	4.2
       
     5 Patch-ID:	bash42-049
       
     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.2.48/parse.y	2012-12-31 11:52:57.000000000 -0500
       
    19 --- parse.y	2014-09-25 16:12:19.000000000 -0400
       
    20 ***************
       
    21 *** 2851,2854 ****
       
    22 --- 2851,2856 ----
       
    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.2-patched/patchlevel.h	Sat Jun 12 20:14:48 2010
       
    30 --- patchlevel.h	Thu Feb 24 21:41:34 2011
       
    31 ***************
       
    32 *** 26,30 ****
       
    33      looks for to find the patch level (for the sccs version string). */
       
    34   
       
    35 ! #define PATCHLEVEL 48
       
    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 49
       
    42   
       
    43   #endif /* _PATCHLEVEL_H_ */