This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
pp_repeat: handle large source strings for scalar repeat
authorTony Cook <tony@develop-help.com>
Wed, 5 Apr 2023 06:02:55 +0000 (16:02 +1000)
committerTony Cook <tony@develop-help.com>
Thu, 27 Jul 2023 03:58:54 +0000 (13:58 +1000)
commit4967e83094a1ed257b510a2f6deacc33fdda4647
treea0b40dcbffe6097ace51f895bfe49e3c5027ea4d
parente2c62bff85f589709838536ffdc57202063737a7
pp_repeat: handle large source strings for scalar repeat

This deliberately dropped out since repeatcpy() took an I32 length
of source string parameter, but the code in repeatcpy() is
sufficiently robust we can simply make it a SSize_t.

Removed the error for strings over I32 len, the left over check
should reasonably handle integer overflow beyond the capacity of
a SSize_t.
embed.fnc
pp.c
proto.h
t/bigmem/str.t
util.c