iliaa Sun Sep 29 10:45:58 2002 EDT Modified files: /php4/ext/gd/libgd gd.c Log: Fixed bug #19366 Index: php4/ext/gd/libgd/gd.c diff -u php4/ext/gd/libgd/gd.c:1.15 php4/ext/gd/libgd/gd.c:1.16 --- php4/ext/gd/libgd/gd.c:1.15 Thu Aug 22 12:21:32 2002 +++ php4/ext/gd/libgd/gd.c Sun Sep 29 10:45:57 2002 @@ -1512,6 +1512,15 @@ int old; int leftLimit, rightLimit; int i; + + if (x >= im->sx) { + x = im->sx - 1; + } + + if (y >= im->sy) { + y = im->sy - 1; + } + old = gdImageGetPixel (im, x, y); if (color == gdTiled) {
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php