File ImageMagick-CVE-2017-18271.patch of Package ImageMagick.16891

--- a/coders/miff.c
+++ b/coders/miff.c
@@ -1125,6 +1125,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');
       }

openSUSE Build Service is sponsored by