Fix small bug in new Unicode group name logic.

This commit is contained in:
Philip.Hazel 2019-02-07 17:29:50 +00:00
parent 4d17f4b856
commit 45959f1eec
2 changed files with 3 additions and 2 deletions

View File

@ -122,7 +122,8 @@ tests such as (?(VERSION>=0)...) when the version test was true. Incorrect
processing or a crash could result.
30. When PCRE2_UTF is set, allow non-ASCII letters and decimal digits in group
names, as Perl does.
names, as Perl does. There was a small bug in this new code, found by
ClusterFuzz 12950, fixed before release.
Version 10.32 10-September-2018

View File

@ -2246,8 +2246,8 @@ if (utf && is_group)
if (type != ucp_Nd && PRIV(ucp_gentype)[type] != ucp_L &&
c != CHAR_UNDERSCORE) break;
ptr++;
FORWARDCHAR(ptr);
if (ptr >= ptrend) break;
FORWARDCHAR(ptr);
GETCHAR(c, ptr);
type = UCD_CHARTYPE(c);
}