Re: BashPitfall 65, read reading past the delimiter on records ending in truncated characters

2025-04-20 Thread Stephane Chazelas
2025-04-20 17:31:56 -0400, Chet Ramey: [...] > This has been fixed since last July, and the fix is in bash-5.3. [...] Thanks, though as Greg says, there seems to be a few more related issues still affecting 5.3. I repost a message sent privately below now that the discussion has been extended to t

Re: BashPitfall 65, read reading past the delimiter on records ending in truncated characters

2025-04-20 Thread Greg Wooledge
On Sun, Apr 20, 2025 at 17:31:56 -0400, Chet Ramey wrote: > On 4/20/25 3:08 AM, Stephane Chazelas wrote: > > > $ printf '%b\0' winter 'spring\0315' summer automn | > > bash -c 'while IFS= read -rd "" season; do printf "<%q>\n" "$season"; > > done' > > > > <$'spring\315'> > > > > > > skippi

Re: Heap-buffer-overflow in parse_matched_pair when push_delimiter (dstack, ch) macros opens up

2025-04-20 Thread Chet Ramey
On 4/20/25 2:45 PM, Александр Ушаков wrote: Dear Bash Maintainers, I encountered an issue in Bash and would like to report it. buggyfile.txt is attached to the email. The attached file is just a copy of bashbug. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer

Heap-buffer-overflow in parse_matched_pair when push_delimiter (dstack, ch) macros opens up

2025-04-20 Thread Александр Ушаков
Dear Bash Maintainers,   I encountered an issue in Bash and would like to report it. buggyfile.txt is attached to the email.  Steps to reproduce $ CC=clang-19 CFLAGS="-fsanitize=address -g -O0" ./configure --without-bash-malloc $ make $ cat buggyfile.txt | ./bash --norc Expected Behaviour An