This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Safer handling of malformed UTF-8
authorKarl Williamson <khw@cpan.org>
Wed, 16 Sep 2015 14:48:29 +0000 (08:48 -0600)
committerKarl Williamson <khw@cpan.org>
Wed, 16 Sep 2015 20:48:38 +0000 (14:48 -0600)
commit545badfe25cd11db943f932140e04ba2325ea499
treef53d446fbd14b561fc5b06b66a278b80d7e34dd2
parentbf155cfcaf05a18c4f20a986fc78b0bfb4a58834
regcomp.c: Safer handling of malformed UTF-8

This commit just changes a test to look for UTF-8 invariants instead of
legal UTF-8 start characters.  The effective difference is that now all
non-invariants go to the general utf8 handling function, which is
equipped to find malformed UTF-8.  Previously, this code would
improperly accept malformations that were illegal start characters or
continuation characters.
regcomp.c