Search
j0ke.net Open Build Service
>
Projects
>
home:opeter
:
branches:home:jg:rebuilds
>
bash
> bash-4.1-shellshok2.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File bash-4.1-shellshok2.patch of Package bash
BASH PATCH REPORT ================= Bash-Release: 4.1 Patch-ID: bash41-013 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. Patch (apply with `patch -p0'): *** ../bash-4.1.12/parse.y 2011-02-24 19:41:01.000000000 -0500 --- parse.y 2014-09-25 16:13:57.000000000 -0400 *************** *** 2812,2815 **** --- 2812,2817 ---- word_desc_to_read = (WORD_DESC *)NULL; + eol_ungetc_lookahead = 0; + current_token = '\n'; /* XXX */ last_read_token = '\n'; *** ../bash-4.1.12/y.tab.c 2011-02-24 19:41:01.000000000 -0500 --- y.tab.c 2014-09-25 20:25:39.000000000 -0400 *************** *** 5141,5144 **** --- 5141,5146 ---- word_desc_to_read = (WORD_DESC *)NULL; + eol_ungetc_lookahead = 0; + current_token = '\n'; /* XXX */ last_read_token = '\n';