mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2: Fix #75457: heap-use-after-free in php7.0.25
This commit is contained in:
commit
5d25ebb0dd
10
ext/pcre/tests/bug75457.phpt
Normal file
10
ext/pcre/tests/bug75457.phpt
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
--TEST--
|
||||||
|
Bug #75457 (heap-use-after-free in php7.0.25)
|
||||||
|
--FILE--
|
||||||
|
<?php
|
||||||
|
$pattern = "/(((?(?C)0?=))(?!()0|.(?0)0)())/";
|
||||||
|
var_dump(preg_match($pattern, "hello"));
|
||||||
|
?>
|
||||||
|
--EXPECTF--
|
||||||
|
Warning: preg_match(): Compilation failed: assertion expected after (?( or (?(?C) at offset 4 in %sbug75457.php on line %d
|
||||||
|
bool(false)
|
Loading…
Reference in New Issue
Block a user