Skip to content
Permalink
Browse files

Added check for bit depth 1.

  • Loading branch information...
dlemstra committed Jan 15, 2016
1 parent 6cad3f6 commit 198fffab4daf8aea88badd9c629350e5b26ec32f
Showing with 2 additions and 0 deletions.
  1. +2 −0 coders/psd.c
@@ -1908,6 +1908,8 @@ static Image *ReadPSDImage(const ImageInfo *image_info,ExceptionInfo *exception)
image->alpha_trait=UndefinedPixelTrait;
}
}
if ((image->depth == 1) && (image->storage_class != PseudoClass))
ThrowReaderException(CorruptImageError, "ImproperImageHeader");
has_merged_image=MagickTrue;
length=ReadBlobMSBLong(image);
if (length != 0)

0 comments on commit 198fffa

Please sign in to comment.
You can’t perform that action at this time.