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

Bash-Release: 2.05b
Patch-ID: bash205b-009

Bug-Reported-by:        Tavis Ormandy <tav...@cmpxchg8b.com>
Bug-Reference-ID:
Bug-Reference-URL:      http://twitter.com/taviso/statuses/514887394294652929

Bug-Description:

Under certain circumstances, bash can incorrectly save a lookahead character and
return it on a subsequent call, even when reading a new line.

Patch:

*** ../bash-2.05b.08/parse.y    2002-05-21 11:57:30.000000000 -0400
--- parse.y     2014-09-25 16:46:51.000000000 -0400
***************
*** 2356,2359 ****
--- 2356,2361 ----
    word_desc_to_read = (WORD_DESC *)NULL;
  
+   eol_ungetc_lookahead = 0;
+ 
    last_read_token = '\n';
    token_to_read = '\n';

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

Reply via email to