From: michael at kropfberger dot com Operating system: linux-2.6.5 PHP version: Irrelevant PHP Bug Type: GD related Bug description: no out-of-bounds check for imagecopy
Description: ------------ when you do an imagecopy to a destinationXY which is out of range from your destination image, there is no error/warning. Fix is simple, just check imagesx and imagesy if destinationXY(+width/height) is still in range Reproduce code: --------------- $tile = imagecreate(30,30); imagecopy($tile, $origim, 999, 999, 100, 100, 50, 50); Expected result: ---------------- warning, that 999x999 is out of range for a 30x30 image Actual result: -------------- ignored, copied into oblivion -- Edit bug report at http://bugs.php.net/?id=30758&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30758&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30758&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30758&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30758&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30758&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30758&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30758&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30758&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30758&r=support Expected behavior: http://bugs.php.net/fix.php?id=30758&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30758&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30758&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30758&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30758&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30758&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30758&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30758&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30758&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30758&r=mysqlcfg
