/*
Verify that required image information is defined.
*/
- if ((LocaleCompare(id,"MagickCache") != 0) || (image->depth > 128) ||
+ if ((LocaleCompare(id,"MagickCache") != 0) ||
(image->storage_class == UndefinedClass) ||
(image->compression == UndefinedCompression) ||
(image->columns == 0) || (image->rows == 0) ||
(image->number_channels > MaxPixelChannels) ||
(image->number_meta_channels > (MaxPixelChannels-8)) ||
- ((image->number_channels+image->number_meta_channels) >= MaxPixelChannels))
+ ((image->number_channels+image->number_meta_channels) >= MaxPixelChannels) ||
+ (image->depth == 0) || (image->depth > 64))
{
if (profiles != (LinkedListInfo *) NULL)
profiles=DestroyLinkedList(profiles,RelinquishMagickMemory);