mirror of
https://git.yoctoproject.org/poky
synced 2026-07-23 18:17:02 +00:00
35ed0a06be
This is a followup patch to incomplete CVE-2014-6271 fix code execution via specially-crafted environment Change-Id: Ibb0a587ee6e09b8174e92d005356e822ad40d4ed (From OE-Core master rev: 76a2d6b83472995edbe967aed80f0fcbb784b3fc) (From OE-Core rev: 59e7817b6e1d1dd90668083cf34f1650a84430c0) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
17 lines
520 B
Diff
17 lines
520 B
Diff
Taken from http://www.openwall.com/lists/oss-security/2016/09/25/10
|
|
|
|
Upstream-Status: Backport
|
|
Index: bash-4.3/parse.y
|
|
===================================================================
|
|
--- bash-4.3.orig/parse.y 2014-09-26 13:10:44.340080056 -0700
|
|
+++ bash-4.3/parse.y 2014-09-26 13:11:44.764080056 -0700
|
|
@@ -2953,6 +2953,8 @@
|
|
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';
|