This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
pad.c:pad_reset: check the name
authorFather Chrysostomos <sprout@cpan.org>
Sun, 12 Jan 2014 01:02:32 +0000 (17:02 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Thu, 28 Aug 2014 20:04:16 +0000 (13:04 -0700)
commit28fbeba1ab9c2dcfbb55e568b5d5df2481040bb3
tree363c39f3fc2d2182e9c95689ed8a90ae3992d8f1
parent65d013723243af0b1a8b24e6e404b9e22379e70a
pad.c:pad_reset: check the name

This code was sufficiently out-of-date to trip assertions in miniperl,
breaking the build (with -Accflags=-DUSE_BROKEN_PAD_RESET).

We can’t SvPADTMP_off on just anything, because it asserts that the
thing is !SvPADMY.

So check that it has no name first.  A pad entry without a name is an
operator target (or an unallocated entry).

The build is still broken, but it gets a bit further.
pad.c