]> granicus.if.org Git - php/commit
PCRE: Only remember valid UTF-8 if start offset zero
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 7 Feb 2020 16:01:39 +0000 (17:01 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 7 Feb 2020 16:01:39 +0000 (17:01 +0100)
commitcd5591a28d738b1b00c96c0e6cae91b490dba56d
tree0efb7c828266d7602f6462c6b67f2c1c29a543b1
parentc9e78e6d338cc46dcadb39b3e2df119fa969e72b
PCRE: Only remember valid UTF-8 if start offset zero

PCRE only validates the string starting from the start offset
(minus maximum look-behind, but let's ignore that), so we can
only remember that the string is fully valid UTF-8 is the original
start offset is zero.
NEWS
ext/pcre/php_pcre.c
ext/pcre/tests/bug79241.phpt