| Store | Cart

[perl #124385] null ptr deref -> Perl_cv_forget_slab (pad.c:500)

From: Hugo van der Sanden via RT <perl...@perl.org>
Sun, 26 Apr 2015 15:16:36 -0700
On Fri Apr 24 18:11:27 2015, bria...@gmail.com wrote:
> 0;q...@{sub{]]}}}}}

Bisecting with:

  Porting/bisect.pl --target=miniperl --crash -- ./miniperl -ce '0;q...@{sub{]]}}}}}'

finds this:

commit 9ffcdca1f504cb09088413c074b35af4b7f247e3
Author: Father Chrysostomos <spr...@cpan.org>
Date:   Mon Nov 12 23:04:16 2012 -0800

    Don’t leak subs containing syntax errors
    
    I fixed this for BEGIN blocks earlier, but missed the fact that
    all subs are affected.
    
    When called without an o argument (from newANONATTRSUB), newATTRSUB
    is expected to return a CV with an unowned reference count of which
    the caller will take ownership.  We cannot have newATTRSUB returning
    a freed CV, so we have it return null instead.  But that means
    ck_anoncode and pm_runtime have to account for that.

Hugo

---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=124385

Recent Messages in this Thread
Brian Carpenter (via RT) Apr 25, 2015 01:11 am
Hugo van der Sanden via RT Apr 26, 2015 10:16 pm
Dave Mitchell May 05, 2015 10:27 am
Messages in this thread