Edit report at https://bugs.php.net/bug.php?id=60264&edit=1
ID: 60264 Updated by: [email protected] Reported by: max at cxib dot net Summary: stack/memory exhaustion -Status: Open +Status: Duplicate Type: Bug Package: *Regular Expressions Operating System: linux PHP Version: 5.4.0RC1 Block user comment: N Private report: N New Comment: Depressingly, this is expected behaviour. See also bug #52818, amongst (many) others. Previous Comments: ------------------------------------------------------------------------ [2011-11-11 11:49:11] max at cxib dot net Description: ------------ pcre allow to stack or heap memory exhaustion stack cx () cx64:/www$ cat crash0.php <?php preg_match("/((.*)((!?.*)+)\\w+)/iU",str_repeat(" ",4096),$exxx); ?> cx () cx64:/www$ php crash0.php Segmentation fault ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60264&edit=1
