Patch test.patch for GD related Bug #66815
Patch version 2014-03-03 16:20 UTC
Return to Bug #66815 |
Download this patch
Patch Revisions:
Developer: remi@php.net
diff -up ext/gd/tests/bug66356.phpt.orig ext/gd/tests/bug66356.phpt
--- ext/gd/tests/bug66356.phpt.orig 2014-03-03 16:55:47.826375795 +0100
+++ ext/gd/tests/bug66356.phpt 2014-03-03 16:55:57.130408433 +0100
@@ -24,6 +24,8 @@ var_dump(imagecrop($img, array("x" => -2
// POC #4
var_dump(imagecrop($img, array("x" => 0x7fffff00, "y" => 0, "width" => 10, "height" => 10)));
+// bug 66815
+var_dump(imagecrop($img, array("x" => 0, "y" => 0, "width" => 65535, "height" => 65535)));
?>
--EXPECTF--
resource(%d) of type (gd)
@@ -35,6 +37,13 @@ Array
[width] => 10
[height] => 10
)
+
+Warning: imagecrop(): gd warning: one parameter to a memory allocation multiplication is negative or zero, failing operation gracefully
+ in %sbug66356.php on line %d
bool(false)
resource(%d) of type (gd)
-resource(%d) of type (gd)
\ Pas de fin de ligne à la fin du fichier
+resource(%d) of type (gd)
+
+Warning: imagecrop(): gd warning: product of memory allocation multiplication would exceed INT_MAX, failing operation gracefully
+ in %sbug66356.php on line %d
+bool(false)
\ Pas de fin de ligne à la fin du fichier
|