Bug #75832 [NEW]: Segmentation fault after preg_match w/ utf8 (or extended ascii?)

From: Date: Wed, 17 Jan 2018 12:16:18 +0000
Subject: Bug #75832 [NEW]: Segmentation fault after preg_match w/ utf8 (or extended ascii?)
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-213583@lists.php.net to get a copy of this message
From: stenschke at gyselroth dot com Operating system: Linux PHP version: 7.1Git-2018-01-17 (Git) Package: PCRE related Bug Type: Bug Bug description:Segmentation fault after preg_match w/ utf8 (or extended ascii?) Description: ------------ Following code causes PHP error: "Segmentation fault (core dumped)" utf8_decode('<w:fldSimple w:instr=" MERGEFIELD Üüü \* MERGEFORMAT "><w:r><w:t xml:space="preserve">«Üüü»</w:t></w:r></w:fldSimple>'); preg_match('/<w:fldSimple w:instr="\s*MERGEFIELD\s*([a-zäöü|\d|_|\.]*)\s*\\\*\s*/u', $xml, $matches); P.s. Exact used PHP version (not in bugtracker's options) is: PHP 7.1.11-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Oct 27 2017 13:49:56) Actual result: -------------- Array() -- Edit bug report at https://bugs.php.net/bug.php?id=75832&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75832&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75832&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75832&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=75832&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=75832&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=75832&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=75832&r=needscript Try newer version: https://bugs.php.net/fix.php?id=75832&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=75832&r=support Expected behavior: https://bugs.php.net/fix.php?id=75832&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=75832&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=75832&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=75832&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75832&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=75832&r=dst IIS Stability: https://bugs.php.net/fix.php?id=75832&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=75832&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=75832&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=75832&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=75832&r=mysqlcfg

« previous php.bugs (#213583) next »