[perl #67838] [PATCH] lvalue substr keeping lexical alive
by Eric Brine via RT other posts by this author
Nov 7 2009 11:08AM messages near this date
Re: [perl #70305] perlguts.pod AvLEN
|
Re: [perl #67838] [PATCH] lvalue substr keeping lexical alive
On Fri Nov 06 16:25:33 2009, ikegami@[...].com wrote:
> On Thu Nov 05 12:56:29 2009, perl@[...].com wrote:
> > It's not only lvalue vec(), it's also lvalue pos(), substr() and maybe
> > keys().
>
> Confirmed for all four. A patch to add tests is attached.
>
> A patch to fix the problem will follow shortly.
Two patches are attached.
The first adds tests. It's an updated version of my earlier patch. It
should be used instead of the earlier patch.
The second plugs the leaks by not using TARG when a lvalue is required.
Thread:
Eric Brine via RT
Rafael Garcia-Suarez
Eric Brine
hv
Vincent Pit
Eric Brine
Demerphq
Eric Brine
Eric Brine
|