This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regexec.c: Check for UTF-8 fitting
authorKarl Williamson <khw@cpan.org>
Tue, 27 Mar 2018 21:49:06 +0000 (15:49 -0600)
committerKarl Williamson <khw@cpan.org>
Sat, 31 Mar 2018 21:36:46 +0000 (15:36 -0600)
commita78c2fa63b9d2e6faac531a43f1ef9e09eb25d9b
tree933232109f02e62293ec490641a1a3697e447775
parent4d3d8522adb2df78f6a8713029eb6b13b41094d9
regexec.c: Check for UTF-8 fitting

We've been burned before by malformed UTF-8 causing us to read outside
the buffer bounds.  Here is a case I saw during code inspection, and
it's easy to add the buffer end limit
embed.fnc
embed.h
proto.h
regexec.c