diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2020-06-30 16:08:27 +0200 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2020-06-30 16:19:02 +0200 |
commit | b419f96c626d1f9cbbba42698e947e32a0af9c4f (patch) | |
tree | 23457bd7b1c10d0bac6b4649e543a91b18619e0e /ext/pcre/pcre2lib/pcre2_valid_utf.c | |
parent | b3698ed9eb434ad119bd130fdc3ce4e6be4c0f84 (diff) | |
download | php-git-b419f96c626d1f9cbbba42698e947e32a0af9c4f.tar.gz |
Update to PCRE2 10.35
Diffstat (limited to 'ext/pcre/pcre2lib/pcre2_valid_utf.c')
-rw-r--r-- | ext/pcre/pcre2lib/pcre2_valid_utf.c | 4 |
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 96e8bff993..e47ea78f16 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-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; } } |