bug-bash
[Top][All Lists]
Advanced

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

Re: unset associative array may cause segfault


From: Roman Rakus
Subject: Re: unset associative array may cause segfault
Date: Tue, 25 Aug 2009 16:55:10 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Thunderbird/3.0b2

On 08/25/2009 04:47 PM, Chet Ramey wrote:
Roman Rakus wrote:
reproducer:
declare -A aaa
aaa='somestring'
unset aaa

This commands cause segmentation fault, free unallocated memory.
Chet do you already fix it? Here is my fast patch.

I already fixed it, thanks.  Your patch introduces large memory leaks;
the right place to fix it is where the code passes a literal string to
assoc_insert().

Chet

Nice, thanks. This fix (and others) will be in other round of patches for bash-4.0 or in bash-4.1 or in bash-5.0 or...?
RR


reply via email to

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