php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | |
Patch tests.patch for GD related Bug #66815Patch version 2014-03-03 16:10 UTC Return to Bug #66815 | Download this patchThis patch is obsolete Obsoleted by patches: Patch Revisions:Developer: remi@php.net--- 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 |
Copyright © 2001-2024 The PHP Group All rights reserved. |
Last updated: Mon Dec 09 10:01:27 2024 UTC |