Code: MagickExport void *AcquireQuantumMemory(const size_t count,const size_t quantum)
{
   size_t
     extent;
 
  if (CheckMemoryOverflow(count,quantum) != MagickFalse)
     return((void *) NULL);
   extent=count*quantum;
   return(AcquireMagickMemory(extent));
}

Vulnerability Type: DoS Overflow 
CWE ID: CWE-119
Summary: magick/memory.c in ImageMagick before 6.9.4-5 allows remote attackers to cause a denial of service (application crash) via vectors involving *too many exceptions,* which trigger a buffer overflow.
Commit Message: Suspend exception processing if there are too many exceptions