7 Bug-Reported-by: Tavis Ormandy <taviso@cmpxchg8b.com>
9 Bug-Reference-URL: http://twitter.com/taviso/statuses/514887394294652929
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.
16 Patch (apply with `patch -p0'):
20 @@ -2953,6 +2953,8 @@ reset_parser ()
21 FREE (word_desc_to_read);
22 word_desc_to_read = (WORD_DESC *)NULL;
24 + eol_ungetc_lookahead = 0;
26 current_token = '\n'; /* XXX */
27 last_read_token = '\n';
31 @@ -5265,6 +5265,8 @@ reset_parser ()
32 FREE (word_desc_to_read);
33 word_desc_to_read = (WORD_DESC *)NULL;
35 + eol_ungetc_lookahead = 0;
37 current_token = '\n'; /* XXX */
38 last_read_token = '\n';
40 @@ -8539,4 +8541,3 @@ set_line_mbstate ()
43 #endif /* HANDLE_MULTIBYTE */
48 regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
49 looks for to find the patch level (for the sccs version string). */
51 -#define PATCHLEVEL 25
52 +#define PATCHLEVEL 26
54 #endif /* _PATCHLEVEL_H_ */