components/bash/patches/bash41-013.patch
branchs11u2-sru
changeset 3463 32e84fd7641c
equal deleted inserted replaced
3461:1240b4c4e38d 3463:32e84fd7641c
       
     1 			     BASH PATCH REPORT
       
     2 			     =================
       
     3 
       
     4 Bash-Release:	4.1
       
     5 Patch-ID:	bash41-013
       
     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.1.12/parse.y	2011-02-24 19:41:01.000000000 -0500
       
    19 --- parse.y	2014-09-25 16:13:57.000000000 -0400
       
    20 ***************
       
    21 *** 2812,2815 ****
       
    22 --- 2812,2817 ----
       
    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.1-patched/patchlevel.h	2009-10-01 16:39:22.000000000 -0400
       
    30 --- patchlevel.h	2010-01-14 09:38:08.000000000 -0500
       
    31 ***************
       
    32 *** 26,30 ****
       
    33      looks for to find the patch level (for the sccs version string). */
       
    34   
       
    35 ! #define PATCHLEVEL 12
       
    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 13
       
    42   
       
    43   #endif /* _PATCHLEVEL_H_ */