BASH PATCH REPORT ================= Bash-Release: 2.05b Patch-ID: bash205b-009 Bug-Reported-by: Tavis Ormandy 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'; *** ../bash-2.05b.08/y.tab.c 2002-05-21 11:57:35.000000000 -0400 --- y.tab.c 2014-09-25 16:56:20.000000000 -0400 *************** *** 3877,3880 **** --- 3877,3882 ---- word_desc_to_read = (WORD_DESC *)NULL; + eol_ungetc_lookahead = 0; + last_read_token = '\n'; token_to_read = '\n';