From: dirk Date: Thu, 11 Sep 2014 04:35:42 +0000 (+0000) Subject: Fixed checking sizes of icon:auto-resize. X-Git-Tag: 7.0.1-0~2025 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=841f915b32169234a3b1f836ad54eda3e8cccf2d;p=imagemagick Fixed checking sizes of icon:auto-resize. --- diff --git a/coders/icon.c b/coders/icon.c index 6312744a7..94bccc824 100644 --- a/coders/icon.c +++ b/coders/icon.c @@ -183,7 +183,7 @@ Image *AutoResizeImage(const Image *image,const char *option, p++; size=(size_t)strtol(p,&q,10); - if (p == q || size < 16 || size > 255) + if (p == q || size < 16 || size > 256) return((Image *) NULL); p=q;