bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bash 5.2.21 segfaults when I feed it garbage


From: Grisha Levit
Subject: Re: Bash 5.2.21 segfaults when I feed it garbage
Date: Sun, 14 Jan 2024 19:24:27 -0500

On Fri, Jan 12, 2024, 15:29 Chet Ramey <chet.ramey@case.edu> 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 report. I debated whether or not to do error handling before
> restoring the parser state; this makes up my mind.
>

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

>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]