summaryrefslogtreecommitdiff
path: root/debian/patches/bash43-026.diff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2014-10-08 11:48:42 +0400
committerIgor Pashev <pashev.igor@gmail.com>2014-10-08 11:48:42 +0400
commit597d7d4d9df6e688e766f1da1c7de92b191fbde9 (patch)
treee758dd00a56a9039deba2abab755033466bd0cbf /debian/patches/bash43-026.diff
downloadbash-597d7d4d9df6e688e766f1da1c7de92b191fbde9.tar.gz
Debian bash 4.3-11debian/4.3-11debian
Diffstat (limited to 'debian/patches/bash43-026.diff')
-rw-r--r--debian/patches/bash43-026.diff58
1 files changed, 58 insertions, 0 deletions
diff --git a/debian/patches/bash43-026.diff b/debian/patches/bash43-026.diff
new file mode 100644
index 0000000..e073e32
--- /dev/null
+++ b/debian/patches/bash43-026.diff
@@ -0,0 +1,58 @@
+ BASH PATCH REPORT
+ =================
+
+Bash-Release: 4.3
+Patch-ID: bash43-026
+
+Bug-Reported-by: Tavis Ormandy <taviso@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.
+
+Index: b/parse.y
+===================================================================
+--- a/parse.y
++++ b/parse.y
+@@ -2953,6 +2953,8 @@ reset_parser ()
+ FREE (word_desc_to_read);
+ word_desc_to_read = (WORD_DESC *)NULL;
+
++ eol_ungetc_lookahead = 0;
++
+ current_token = '\n'; /* XXX */
+ last_read_token = '\n';
+ token_to_read = '\n';
+Index: b/patchlevel.h
+===================================================================
+--- a/patchlevel.h
++++ b/patchlevel.h
+@@ -25,6 +25,6 @@
+ regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
+ looks for to find the patch level (for the sccs version string). */
+
+-#define PATCHLEVEL 25
++#define PATCHLEVEL 26
+
+ #endif /* _PATCHLEVEL_H_ */
+Index: b/y.tab.c
+===================================================================
+--- a/y.tab.c
++++ b/y.tab.c
+@@ -5265,6 +5265,8 @@ reset_parser ()
+ FREE (word_desc_to_read);
+ word_desc_to_read = (WORD_DESC *)NULL;
+
++ eol_ungetc_lookahead = 0;
++
+ current_token = '\n'; /* XXX */
+ last_read_token = '\n';
+ token_to_read = '\n';
+@@ -8539,4 +8541,3 @@ set_line_mbstate ()
+ }
+ }
+ #endif /* HANDLE_MULTIBYTE */
+-