develooper Front page | perl.perl5.porters | Postings from September 2010

[PATCH] Re: [perl #77930] perlbug AutoReply: cx_stack reallocation during sort (Bleadperl 133acf7b breaks JE)

Thread Next
From:
Father Chrysostomos
Date:
September 19, 2010 12:18
Subject:
[PATCH] Re: [perl #77930] perlbug AutoReply: cx_stack reallocation during sort (Bleadperl 133acf7b breaks JE)
Message ID:
FF28795F-C1DD-4503-8F48-905920045E52@cpan.org

On Sep 19, 2010, at 12:15 PM, Father Chrysostomos wrote:

> This script crashes:
> 
> perl5.13.4 -le' $sub = sub { local $count = $count+1; ()->$sub if $count < 1000; $a cmp $b }; () = sort $sub qw<a b c d e f g>'
> 
> ...
> 
> This change does not take into account that cx_stack may have been reallocated, and that cx may be pointing to freed memory.
> 
Here is a patch for it.

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