From: Ilia Alshanetsky Date: Thu, 12 Jun 2003 19:33:19 +0000 (+0000) Subject: MFH: Fixed bug #24155 (gdImageRotate270 incorrectly use x parameter for y axis) X-Git-Tag: php-4.3.3RC1~56 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1c7f16c742468420b1bbeef7c67d0d438910cc84;p=php MFH: Fixed bug #24155 (gdImageRotate270 incorrectly use x parameter for y axis) --- diff --git a/NEWS b/NEWS index 2757935c07..886172e82a 100644 --- a/NEWS +++ b/NEWS @@ -24,6 +24,8 @@ PHP 4 NEWS (Adam Dickmeiss) - Fixed a bug in bundled libmysql (mysql bug #564). (Georg) - Fixed ext/exif to honor "magic_quotes_runtime" php.ini option. (Marcus) +- Fixed bug #24155 (gdImageRotate270 incorrectly use x parameter for y axis). + (tom@gksystems.com, Ilia) - Fixed bug #24060 (ncurses_del_panel() causes segfault). (Georg) - Fixed bug #24054 (Integer overflow failure with GCC/x86 for *=). (Sascha) - Fixed bug #23951 (constants in static initializers clobbered by inheritance). diff --git a/ext/gd/libgd/gd.c b/ext/gd/libgd/gd.c index 5ca0efad9a..fba4d1841f 100644 --- a/ext/gd/libgd/gd.c +++ b/ext/gd/libgd/gd.c @@ -2613,7 +2613,7 @@ gdImagePtr gdImageRotate270 ( gdImagePtr src ) if (dst != NULL) { gdImagePaletteCopy (dst, src); - for (uY = 0; uYsx; uY++) { + for (uY = 0; uYsy; uY++) { for (uX = 0; uXsx; uX++) { c = f (src, uX, uY); gdImageSetPixel(dst, (dst->sx - uY - 1), uX, c);