summaryrefslogtreecommitdiff
path: root/pcre32_valid_utf32.c
diff options
context:
space:
mode:
authorchpe <chpe@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-10-16 15:57:31 +0000
committerchpe <chpe@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-10-16 15:57:31 +0000
commitde27e7eff4ea27013fa369feea0597a2912d6b04 (patch)
treea29195e1e2b8c03538dc26b4f479c6f2aee8c5e9 /pcre32_valid_utf32.c
parentd09c65c609e4931898e59cccbff090865785712c (diff)
downloadpcre-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 'pcre32_valid_utf32.c')
-rw-r--r--pcre32_valid_utf32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcre32_valid_utf32.c b/pcre32_valid_utf32.c
index 28722c4..92dad3e 100644
--- a/pcre32_valid_utf32.c
+++ b/pcre32_valid_utf32.c
@@ -93,7 +93,7 @@ if (length < 0)
for (p = string; length-- > 0; p++)
{
- c = *p & UTF32_MASK;
+ c = *p;
if ((c & 0xfffff800u) != 0xd800u)
{