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

From: Date: Mon, 14 Jun 2021 11:10:00 +0000
Subject: Bug #81095 [NoF->Csd]: Segmentation fault in preg_match
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-234408@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 User updated by: vaclav dot vatoz dot cerny at gmail dot com Reported by: vaclav dot vatoz dot cerny at gmail dot com Summary: Segmentation fault in preg_match -Status: No Feedback +Status: Closed Type: Bug Package: PCRE related Operating System: Debian 10 PHP Version: Irrelevant Block user comment: N Private report: N New Comment: After update i have tested it in 7.4.20 8.07 7.3.28 and it works )didnt segfault. So it might have been corrected in source tree. Previous Comments: ------------------------------------------------------------------------ [2021-06-13 04:22:13] php-bugs at lists dot php dot net 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. ------------------------------------------------------------------------ [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 (#234408) next »