cvs: php4 /ext/gd/libgd gd.c
| From: | Ilia Alshanetsky | Date: | Sun, 29 Sep 2002 14:45:58 +0000 |
| Subject: | cvs: php4 /ext/gd/libgd gd.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-14319@lists.php.net to get a copy of this message | ||
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)
{