This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #129196] Crash/bad read with ‘evalbytes S’
authorFather Chrysostomos <sprout@cpan.org>
Mon, 5 Sep 2016 03:24:19 +0000 (20:24 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Mon, 5 Sep 2016 04:29:47 +0000 (21:29 -0700)
commit9bde56224e82f20e7a65b3469b1ffb6b9f6d4df8
tree6aa870307242a2365823c8142192e04e6b31db88
parent56e4cf64af2b3a43a26bdad52bcc8e17c6a05a23
[perl #129196] Crash/bad read with ‘evalbytes S’

5dc13276 added some code to toke.c that did not take into account
that the opnum (‘f’) argument to UNI* could be a negated op number.
PL_last_lop_op must never be negative, since it is used as an offset
into a struct.

Tests for the crash will come in the next commit.
toke.c