imageCreateFromGIF have a memory-leak bug
| Bug #37360 | imageCreateFromGIF have a memory-leak bug | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2006-05-08 05:40 UTC | Modified: | 2006-05-08 11:58 UTC |
|
||||||||||
| From: | cnteacher at discuz dot com | Assigned: | pajoye (profile) | |||||||||||
| Status: | Closed | Package: | GD related | |||||||||||
| PHP Version: | 5CVS-2006-05-08 (snap) | OS: | win32/*nix | |||||||||||
| Private report: | No | CVE-ID: | None | |||||||||||
[2006-05-08 05:40 UTC] cnteacher at discuz dot com
Description: ------------ When I use the function 'imageCreateFromGIF' with some special images (GIF), the memory will be ran out. I test it with all GD version (above 2.0.28). Reproduce code: --------------- $file = 'specialimg.gif'; $im = imagecreatefromgif($file); Expected result: ---------------- the memory ran out, and my web server is down. Actual result: -------------- I put the special gif file on my friend's web, you can download it from http://www.freediscuz.net/specialgif.zip. I think some one can use this bug to attack web server. It's so danger.
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2006-05-08 05:59 UTC] cnteacher at discuz dot com
[2006-05-08 08:19 UTC] derick@php.net
[2006-05-08 08:36 UTC] cnteacher at discuz dot com
[2006-05-08 11:58 UTC] pajoye@php.net