diff options
author | Stanislav Malyshev <stas@php.net> | 2015-12-07 23:30:49 -0800 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2015-12-07 23:33:05 -0800 |
commit | 4bb422343f29f06b7081323844d9b52e1a71e4a5 (patch) | |
tree | ac375504b469afc8cbb7642f4b6eaec63294f973 /ext/gd/libgd/gd_interpolation.c | |
parent | 2e157c527508c3cfa85bdabffe0560f2e50abf18 (diff) | |
download | php-git-4bb422343f29f06b7081323844d9b52e1a71e4a5.tar.gz |
Fix bug #70976: fix boundary check on gdImageRotateInterpolated
Diffstat (limited to 'ext/gd/libgd/gd_interpolation.c')
-rw-r--r-- | ext/gd/libgd/gd_interpolation.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/gd/libgd/gd_interpolation.c b/ext/gd/libgd/gd_interpolation.c index 65e2360776..efb584c1e4 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) { + if (bgcolor < 0 || bgcolor >= gdMaxColors) { return NULL; } |