In IntensityCompare() of /MagickCore/quantize.c, a double value was being casted to int and returned, which in some cases caused a value outside the range of type int
to be returned. The flaw could be triggered by a crafted input file under certain conditions when processed by ImageMagick.