Re: Bash 5.2.21 segfaults when I feed it garbage

2024-01-15 Thread Chet Ramey
On 1/14/24 7:24 PM, Grisha Levit wrote: See also (even after the fix pushed today):     bash -c '(( X=([))])'     heap-use-after-free parse.y:2712:60 in shell_getc     bash -c '(( X=([))]) ))'     heap-use-after-free parse.y:2077:11 in parser_expanding_alias Thanks. This is a different

Re: Bash 5.2.21 segfaults when I feed it garbage

2024-01-14 Thread Grisha Levit
On Fri, Jan 12, 2024, 15:29 Chet Ramey wrote: > On 1/10/24 2:06 PM, Grisha Levit wrote: > > > Rewriting the original report as: > > > > bash <<<'((X=([))' > > > > even after the last fix, there's still a similar issue with input like: > > > > bash <<<'((X=([))]' > > Thanks for the

Re: Bash 5.2.21 segfaults when I feed it garbage

2024-01-12 Thread Chet Ramey
On 1/10/24 2:06 PM, Grisha Levit wrote: Rewriting the original report as: bash <<<'((X=([))' even after the last fix, there's still a similar issue with input like: bash <<<'((X=([))]' Thanks for the report. I debated whether or not to do error handling before restoring the

Re: Bash 5.2.21 segfaults when I feed it garbage

2024-01-10 Thread Grisha Levit
On Mon, Jan 8, 2024 at 4:41 PM Chet Ramey wrote: > I think there's a simpler > way to fix it in parse_compound_assignment and parse_string_to_word_list > directly, and that change will be in the next devel branch push. Rewriting the original report as: bash <<<'((X=([))' even after the

Re: Bash 5.2.21 segfaults when I feed it garbage

2024-01-08 Thread Chet Ramey
On 1/8/24 12:10 AM, Nathan Mills wrote: Bash Version: 5.2 Patch Level: bash-5.2-22-g4b0f8ba2 Release Status: master Description: Bash 5.2 segfaults when I run the following crashing input (See Repeat-By:). Thanks for the report and detailed diagnosis, and the reproducer. Your fix,

Bash 5.2.21 segfaults when I feed it garbage

2024-01-08 Thread Nathan Mills
From: Nathan Mills To: bug-bash@gnu.org Subject: Bash 5.2.21 segfaults when I feed it garbage Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: clang-15.0.7 Compilation CFLAGS: -g -O2 uname output: Linux MSI 5.15.133.1-microsoft-standard