This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Don’t crash when writing to null hash elem
authorFather Chrysostomos <sprout@cpan.org>
Sat, 24 Dec 2011 15:05:42 +0000 (07:05 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 25 Dec 2011 00:14:31 +0000 (16:14 -0800)
commit746f6409435f8adf48a22fa3c61d95758160b655
tree2e01962418518b71f6d2a56e7a5fc25a2662a944
parent3f4d1d7873e4e02f3801f2982565de93d2127bbd
Don’t crash when writing to null hash elem

It’s possible for XS code to create hash entries with null values.
pp_helem and pp_slice were not taking that into account.  In fact,
the core produces such hash entries, but they are rarely visible from
Perl.  It’s good to check for them anyway.
ext/XS-APItest/t/hash.t
pp.c
pp_hot.c