This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
PATCH: gh#17227 heap-buffer-overflow
authorKarl Williamson <khw@cpan.org>
Fri, 8 Nov 2019 17:29:05 +0000 (10:29 -0700)
committerKarl Williamson <khw@cpan.org>
Fri, 8 Nov 2019 17:40:18 +0000 (10:40 -0700)
commitbd0e76db93fab334167b9594f98cd1c415275b33
treed3dd836f985c4108f5bff2ab4c4c1b17095987a5
parent8c27d1fc595fedb029c0f0eda7c846fe56b1406d
PATCH: gh#17227 heap-buffer-overflow

There were two problems this uncovered.  One was that a floating point
expression with both operands ints truncated before becoming floating.
One operand needs to be floating.

The second is that the expansion of a non-UTF-8 byte needs to be
considered based on non-UTF-8, rather than its UTF-8 representation.
op.c
t/op/tr_latin1.t