]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/911
authorCristy <urban-warrior@imagemagick.org>
Fri, 22 Dec 2017 13:29:34 +0000 (08:29 -0500)
committerCristy <urban-warrior@imagemagick.org>
Fri, 22 Dec 2017 13:29:34 +0000 (08:29 -0500)
coders/miff.c

index 4a30a835f756477548854c93000fcc4d345de23c..61a51b3f70b588352e3ccd77817f1d54285a2aa4 100644 (file)
@@ -1124,6 +1124,8 @@ static Image *ReadMIFFImage(const ImageInfo *image_info,
               p=image->directory+strlen(image->directory);
             }
           c=ReadBlobByte(image);
+          if (c == EOF)
+            break;
           *p++=(char) c;
         } while (c != (int) '\0');
       }