Re: expand_prompt_string segmentation faults

2018-09-17 Thread Eduardo A . Bustamante López
On Sun, Sep 16, 2018 at 07:24:13PM -0400, Chet Ramey wrote: > On 9/16/18 5:15 PM, Eduardo A. Bustamante López wrote: > > On Sun, Sep 16, 2018 at 02:39:07PM -0400, Chet Ramey wrote: > >> On 9/16/18 4:12 AM, Eduardo A. Bustamante López wrote: > >>> Here's another interesting crash: > >>> > >>> $ base

Re: expand_prompt_string segmentation faults

2018-09-16 Thread Chet Ramey
On 9/16/18 5:15 PM, Eduardo A. Bustamante López wrote: > On Sun, Sep 16, 2018 at 02:39:07PM -0400, Chet Ramey wrote: >> On 9/16/18 4:12 AM, Eduardo A. Bustamante López wrote: >>> Here's another interesting crash: >>> >>> $ base64 < 53 >>> MBgFEBAQMBgFEBAfEA== >>> >>> $ gdb -batch -ex=r -ex=bt --arg

Re: expand_prompt_string segmentation faults

2018-09-16 Thread Eduardo A . Bustamante López
On Sun, Sep 16, 2018 at 02:39:07PM -0400, Chet Ramey wrote: > On 9/16/18 4:12 AM, Eduardo A. Bustamante López wrote: > > Here's another interesting crash: > > > > $ base64 < 53 > > MBgFEBAQMBgFEBAfEA== > > > > $ gdb -batch -ex=r -ex=bt --args ./bash --noprofile --norc -c 'PATH=; set > > -o emacs

Re: expand_prompt_string segmentation faults

2018-09-16 Thread Chet Ramey
On 9/16/18 2:55 AM, Eduardo Bustamante wrote: > On Sat, Sep 15, 2018 at 8:15 PM Chet Ramey wrote: > (...) >> Thanks for the report. They are the same problem. > > Thanks Chet. Do you have a patch for the issue? I have a few other > cases but I'm not sure if they're all due to the same cause. Sur

Re: expand_prompt_string segmentation faults

2018-09-16 Thread Chet Ramey
On 9/16/18 4:12 AM, Eduardo A. Bustamante López wrote: > Here's another interesting crash: > > $ base64 < 53 > MBgFEBAQMBgFEBAfEA== > > $ gdb -batch -ex=r -ex=bt --args ./bash --noprofile --norc -c 'PATH=; set -o > emacs; IFS= read -re' < 53 I can't reproduce this on Mac OS X or Fedora 28. --

Re: expand_prompt_string segmentation faults

2018-09-16 Thread Eduardo A . Bustamante López
Here's another interesting crash: $ base64 < 53 MBgFEBAQMBgFEBAfEA== $ gdb -batch -ex=r -ex=bt --args ./bash --noprofile --norc -c 'PATH=; set -o emacs; IFS= read -re' < 53 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". 0

Re: expand_prompt_string segmentation faults

2018-09-15 Thread Eduardo Bustamante
On Sat, Sep 15, 2018 at 8:15 PM Chet Ramey wrote: (...) > Thanks for the report. They are the same problem. Thanks Chet. Do you have a patch for the issue? I have a few other cases but I'm not sure if they're all due to the same cause.

Re: expand_prompt_string segmentation faults

2018-09-15 Thread Chet Ramey
On 9/14/18 3:26 AM, Eduardo A. Bustamante López wrote: > Found the following two cases by fuzzing with AFL: Thanks for the report. They are the same problem. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey,