bug-bash
[Top][All Lists]
Advanced

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

Re: SourceAv in rewind_input_string when trying to compare with rvalue


From: Grisha Levit
Subject: Re: SourceAv in rewind_input_string when trying to compare with rvalue
Date: Thu, 1 May 2025 10:46:05 -0400

On Fri, Apr 25, 2025, 16:08 Александр Ушаков <aushakov@astralinux.ru> wrote:
>
> I encountered an issue in Bash and would like to report it. crash2.txt is 
> attached to the email.
>
> Steps to reproduce
>
> $ CC=clang-19 CFLAGS="-fsanitize=address -g -O0" ./configure 
> --without-bash-malloc
> $ make
> $ cat crash2.txt | ./bash

This can still be reproduced after the fix pushed today.
Somewhat simplified version:

    ./bash -n <<< \
    $'x[$(() #\'\n$(#\'\n)$(x[$(() #\'\n$(<<EOF\n\'\nEOFcase x in x)x=(]\n)]'

    ERROR: AddressSanitizer: SEGV on unknown address 0x0000ffffffff



reply via email to

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