#36726 [Fbk->Opn]: imagecreatefromjpeg() crahes PHP

From: Date: Sat, 18 Mar 2006 17:40:56 +0000
Subject: #36726 [Fbk->Opn]: imagecreatefromjpeg() crahes PHP
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-94509@lists.php.net to get a copy of this message
ID: 36726 User updated by: christoph at ziegenberg dot com Reported By: christoph at ziegenberg dot com -Status: Feedback +Status: Open Bug Type: GD related Operating System: Suse Linux 9.3 PHP Version: 5.1.2 Assigned To: pajoye New Comment: I uploaded the images and a testscript. Look here: http://www.ziegenberg.com/jpegbug/ Previous Comments: ------------------------------------------------------------------------ [2006-03-13 22:59:31] pajoye@php.net Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. Please give us an image to reproduce your problem. ------------------------------------------------------------------------ [2006-03-13 22:37:23] christoph at ziegenberg dot com 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 this bug report at http://bugs.php.net/?id=36726&edit=1

« previous php.bugs (#94509) next »