bug-bash
[Top][All Lists]
Advanced

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

Re: global-buffer-overflow in parse.y


From: Grisha Levit
Subject: Re: global-buffer-overflow in parse.y
Date: Thu, 16 Mar 2023 18:10:29 -0400

On Mon, Mar 6, 2023 at 9:16 AM Chet Ramey <chet.ramey@case.edu> wrote:
> Thanks for the report. It's the specific combination of `if' and the `(('
> command that causes the problem.

Looks like same thing also happens when `if' is followed by a newline

./bash -c $'case $LINENO in 0) if\n:; then echo FAIL; fi esac'
bash/parse.y:980:82: runtime error: index -1 out of bounds for type 'int[257]'
    #0 0x100759bcc in yyparse parse.y:980



reply via email to

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