Skip to content

Commit 5f107ab

Browse files
committed
fix tests
1 parent 7f428ca commit 5f107ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/gd/libgd/gd_gd2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ static int _gd2GetHeader(gdIOCtxPtr in, int *sx, int *sy, int *cs, int *vers, in
138138
if (gd2_compressed(*fmt)) {
139139
nc = (*ncx) * (*ncy);
140140
GD2_DBG(php_gd_error("Reading %d chunk index entries", nc));
141-
if (overflow2(sidx, nc)) {
141+
if (overflow2(sizeof(t_chunk_info), nc)) {
142142
goto fail1;
143143
}
144144
sidx = sizeof(t_chunk_info) * nc;

0 commit comments

Comments
 (0)