This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #128182] Fix crash with require $nonstring
authorFather Chrysostomos <sprout@cpan.org>
Thu, 19 May 2016 01:07:37 +0000 (18:07 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Thu, 19 May 2016 03:13:57 +0000 (20:13 -0700)
commit08f800f8519574aea9e744ff83230fb93772652b
tree26ed553fdf1e06d508df81704876551c31b10ba9
parent482e4418cbff3a580fd0c63dd1918d375a086700
[perl #128182] Fix crash with require $nonstring

If something other than a plain string (e.g. a reference or typeglob)
whose stringified form contains a null character is passed to require()
or do(), it crashes, as of v5.19.3-130-gc8028aa, because the code in
question that handles the error tries to read fields of the scalar
that are only valid if it is a string internally.
pp_ctl.c
t/op/require_errors.t