summaryrefslogtreecommitdiffstats
path: root/generic/tkImgGIF.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2017-08-02 12:00:14 (GMT)
committerfvogel <fvogelnew1@free.fr>2017-08-02 12:00:14 (GMT)
commit70b7db3aaec9652af6037f4950c1f93f6293c073 (patch)
treee52d9c89fbc97452b27012fd488875017dfd4a24 /generic/tkImgGIF.c
parenta2d0ee1d83897b9b5d95ea1e6182cdc2448e9425 (diff)
parent921db39fdb9af4eaae326f252f9edc30706b213c (diff)
downloadtk-70b7db3aaec9652af6037f4950c1f93f6293c073.zip
tk-70b7db3aaec9652af6037f4950c1f93f6293c073.tar.gz
tk-70b7db3aaec9652af6037f4950c1f93f6293c073.tar.bz2
Fix [b601ce3ab1]: A corrupted image can cause resource exhaustion. Patch from Keith Nash.
Diffstat (limited to 'generic/tkImgGIF.c')
-rw-r--r--generic/tkImgGIF.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/generic/tkImgGIF.c b/generic/tkImgGIF.c
index 1c28b54..be90f06 100644
--- a/generic/tkImgGIF.c
+++ b/generic/tkImgGIF.c
@@ -1571,6 +1571,7 @@ Fread(
}
memcpy(dst, handle->data, (size_t) (hunk * count));
handle->data += hunk * count;
+ handle->length -= hunk * count;
return (int)(hunk * count);
}