|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-01-05 02:52 UTC] v dot bakaitis at gmail dot com
-Summary: A bug in libpcre3 causes PHP to crash if a crafted
regex is supplied to preg_ma
+Summary: libpcre3 causes PHP to crash if a crafted regex is
supplied to preg_match
[2016-01-05 02:52 UTC] v dot bakaitis at gmail dot com
[2016-01-05 07:16 UTC] pajoye@php.net
-Status: Open
+Status: Not a bug
-Type: Security
+Type: Bug
[2016-01-05 07:16 UTC] pajoye@php.net
[2016-01-05 22:20 UTC] stas@php.net
[2016-01-06 04:42 UTC] pajoye@php.net
[2016-01-13 23:58 UTC] stas@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 20 00:00:01 2025 UTC |
Description: ------------ libpcre3 does not properly check for circular references when numbered patterns are used, e.g. /(((?3)))((?1))/ This results in the infinite loop in libpcre3 library that keeps on reading memory until it it eventually causes a segfault at pcre_compile,c:2338 Test script: --------------- <?php preg_match("/(((?3)))((?1))/", ""); ?> Expected result: ---------------- The condition is handled by PCRE and an error is returned by the library Actual result: -------------- Segmentation fault. The backtrace is not included due to it's size.