[pcre-dev] [Bug 2399] PHP segmentation fault on preg_match()

Pàgina inicial
Delete this message
Autor: admin
Data:  
A: pcre-dev
Assumpte: [pcre-dev] [Bug 2399] PHP segmentation fault on preg_match()
https://bugs.exim.org/show_bug.cgi?id=2399

--- Comment #1 from Philip Hazel <ph10@???> ---
The string you quote is not, as far as I can see, a valid UTF string. I do not
know how PHP calls PCRE2, nor how it interprets the escaped values in your
string. I suspect it is somehow calling pcre2_match() with an invalid UTF
string and the PCRE2_NO_UTF_CHECK option. This is documented to cause undefined
behaviour. Is PHP an 8-bit or a 16-bit system? Can you find out exactly what
byte or 16-bit values are in the string? Then I can try to test it with
pcre2test just to be sure.

--
You are receiving this mail because:
You are on the CC list for the bug.