Re: bash -n: stack overflow in extract_delimited_string()

2020-08-03 Thread Jakub Wilk
* Chet Ramey , 2020-08-03, 09:15: On 8/3/20 5:30 AM, Jakub Wilk wrote: Bash Version: 5.0 Patch Level: 18 Release Status: release bash crashes with stack overflow when checking syntax of this crafted script:   $ ulimit -s   8192   $ printf 'x[$(($(fi)))`\n%05d\n][`]\n' | tr 0 '(' | bash -

Re: bash -n: stack overflow in extract_delimited_string()

2020-08-03 Thread Chet Ramey
On 8/3/20 5:30 AM, Jakub Wilk wrote: > Bash Version: 5.0 > Patch Level: 18 > Release Status: release > > bash crashes with stack overflow when checking syntax of this crafted script: > >   $ ulimit -s >   8192 > >   $ printf 'x[$(($(fi)))`\n%05d\n][`]\n' | tr 0 '(' | bash -n >   bash: comma

bash -n: stack overflow in extract_delimited_string()

2020-08-03 Thread Jakub Wilk
Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -g -O2 -Wno-parentheses -Wno-format-security uname output: Linux debian 4.19.0-9-cloud-amd64 #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07) x86_64 GNU/Linux Machine Type: x86_64-pc-linux-gnu Bash Version: 5.0 Patch Level: 18 Release