Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed #72339 Integer Overflow in _gd2GetHeader() resulting in heap ov…
…erflow
- Loading branch information
1 parent
7245bff
commit 7722455
Showing
3 changed files
with
18 additions
and
0 deletions.
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
Binary file not shown.
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,11 @@ | ||
--TEST-- | ||
Bug #72339 Integer Overflow in _gd2GetHeader() resulting in heap overflow | ||
--SKIPIF-- | ||
<?php if (!function_exists("imagecreatefromgd2")) print "skip"; ?> | ||
--FILE-- | ||
<?php imagecreatefromgd2(dirname(__FILE__) . DIRECTORY_SEPARATOR . "bug72339.gd"); ?> | ||
--EXPECTF-- | ||
Warning: imagecreatefromgd2(): gd warning: product of memory allocation multiplication would exceed INT_MAX, failing operation gracefully | ||
in %sbug72339.php on line %d | ||
|
||
Warning: imagecreatefromgd2(): '%sbug72339.gd' is not a valid GD2 file in %sbug72339.php on line %d |