develooper Front page | perl.perl5.porters | Postings from November 2009

[perl #67838] [PATCH] lvalue substr keeping lexical alive

Thread Previous | Thread Next
From:
Eric Brine via RT
Date:
November 7, 2009 11:07
Subject:
[perl #67838] [PATCH] lvalue substr keeping lexical alive
Message ID:
rt-3.6.HEAD-8015-1257558585-204.67838-15-0@perl.org
On Fri Nov 06 16:25:33 2009, ikegami@adaelis.com wrote:
> On Thu Nov 05 12:56:29 2009, perl@profvince.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 Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About