Code: static MagickBooleanType CheckMemoryOverflow(const size_t count,
  const size_t quantum)
{
  size_t
    size;
  size=count*quantum;
  if ((count == 0) || (quantum != (size/count)))
    {
      errno=ENOMEM;
      return(MagickTrue);
    }
  return(MagickFalse);
}

Commit Message: Suspend exception processing if there are too many exceptions
CWE ID: CWE-119
static MagickBooleanType CheckMemoryOverflow(const size_t count,
