diff options
author | Stanislav Malyshev <stas@php.net> | 2016-06-20 22:54:55 -0700 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2016-06-20 22:54:55 -0700 |
commit | 5f107ab8a66f8b36ac0c0b32e0231bf94e083c94 (patch) | |
tree | c0b2006d1a266a49a79d0c2b3ce6938e3d185412 | |
parent | 7f428cae88f1294052087e6729f1ecb924b8a18d (diff) | |
download | php-git-5f107ab8a66f8b36ac0c0b32e0231bf94e083c94.tar.gz |
fix tests
-rw-r--r-- | ext/gd/libgd/gd_gd2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/gd/libgd/gd_gd2.c b/ext/gd/libgd/gd_gd2.c index 63e3aefc3f..e954aafa68 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; |