This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
fix size-miscalculation upgrading LISTOP TO LOOPOP
authorDavid Mitchell <davem@iabyn.com>
Fri, 9 Aug 2019 10:11:19 +0000 (11:11 +0100)
committerDavid Mitchell <davem@iabyn.com>
Fri, 9 Aug 2019 10:11:19 +0000 (11:11 +0100)
commit5d26d78791c18cfb2ce66f44cbf8e9679dcd23ec
tree80cd7125a582b0ab2723a5f2795979825abcfeb7
parent4510b393500f9f3cd77fafbbee5bdd37be8e4594
fix size-miscalculation upgrading LISTOP TO LOOPOP

RT #134344

My recent commit v5.31.2-54-g8c47b5bce7 broke some CAN modules because
the code in Perl_newFOROP() wasn't accounting for the overhead in the
opslot struct when deciding whether an allocated LISTOP was large enough
to be upgraded in-place to a LOOPOP.
op.c