https://bugs.exim.org/show_bug.cgi?id=2399
Bug ID: 2399
Summary: PHP segmentation fault on preg_match()
Product: PCRE
Version: 10.33 (PCRE2)
Hardware: x86-64
OS: Linux
Status: NEW
Severity: bug
Priority: medium
Component: Code
Assignee: ph10@???
Reporter: aparfenov@???
CC: pcre-dev@???
Created attachment 1190
-->
https://bugs.exim.org/attachment.cgi?id=1190&action=edit
SegFault reproduce
Hello! When use pcre2 with unicode support preg_match() with pattern "\X*" on
string with ASCII and CP1251 chars occurs Segmentation Fault:
gdb output:
Program received signal SIGSEGV, Segmentation fault.
0x00005555556c0465 in do_extuni_no_utf (args=<optimized out>, cc=0x7ffff4c6554d
"") at /php-src-7.3.5/ext/pcre/pcre2lib/pcre2_jit_compile.c:7292
7292 lgb = UCD_GRAPHBREAK(c);
(gdb) bt
#0 0x00005555556c0465 in do_extuni_no_utf (args=<optimized out>,
cc=0x7ffff4c6654d "") at
/php-src-7.3.5/ext/pcre/pcre2lib/pcre2_jit_compile.c:7292
#1 0x00007ffff4e02079 in ?? ()
#2 0x00005555562e3a38 in ?? ()
#3 0x00005555562e39e8 in ?? ()
#4 0x0000000000000000 in ?? ()
--
You are receiving this mail because:
You are on the CC list for the bug.