Skip to content

Commit 9f269d0

Browse files
committed
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3: Fix #75457: heap-use-after-free in php7.0.25
2 parents 1a78bda + 5d25ebb commit 9f269d0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ext/pcre/tests/bug75457.phpt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
--TEST--
2+
Bug #75457 (heap-use-after-free in php7.0.25)
3+
--FILE--
4+
<?php
5+
$pattern = "/(((?(?C)0?=))(?!()0|.(?0)0)())/";
6+
var_dump(preg_match($pattern, "hello"));
7+
?>
8+
--EXPECTF--
9+
Warning: preg_match(): Compilation failed: assertion expected after (?( or (?(?C) at offset 4 in %sbug75457.php on line %d
10+
bool(false)

0 commit comments

Comments
 (0)