Bug #81095 [Fbk->NoF]: Segmentation fault in preg_match

From: Date: Sun, 13 Jun 2021 04:22:13 +0000
Subject: Bug #81095 [Fbk->NoF]: Segmentation fault in preg_match
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-234387@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: php-bugs@lists.php.net Reported by: vaclav dot vatoz dot cerny at gmail dot com Summary: Segmentation fault in preg_match -Status: Feedback +Status: No Feedback Type: Bug Package: PCRE related Operating System: Debian 10 PHP Version: Irrelevant Private report: N New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. Previous Comments: ------------------------------------------------------------------------ [2021-06-01 19:09:29] requinix@php.net 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. ------------------------------------------------------------------------ [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

« previous php.bugs (#234387) next »