From: Cristy Date: Tue, 12 Jun 2018 00:26:21 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.8-0~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=abf6b240975e9cf99d173e2dfbee3b5a0a75c372;p=imagemagick ... --- diff --git a/coders/png.c b/coders/png.c index 33723484a..8b84a83ef 100644 --- a/coders/png.c +++ b/coders/png.c @@ -6127,7 +6127,7 @@ static Image *ReadOneMNGImage(MngInfo* mng_info, const ImageInfo *image_info, { /* Read DISC or SEEK. */ - if ((length == 0) || !memcmp(type,mng_SEEK,4)) + if ((length == 0) || (length % 2) || !memcmp(type,mng_SEEK,4)) { for (i=1; i < MNG_MAX_OBJECTS; i++) MngInfoDiscardObject(mng_info,i);