This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Null HeVAL and local delete → crash
authorFather Chrysostomos <sprout@cpan.org>
Wed, 27 Jun 2012 03:21:29 +0000 (20:21 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Wed, 27 Jun 2012 07:51:45 +0000 (00:51 -0700)
commitbe6064fd646b3102eae032226820fb886c52b961
tree52a4d8aacf35eaf5319a8b1963ad2c57b2469ed5
parent71739502e6eb02644b90372ce6020b03ebc8a428
Null HeVAL and local delete → crash

The XS API allows hash entries to be created with null values.  perl
itself uses these internally, too.

Though they should rarely be seen by Perl code, Perl ops should still
be able to handle them without crashing (by croaking).  I fixed helem
and hslice in 5.16 (commit 746f6409), but missed localised deletions.
ext/XS-APItest/t/hash.t
pp.c