diff options
author | chpe <chpe@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2012-10-16 15:57:31 +0000 |
---|---|---|
committer | chpe <chpe@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2012-10-16 15:57:31 +0000 |
commit | de27e7eff4ea27013fa369feea0597a2912d6b04 (patch) | |
tree | a29195e1e2b8c03538dc26b4f479c6f2aee8c5e9 /pcretest.c | |
parent | d09c65c609e4931898e59cccbff090865785712c (diff) | |
download | pcre-de27e7eff4ea27013fa369feea0597a2912d6b04.tar.gz |
pcre32: Remove masking from UTF-32 validation
It's now required and documented that to pass character strings with high bits
set (which will be masked off), it's necessary to pass PCRE_NO_UTF32_CHECK.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1118 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcretest.c')
-rw-r--r-- | pcretest.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -4627,6 +4627,7 @@ while (!done) for (q32 = (pcre_uint32 *)dbuffer; *q32; q32++) *q32 |= ~(pcre_uint32)UTF32_MASK; + /* Need to pass NO_UTF32_CHECK so the high bits are allowed */ options |= PCRE_NO_UTF32_CHECK; } #endif |