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

--- a/coders/psd.c
+++ b/coders/psd.c
@@ -568,7 +568,7 @@ static inline MagickSizeType GetPSDSize(const PSDInfo *psd_info,Image *image)
 static inline size_t GetPSDRowSize(Image *image)
 {
   if (image->depth == 1)
-    return((image->columns+7)/8);
+    return(((image->columns+7)/8)*GetPSDPacketSize(image));
   else
     return(image->columns*GetPSDPacketSize(image));
 }