summaryrefslogtreecommitdiffstats
path: root/thirdparty/pcre2/src/pcre2_valid_utf.c
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2021-01-08 14:10:32 +0100
committerRémi Verschelde <rverschelde@gmail.com>2021-01-08 14:10:32 +0100
commit951ad29c0fc8bd621b7e52f02a2eb83737edffe1 (patch)
treea6ad7c19a4764995df1344a2c6bc9a7da4703661 /thirdparty/pcre2/src/pcre2_valid_utf.c
parent9241aebecd56666f9206a5248a62d6d461537a7e (diff)
downloadredot-engine-951ad29c0fc8bd621b7e52f02a2eb83737edffe1.tar.gz
pcre2: Update to upstream version 10.36
Changelog: https://vcs.pcre.org/pcre2/code/tags/pcre2-10.36/ChangeLog?view=markup
Diffstat (limited to 'thirdparty/pcre2/src/pcre2_valid_utf.c')
-rw-r--r--thirdparty/pcre2/src/pcre2_valid_utf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/thirdparty/pcre2/src/pcre2_valid_utf.c b/thirdparty/pcre2/src/pcre2_valid_utf.c
index 96e8bff993..e47ea78f16 100644
--- a/thirdparty/pcre2/src/pcre2_valid_utf.c
+++ b/thirdparty/pcre2/src/pcre2_valid_utf.c
@@ -7,7 +7,7 @@ and semantics are as close as possible to those of the Perl 5 language.
Written by Philip Hazel
Original API code Copyright (c) 1997-2012 University of Cambridge
- New API code Copyright (c) 2016-2017 University of Cambridge
+ New API code Copyright (c) 2016-2020 University of Cambridge
-----------------------------------------------------------------------------
Redistribution and use in source and binary forms, with or without
@@ -347,7 +347,7 @@ for (p = string; length > 0; p++)
length--;
if ((*p & 0xfc00) != 0xdc00)
{
- *erroroffset = p - string;
+ *erroroffset = p - string - 1;
return PCRE2_ERROR_UTF16_ERR2;
}
}