From: Antony Dovgal Date: Fri, 18 Jul 2008 07:39:53 +0000 (+0000) Subject: fix segfault X-Git-Tag: php-5.3.0alpha1~290 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fbf68def7d14f02922207f6f200c72cc363e0836;p=php fix segfault --- diff --git a/ext/gd/gd.c b/ext/gd/gd.c index 32a8ff4a92..3484c79d95 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -3041,7 +3041,7 @@ PHP_FUNCTION(imagecolorat) } } else { if (im->pixels && gdImageBoundsSafe(im, x, y)) { - RETURN_LONG(im->pixels[x][y]); + RETURN_LONG(im->pixels[y][x]); } else { php_error_docref(NULL TSRMLS_CC, E_NOTICE, "%ld,%ld is out of bounds", x, y); RETURN_FALSE;