aboutsummaryrefslogtreecommitdiff
path: root/src/gif.c
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-06-29 18:59:45 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-06-29 18:59:45 +0200
commit3d56a7fc6ed2fd52b7da2fc4209233cbbc04c761 (patch)
tree32a87b1b2d938e387217dd0a5d760d31410a1b4c /src/gif.c
parent2bd7d5e9376d920eed6859332163334c15de4b9d (diff)
use IMAGE_MAX_AREA instead of IMAGE_MAX_W and IMAGE_MAX_H
Diffstat (limited to 'src/gif.c')
-rw-r--r--src/gif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gif.c b/src/gif.c
index 4a2bb847..3df83d20 100644
--- a/src/gif.c
+++ b/src/gif.c
@@ -815,7 +815,7 @@ static size_t Gif_do_img_desc(DilloGif *gif, void *Buf,
/* check max image size */
if (gif->Width <= 0 || gif->Height <= 0 ||
- gif->Width > (IMAGE_MAX_W * IMAGE_MAX_H) / gif->Height) {
+ gif->Width > IMAGE_MAX_AREA / gif->Height) {
MSG("Gif_do_img_desc: suspicious image size request %ux%u\n",
gif->Width, gif->Height);
gif->state = 999;