diff options
author | fvogel <fvogelnew1@free.fr> | 2017-08-02 12:00:14 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2017-08-02 12:00:14 (GMT) |
commit | 70b7db3aaec9652af6037f4950c1f93f6293c073 (patch) | |
tree | e52d9c89fbc97452b27012fd488875017dfd4a24 /generic | |
parent | a2d0ee1d83897b9b5d95ea1e6182cdc2448e9425 (diff) | |
parent | 921db39fdb9af4eaae326f252f9edc30706b213c (diff) | |
download | tk-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')
-rw-r--r-- | generic/tkImgGIF.c | 1 |
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); } |