diff options
author | fvogel <fvogelnew1@free.fr> | 2017-06-02 20:48:47 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2017-06-02 20:48:47 (GMT) |
commit | eefcd374a1f034485840315fcc6a9c80a14489ff (patch) | |
tree | e097a9bb028efeeed973a629a64a7dfaa05f6bd8 /generic/tkImgGIF.c | |
parent | 9642f18455a827c21c138dd799c26badbd641c34 (diff) | |
download | tk-eefcd374a1f034485840315fcc6a9c80a14489ff.zip tk-eefcd374a1f034485840315fcc6a9c80a14489ff.tar.gz tk-eefcd374a1f034485840315fcc6a9c80a14489ff.tar.bz2 |
Fixed [b601ce3ab1]: A corrupted image can cause resource exhaustion. Patch for core-8-5-branch from Keith Nash
Diffstat (limited to 'generic/tkImgGIF.c')
-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 e576559..409300c 100644 --- a/generic/tkImgGIF.c +++ b/generic/tkImgGIF.c @@ -1393,6 +1393,7 @@ Fread( } memcpy(dst, handle->data, (size_t) (hunk * count)); handle->data += hunk * count; + handle->length -= hunk * count; return (int)(hunk * count); } |