#36726 [NEW]: imagecreatefromjpeg() crahes PHP
| From: | christoph at ziegenberg dot com | Date: | Mon, 13 Mar 2006 21:37:24 +0000 |
| Subject: | #36726 [NEW]: imagecreatefromjpeg() crahes PHP | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-94309@lists.php.net to get a copy of this message | ||
From: christoph at ziegenberg dot com
Operating system: Suse Linux 9.3
PHP version: 5.1.2
PHP Bug Type: GD related
Bug description: imagecreatefromjpeg() crahes PHP
Description:
------------
Using imagecreatefromjpeg() lets PHP crash without an error message. also
using @imagecreatefromjpeg() doesn't help - it's not possible to check the
returning value.
I the user comments a user already described problems with jpegs created
by "Canon PowerShot S70", my image (uploaded by a user) was created by a
"Canon PowerShot A400". So this seems to be the problem.
It worked on my Windows XP without any problem, but on Suse it crashed...
Reproduce code:
---------------
I'll ask the user to upload the picture here. Then simply call
imagecreatefromjpeg() with this image.
Expected result:
----------------
No crash, but an error message and an empty return value.
Actual result:
--------------
Crash
--
Edit bug report at http://bugs.php.net/?id=36726&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36726&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36726&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36726&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=36726&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=36726&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=36726&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=36726&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=36726&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=36726&r=support
Expected behavior: http://bugs.php.net/fix.php?id=36726&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=36726&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=36726&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=36726&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36726&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=36726&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=36726&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=36726&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=36726&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=36726&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=36726&r=mysqlcfg