Re: popd controlled free (Segmentation fault) with bash 4.2.47, 4.3.48, and 4.4.5

2016-11-25 Thread Mike Frysinger
On 21 Nov 2016 10:13, Chet Ramey wrote: > On 11/21/16 6:47 AM, wer...@suse.de wrote: > > Bash Version: 4.2.47, 4.3.48, 4.4.5 > > Release Status: release > > OpenSUSE bug: 1010845 > > CVE: 2016-9401 > > > > Description: > > popd controlled free (Segmentation fault) in all bash versions here >

Re: ``read -N n -t timeout'' saves partial input only when EOF is seen?

2016-11-25 Thread Chet Ramey
On 11/25/16 9:57 AM, Dmitry Goncharov wrote: > Auto variables have unspecified values after a call to longjmp. This is true. It's what the USE_VAR macro is intended to defeat, but let's see what marking i volatile does. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer

Re: ``read -N n -t timeout'' saves partial input only when EOF is seen?

2016-11-25 Thread Dmitry Goncharov
Auto variables have unspecified values after a call to longjmp. This patch fixes the bug. regards, Dmitry diff --git a/builtins/read.def b/builtins/read.def index 5e2348c..938b62a 100644 --- a/builtins/read.def +++ b/builtins/read.def @@ -181,7 +181,8 @@ read_builtin (list) WORD_LIST *list;