com php-src: fix tests: ext/gd/libgd/gd_gd2.c
| From: | Stanislav Malyshev | Date: | Tue, 21 Jun 2016 05:54:55 +0000 |
| Subject: | com php-src: fix tests: ext/gd/libgd/gd_gd2.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-92531@lists.php.net to get a copy of this message | ||
Commit: 5f107ab8a66f8b36ac0c0b32e0231bf94e083c94
Author: Stanislav Malyshev <stas@php.net> Mon, 20 Jun 2016 22:54:55 -0700
Parents: 7f428cae88f1294052087e6729f1ecb924b8a18d
Branches: PHP-5.5
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=5f107ab8a66f8b36ac0c0b32e0231bf94e083c94
Log:
fix tests
Changed paths:
M ext/gd/libgd/gd_gd2.c
Diff:
diff --git a/ext/gd/libgd/gd_gd2.c b/ext/gd/libgd/gd_gd2.c
index 63e3aef..e954aaf 100644
--- a/ext/gd/libgd/gd_gd2.c
+++ b/ext/gd/libgd/gd_gd2.c
@@ -138,7 +138,7 @@ static int _gd2GetHeader(gdIOCtxPtr in, int *sx, int *sy, int *cs, int *vers, in
if (gd2_compressed(*fmt)) {
nc = (*ncx) * (*ncy);
GD2_DBG(php_gd_error("Reading %d chunk index entries", nc));
- if (overflow2(sidx, nc)) {
+ if (overflow2(sizeof(t_chunk_info), nc)) {
goto fail1;
}
sidx = sizeof(t_chunk_info) * nc;