Bug #81095 [Opn->Fbk]: Segmentation fault in preg_match
| From: | requinix@php.net | Date: | Tue, 01 Jun 2021 19:09:29 +0000 |
| Subject: | Bug #81095 [Opn->Fbk]: Segmentation fault in preg_match | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-234152@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=81095&edit=1
ID: 81095
Updated by: requinix@php.net
Reported by: vaclav dot vatoz dot cerny at gmail dot com
Summary: Segmentation fault in preg_match
-Status: Open
+Status: Feedback
Type: Bug
Package: PCRE related
Operating System: Debian 10
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
for Win32
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2021-06-01 15:56:03] vaclav dot vatoz dot cerny at gmail dot com
Description:
------------
preg_match on sample data fails with Segmentation fault
Tested under 7.3.19 (debian) 7.4.18 and 8.0.5 (packages.sury.org)
Test data accesible from from https://www.dropbox.com/s/z99kyrbtp10bvrw/exif.txt?dl=0
Test script:
---------------
<?php
//download test data from https://www.dropbox.com/s/z99kyrbtp10bvrw/exif.txt?dl=0
//and then run
$a=unserialize(file_get_contents("exif.txt"));
$b=$a["EXIF"]["IFD0"]["ImageResourceInformation"];
$c=preg_match("!^\X+$!", $b);
echo "OK";
Expected result:
----------------
Running code, or error in error log
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=81095&edit=1