summaryrefslogtreecommitdiff
path: root/ext/pcre/pcre2lib/pcre2_valid_utf.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-06-30 18:24:48 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-06-30 18:24:48 +0200
commite2a407c2fe788e685055e81d672c8cc6cd7ceaa5 (patch)
treeeff567b3b57d2ec369e6a8f8615d754a2655cac0 /ext/pcre/pcre2lib/pcre2_valid_utf.c
parentaf4ff75c989374d2f850ae397d62d5a537532c40 (diff)
downloadphp-git-e2a407c2fe788e685055e81d672c8cc6cd7ceaa5.tar.gz
Revert "Update to PCRE2 10.35"
This reverts commit b419f96c626d1f9cbbba42698e947e32a0af9c4f. This breaks the GCC build with -fcf-protection (default on Ubuntu at least).
Diffstat (limited to 'ext/pcre/pcre2lib/pcre2_valid_utf.c')
-rw-r--r--ext/pcre/pcre2lib/pcre2_valid_utf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pcre/pcre2lib/pcre2_valid_utf.c b/ext/pcre/pcre2lib/pcre2_valid_utf.c
index e47ea78f16..96e8bff993 100644
--- a/ext/pcre/pcre2lib/pcre2_valid_utf.c
+++ b/ext/pcre/pcre2lib/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-2020 University of Cambridge
+ New API code Copyright (c) 2016-2017 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 - 1;
+ *erroroffset = p - string;
return PCRE2_ERROR_UTF16_ERR2;
}
}