Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #75457: heap-use-after-free in php7.0.25
- Loading branch information
Showing
2 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |