#27674 [Bgs->Opn]: getimagesize eat up hundreds of memory

From: Date: Fri, 26 Mar 2004 14:11:07 +0000
Subject: #27674 [Bgs->Opn]: getimagesize eat up hundreds of memory
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-56872@lists.php.net to get a copy of this message
 ID:               27674
 User updated by:  xuefer at 21cn dot com
 Reported By:      xuefer at 21cn dot com
-Status:           Bogus
+Status:           Open
 Bug Type:         GetImageSize related
 Operating System: winxp/linux
 PHP Version:      4.3.5RC4
 New Comment:

more detail:

under xp
it eat more and more memory

under linux cli:
$ php -r "getimagesize('./125-bad.swf');"
FATAL:  erealloc():  Unable to allocate -2011570176 bytes

under linux apache: it crash


Previous Comments:
------------------------------------------------------------------------

[2004-03-25 10:28:56] iliaa@php.net

With PHP 4.3.5 I get a return value of false instantly and 
no large memory allocation problems you describe. 

------------------------------------------------------------------------

[2004-03-24 10:12:35] xuefer at 21cn dot com

Description:
------------
file at: http://games.oursky.net:81/125-bad.swf
(file will be removed
when this bug is closed)
eat up >400MB memory(or page file)

pls fix it before 4.3.5 is out.

Reproduce code:
---------------
wget http://games.oursky.net:81/125-bad.swf
php -r 'getimagesize("125-bad.swf")';




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=27674&edit=1


Thread (11 messages)

« previous php.bugs (#56872) next »