php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #186 GIF file structure crash if image size more then 16Kb(128x128pix, for exmpl)
Submitted: 1998-03-18 09:57 UTC Modified: 1998-05-22 19:13 UTC
From: skor at portal dot ru Assigned:
Status: Closed Package: Other
PHP Version: 3.0b6 OS: NT 4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: skor at portal dot ru
New email:
PHP Version: OS:

 

 [1998-03-18 09:57 UTC] skor at portal dot ru
GD Library work unstable when I try to increase picture dimentions. For example 
simple script:

<?php Header("Content-type: image/gif");
$im_width = 128; 
$im_heigth = 32;

$im_gif = imagecreate($im_width, $im_heigth);

$color_white = imagecolorallocate($im_gif, 255, 255, 255);
$color_black = imagecolorallocate($im_gif, 0, 0, 0);

imagefill($im_gif, 0, 0, $color_white);
imagestring($im_gif, 2, 4, 4, "QWERTY", $color_black); 
imagegif($im_gif);
?>

- still work, but if 

$im_width = 256; 
$im_heigth = 256;

- then only half of image displayed, then became noise :)
It's look like wrong memory allocation for array of pixels (or limit in 16Kb -???).

P.S. I, of carse, read in read.me file that GD library is still unstable, but possibly it's my mistakes? 
Or not?
P.P.S. I use PHP3.0beta6 on Windows NT Server with IIS3.
GD Library activated in "ini" file: (extension=gd.dll)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-05-22 19:13 UTC] shane
Works fine with current cvs so closing.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 18:01:28 2024 UTC