com php-src: Improve fix for bug #70976: ext/gd/libgd/gd_inte rpolation.c

From: Date: Tue, 29 Dec 2015 07:44:14 +0000
Subject: com php-src: Improve fix for bug #70976: ext/gd/libgd/gd_inte rpolation.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-90522@lists.php.net to get a copy of this message
Commit: 2baeb167a08b0186a885208bdc8b5871f1681dc8 Author: Stanislav Malyshev <stas@php.net> Mon, 28 Dec 2015 23:44:14 -0800 Parents: dcf3c9761c31e12011ba202f30caff53aae2056c Branches: PHP-5.5 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2baeb167a08b0186a885208bdc8b5871f1681dc8 Log: Improve fix for bug #70976 Bugs: https://bugs.php.net/70976 Changed paths: M ext/gd/libgd/gd_interpolation.c Diff: diff --git a/ext/gd/libgd/gd_interpolation.c b/ext/gd/libgd/gd_interpolation.c index efb584c..eb35efb 100644 --- a/ext/gd/libgd/gd_interpolation.c +++ b/ext/gd/libgd/gd_interpolation.c @@ -2154,7 +2154,7 @@ gdImagePtr gdImageRotateInterpolated(const gdImagePtr src, const float angle, in { const int angle_rounded = (int)floor(angle * 100); - if (bgcolor < 0 || bgcolor >= gdMaxColors) { + if (bgcolor < 0 || (!src->trueColor && bgcolor >= gdMaxColors)) { return NULL; }

« previous php.cvs (#90522) next »