|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10504 imagefill() causes segfault when x and y coords are outside image range
Submitted: 2001-04-26 02:45 UTC Modified: 2001-06-03 17:29 UTC
From: pgl at instinct dot org Assigned:
Status: Closed Package: GD related
PHP Version: 4.0.4pl1 OS: linux redhat 6.2 SMP
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.
Block user comment
Status: Assign to:
Bug Type:
From: pgl at instinct dot org
New email:
PHP Version: OS:


 [2001-04-26 02:45 UTC] pgl at instinct dot org
imagefill() causes segfault when x and y coords are outside image range.


[pgl@redbox ~]# cat s.php 
Header ("Content-type: image/gif");
$im = imagecreate (500, 500);

$black = ImageColorAllocate ($im, 0, 0, 0);
$red = imagecolorallocate ($im, 255, 0, 0);

imagefill ($im, 500, 1, $red);

ImageGif ($im);
ImageDestroy ($im);
[pgl@redbox ~]# php s.php 
Segmentation fault (core dumped)


Linux redbox 2.2.17-14enterprise #1 SMP Mon Feb 5 18:31:31 EST 2001 i686 unknown


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-03 17:29 UTC]
This is not bug in PHP but in GD library itself. 
Please report this to the author of GD library.
(I reproduced this with GD 2.0.1 beta too..)


PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Jun 14 13:01:30 2024 UTC