Revision: 1229
http://www.exim.org/viewvc/pcre2?view=rev&revision=1229
Author: ph10
Date: 2020-02-25 16:47:36 +0000 (Tue, 25 Feb 2020)
Log Message:
-----------
Fix bug introduced in recent UCP changes (writing outside starting code unit
bitmap for non-UTF caseless character U+00DF).
Modified Paths:
--------------
code/trunk/src/pcre2_study.c
code/trunk/testdata/testinput5
code/trunk/testdata/testoutput5
Modified: code/trunk/src/pcre2_study.c
===================================================================
--- code/trunk/src/pcre2_study.c 2020-02-24 17:29:00 UTC (rev 1228)
+++ code/trunk/src/pcre2_study.c 2020-02-25 16:47:36 UTC (rev 1229)
@@ -824,7 +824,7 @@
(void)PRIV(ord2utf)(c, buff);
SET_BIT(buff[0]);
}
- else SET_BIT(c);
+ else if (c < 256) SET_BIT(c);
#else /* 16-bit or 32-bit mode */
if (c > 0xff) SET_BIT(0xff); else SET_BIT(c);
#endif
Modified: code/trunk/testdata/testinput5
===================================================================
--- code/trunk/testdata/testinput5 2020-02-24 17:29:00 UTC (rev 1228)
+++ code/trunk/testdata/testinput5 2020-02-25 16:47:36 UTC (rev 1229)
@@ -2182,4 +2182,6 @@
/\p{Any}*xyz/I
+/(|\xDF)7/caseless,ucp
+
# End of testinput5
Modified: code/trunk/testdata/testoutput5
===================================================================
--- code/trunk/testdata/testoutput5 2020-02-24 17:29:00 UTC (rev 1228)
+++ code/trunk/testdata/testoutput5 2020-02-25 16:47:36 UTC (rev 1229)
@@ -4941,4 +4941,6 @@
Last code unit = 'z'
Subject length lower bound = 3
+/(|\xDF)7/caseless,ucp
+
# End of testinput5