summaryrefslogtreecommitdiff
path: root/src/pcre2_study.c
diff options
context:
space:
mode:
authorph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2020-02-25 16:47:36 +0000
committerph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2020-02-25 16:47:36 +0000
commitf82582217bf85600b850b862148b8cb08bb7a2e5 (patch)
treecd7187496c2fbb6c82671fd7018772d23f38f521 /src/pcre2_study.c
parent2e54eab2c5b90d1e798b7de68651d5428c782b70 (diff)
downloadpcre2-f82582217bf85600b850b862148b8cb08bb7a2e5.tar.gz
Fix bug introduced in recent UCP changes (writing outside starting code unit
bitmap for non-UTF caseless character U+00DF). git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@1229 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'src/pcre2_study.c')
-rw-r--r--src/pcre2_study.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcre2_study.c b/src/pcre2_study.c
index 02d1c08..fc29969 100644
--- a/src/pcre2_study.c
+++ b/src/pcre2_study.c
@@ -824,7 +824,7 @@ if (caseless)
(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