|
|
9a908a |
--- pcre2-10.32/src/pcre2_jit_compile.c.old 2022-05-13 09:13:06.188574517 +0000
|
|
|
9a908a |
+++ pcre2-10.32/src/pcre2_jit_compile.c 2022-05-13 09:27:57.189574517 +0000
|
|
|
9a908a |
@@ -6494,7 +6494,7 @@ while (*cc != XCL_END)
|
|
|
9a908a |
{
|
|
|
9a908a |
SLJIT_ASSERT(*cc == XCL_PROP || *cc == XCL_NOTPROP);
|
|
|
9a908a |
cc++;
|
|
|
9a908a |
- if (*cc == PT_CLIST)
|
|
|
9a908a |
+ if (*cc == PT_CLIST && cc[-1] == XCL_PROP)
|
|
|
9a908a |
{
|
|
|
9a908a |
other_cases = PRIV(ucd_caseless_sets) + cc[1];
|
|
|
9a908a |
while (*other_cases != NOTACHAR)
|
|
|
9a908a |
diff -up pcre2-10.37/src/pcre2_jit_test.c.old pcre2-10.37/src/pcre2_jit_test.c
|
|
|
9a908a |
--- pcre2-10.37/src/pcre2_jit_test.c.old 2022-05-19 06:24:53.159574517 +0000
|
|
|
9a908a |
+++ pcre2-10.37/src/pcre2_jit_test.c 2022-05-19 06:25:36.945574517 +0000
|
|
|
9a908a |
@@ -411,6 +411,7 @@ static struct regression_test_case regre
|
|
|
9a908a |
{ MUP, A, 0, 0 | F_PROPERTY, "[\\P{L&}]{2}[^\xc2\x85-\xc2\x89\\p{Ll}\\p{Lu}]{2}", "\xc3\xa9\xe6\x92\xad.a\xe6\x92\xad|\xc2\x8a#" },
|
|
|
9a908a |
{ PCRE2_UCP, 0, 0, 0 | F_PROPERTY, "[a-b\\s]{2,5}[^a]", "AB baaa" },
|
|
|
9a908a |
{ MUP, 0, 0, 0 | F_NOMATCH, "[^\\p{Hangul}\\p{Z}]", " " },
|
|
|
9a908a |
+ { CMUP, 0, 0, 0, "[^S]\\B", "\xe2\x80\x8a" },
|
|
|
9a908a |
|
|
|
9a908a |
/* Possible empty brackets. */
|
|
|
9a908a |
{ MU, A, 0, 0, "(?:|ab||bc|a)+d", "abcxabcabd" },
|