This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #129164] Crash with splice
authorFather Chrysostomos <sprout@cpan.org>
Mon, 12 Sep 2016 04:29:56 +0000 (21:29 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Mon, 12 Sep 2016 04:30:10 +0000 (21:30 -0700)
commit92b69f6501b4d7351e09c8b1ddd386aa7e1c9cd1
treedf5c4ad56a81c94801ebe37a6adf119bffdb1a6a
parent95c0a761e6d0916fd6abd02af5a344be7de9ecdb
[perl #129164] Crash with splice

This fixes #129166 and #129167 as well.

splice needs to take into account that arrays can hold NULLs and
return &PL_sv_undef in those cases where it would have returned a
NULL element.
pp.c
t/op/array.t