Re: double free or corruption read builtin

2017-05-07 Thread Chet Ramey
On 5/6/17 5:54 PM, Eduardo Bustamante wrote: > On Sat, May 6, 2017 at 4:25 PM, Chet Ramey wrote: > [...] >> Thanks for the report. This will get fixed. > > I'm not sure if this one is related to the above, or a different bug. > But I'm leaving it here anyways in case it helps: > > (gdb) r -c 'r

Re: double free or corruption read builtin

2017-05-06 Thread Eduardo Bustamante
On Sat, May 6, 2017 at 4:25 PM, Chet Ramey wrote: [...] > Thanks for the report. This will get fixed. I'm not sure if this one is related to the above, or a different bug. But I'm leaving it here anyways in case it helps: (gdb) r -c 'read -n 128 < foo' Starting program: /bash/bash -c 'read -n

Re: double free or corruption read builtin

2017-05-06 Thread Chet Ramey
On 5/5/17 1:45 AM, Eduardo Bustamante wrote: > dualbus@debian:~/bash-fuzzing/read$ cat -A 6b > M-^_0^A\$ > ^N > > dualbus@debian:~/bash-fuzzing/read$ od -c 6b > 000 237 0 001 \ \n 016 > 006 > > (gdb) file ~/src/gnu/bash/bash > Reading symbols from ~/src/gnu/bash/bash...done. > (gdb)

Re: double free or corruption read builtin

2017-05-05 Thread Eduardo Bustamante
I'm not sure if this one is related or a separate bug: dualbus@debian:~$ ~/src/gnu/bash/bash -c 'read -rN3 IFS; read' <<< $'\001\$\\' = ==5485==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60b0a1cf at pc 0x555ed4236d

double free or corruption read builtin

2017-05-04 Thread Eduardo Bustamante
dualbus@debian:~/bash-fuzzing/read$ cat -A 6b M-^_0^A\$ ^N dualbus@debian:~/bash-fuzzing/read$ od -c 6b 000 237 0 001 \ \n 016 006 (gdb) file ~/src/gnu/bash/bash Reading symbols from ~/src/gnu/bash/bash...done. (gdb) r -c 'exec < 6b; read -N3 -d "" IFS; read a b' Starting program: /h