Bug #10504: imagefill() causes segfault when x and y coords are outside image range

From: Date: Thu, 26 Apr 2001 06:45:00 +0000
Subject: Bug #10504: imagefill() causes segfault when x and y coords are outside image range
Groups: php.dev 
Request: Send a blank email to php-dev+get-52468@lists.php.net to get a copy of this message
From: pgl@instinct.org Operating system: linux redhat 6.2 SMP PHP version: 4.0.4pl1 PHP Bug Type: GD related Bug description: imagefill() causes segfault when x and y coords are outside image range 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 -- Edit Bug report at: http://bugs.php.net/?id=10504&edit=1

« previous php.dev (#52468) next »