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: Chet Ramey
Subject: Re: unset associative array may cause segfault
Date: Tue, 25 Aug 2009 10:58:29 -0400

> >> 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().
> >
> 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...?

It will probably be a patch for bash-4.0, and will certainly be in bash-4.1.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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