File ImageMagick-CVE-2014-9821.patch of Package ImageMagick.8212

--- a/coders/pnm.c
+++ b/coders/pnm.c
@@ -155,7 +155,7 @@ static void PNMComment(Image *image)
     Read comment.
   */
   comment=AcquireString(GetImageProperty(image,"comment"));
-  extent=strlen(comment);
+  extent=MaxTextExtent;
   p=comment+strlen(comment);
   for (c='#'; (c != EOF) && (c != (int) '\n'); p++)
   {