ID: 28639 Comment by: ericvanblokland at gmail dot com Reported By: jim at bluedojo dot com Status: No Feedback Bug Type: GD related Operating System: Windows XP PHP Version: 4.3.7 New Comment:
PS: how do I re-open this bug? Previous Comments: ------------------------------------------------------------------------ [2005-03-09 23:11:50] ericvanblokland at gmail dot com I've experienced this bug with latest stable php5 release. However, I do not believe the gif is corrupted, just odd formated (which you may very well call corrupt if you like). Due to the fact most programs just read these gifs whatsoever, as well as create them, our "stupid" customers will continue using them. Would be nice to be able to work with them or rejecting them without timeing out the script. ------------------------------------------------------------------------ [2005-01-22 01:00:08] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2005-01-14 18:51:50] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Can not reproduce. ------------------------------------------------------------------------ [2004-06-18 17:15:21] scottmacvicar at ntlworld dot com Problem is in GetDataBlock_ it doesn't even return -1 so constantly loops within the end code handling part of LWZReadByte_ while ((count = GetDataBlock(fd, buf)) > 0) is the loop in question in libgd/gd_gif_in.c I dont have enough time to see whats wrong with that function but its there its looping. ------------------------------------------------------------------------ [2004-06-15 12:45:03] iridium at beyondunreal dot com I have reproduced this bug using php -r "imagecreatefromgif('http://members.tripod.com/~TyroneZero/drstrangelove.gif');" on both windows xp in PHP 5.0.0rc2 and linux with 4.3.6 (both command line). The above command causes it to hang. Tracing through the code using a debugger it does look a lot like an infinate loop, though it could just be a really long one. I believe the infinate loop starts at line 155 in gd_gif_in.c at for (;;) { - I think it may just not be reaching an exit condition. I may investigate more later. Very strangely, if I download the gif and run the same command without going to the site at runtime, there is no such problem. Irid. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/28639 -- Edit this bug report at http://bugs.php.net/?id=28639&edit=1