diff options
author | Jakub Marcowski <chubercikbattle@gmail.com> | 2024-03-11 03:15:07 +0100 |
---|---|---|
committer | Jakub Marcowski <chubercikbattle@gmail.com> | 2024-03-11 11:42:02 +0100 |
commit | dab95993c6c8ebd4fb439385a892dabda22698a2 (patch) | |
tree | 98084c35eb94c5ab63c7be5d564251b3d18dc70d /thirdparty/pcre2/src/pcre2_convert.c | |
parent | 810f127022ec2cbfb288e436151d1a777c7b5da7 (diff) | |
download | redot-engine-dab95993c6c8ebd4fb439385a892dabda22698a2.tar.gz |
pcre2: Update to 10.43
Diffstat (limited to 'thirdparty/pcre2/src/pcre2_convert.c')
-rw-r--r-- | thirdparty/pcre2/src/pcre2_convert.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/thirdparty/pcre2/src/pcre2_convert.c b/thirdparty/pcre2/src/pcre2_convert.c index 36466e4b91..fe396ae4f9 100644 --- a/thirdparty/pcre2/src/pcre2_convert.c +++ b/thirdparty/pcre2/src/pcre2_convert.c @@ -540,6 +540,14 @@ Returns: !0 => character is found in the class static BOOL convert_glob_char_in_class(int class_index, PCRE2_UCHAR c) { +#if PCRE2_CODE_UNIT_WIDTH != 8 +if (c > 0xff) + { + /* ctype functions are not sane for c > 0xff */ + return 0; + } +#endif + switch (class_index) { case 1: return isalnum(c); |