Skip to content
Permalink
Browse files Browse the repository at this point in the history
Added check for bit depth 1.
  • Loading branch information
dlemstra committed Jan 15, 2016
1 parent 6cad3f6 commit 198fffa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions coders/psd.c
Expand Up @@ -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)
Expand Down

0 comments on commit 198fffa

Please sign in to comment.