#25871 [NEW]: imagecreatetruecolor crashes if image over 4mpix
| From: | bb at ii dot nl | Date: | Tue, 14 Oct 2003 19:27:54 +0000 |
| Subject: | #25871 [NEW]: imagecreatetruecolor crashes if image over 4mpix | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-49005@lists.php.net to get a copy of this message | ||
From: bb at ii dot nl
Operating system: Debian Linux
PHP version: 4.3.3
PHP Bug Type: Reproducible crash
Bug description: imagecreatetruecolor crashes if image over 4mpix
Description:
------------
ImageCreateTrueColor crashes PHP if I allocate an image over ~4000000
pixels in size.
I use PHP 4.3.3 with GD version: bundled (2.0.15 compatible)
Memory_limit is set to 26214400
Reproduce code:
---------------
$im = imagecreatetruecolor(1500,4000);
Actual result:
--------------
PHP crashes
--
Edit bug report at http://bugs.php.net/?id=25871&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25871&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25871&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=25871&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=25871&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25871&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=25871&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=25871&r=support
Expected behavior: http://bugs.php.net/fix.php?id=25871&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=25871&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=25871&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=25871&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25871&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=25871&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=25871&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=25871&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=25871&r=float