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
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: 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

Pull Requests

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 Nov 28 09:01:28 2024 UTC