File ImageMagick-CVE-2016-10062.patch of Package ImageMagick.8212

From 41e955984b034777903cfa61e500a0b922eb9cbd Mon Sep 17 00:00:00 2001
From: Cristy <urban-warrior@imagemagick.org>
Date: Wed, 11 Jan 2017 10:10:16 -0500
Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/352
 https://github.com/ImageMagick/ImageMagick/issues/196

---
 coders/tiff.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/coders/tiff.c b/coders/tiff.c
index 6304b39..2f68403 100644
--- a/coders/tiff.c
+++ b/coders/tiff.c
@@ -394,6 +394,8 @@ static Image *ReadGROUP4Image(const ImageInfo *image_info,
       status=MagickFalse;
   offset=(ssize_t) fseek(file,(ssize_t) offset,SEEK_SET);
   length=WriteLSBLong(file,(unsigned int) length);
+  if (ferror(file) != 0)
+    ThrowImageException(FileOpenError,"UnableToCreateTemporaryFile");
   (void) fclose(file);
   (void) CloseBlob(image);
   image=DestroyImage(image);