-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug #70976: fix boundary check on gdImageRotateInterpolated
- Loading branch information
Showing
3 changed files
with
18 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
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,13 @@ | ||
--TEST-- | ||
Bug #70976 (Memory Read via gdImageRotateInterpolated Array Index Out of Bounds) | ||
--SKIPIF-- | ||
<?php | ||
if(!extension_loaded('gd')){ die('skip gd extension not available'); } | ||
?> | ||
--FILE-- | ||
<?php | ||
$img = imagerotate(imagecreate(1,1),45,0x7ffffff9); | ||
var_dump($img); | ||
?> | ||
--EXPECTF-- | ||
bool(false) |