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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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: Sun Dec 22 03:01:28 2024 UTC