php.net |  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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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.

eg:

[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)

uname:

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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-03 17:29 UTC] sniper@php.net
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..)

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 11:01:27 2024 UTC