22 lines
1.2 KiB
Plaintext
22 lines
1.2 KiB
Plaintext
|
--- pcre2-10.32/src/pcre2_jit_compile.c.old 2022-05-13 09:13:06.188574517 +0000
|
||
|
+++ pcre2-10.32/src/pcre2_jit_compile.c 2022-05-13 09:27:57.189574517 +0000
|
||
|
@@ -6494,7 +6494,7 @@ while (*cc != XCL_END)
|
||
|
{
|
||
|
SLJIT_ASSERT(*cc == XCL_PROP || *cc == XCL_NOTPROP);
|
||
|
cc++;
|
||
|
- if (*cc == PT_CLIST)
|
||
|
+ if (*cc == PT_CLIST && cc[-1] == XCL_PROP)
|
||
|
{
|
||
|
other_cases = PRIV(ucd_caseless_sets) + cc[1];
|
||
|
while (*other_cases != NOTACHAR)
|
||
|
--- pcre2-10.32/src/pcre2_jit_test.c.old 2022-05-13 09:29:27.531574517 +0000
|
||
|
+++ pcre2-10.32/src/pcre2_jit_test.c 2022-05-13 09:32:50.666574517 +0000
|
||
|
@@ -397,6 +397,7 @@ static struct regression_test_case regre
|
||
|
{ MUP, A, 0, 0 | F_PROPERTY, "[\xc3\xa2-\xc3\xa6\xc3\x81-\xc3\x84\xe2\x80\xa8-\xe2\x80\xa9\xe6\x92\xad\\p{Zs}]{2,}", "\xe2\x80\xa7\xe2\x80\xa9\xe6\x92\xad \xe6\x92\xae" },
|
||
|
{ 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#" },
|
||
|
{ PCRE2_UCP, 0, 0, 0 | F_PROPERTY, "[a-b\\s]{2,5}[^a]", "AB baaa" },
|
||
|
+ { CMUP, 0, 0, 0, "[^S]\\B", "\xe2\x80\x8a" },
|
||
|
|
||
|
/* Possible empty brackets. */
|
||
|
{ MU, A, 0, 0, "(?:|ab||bc|a)+d", "abcxabcabd" },
|