Skip to content
Permalink
Browse files Browse the repository at this point in the history
https://github.com/ImageMagick/ImageMagick/issues/714
  • Loading branch information
Cristy committed Aug 31, 2017
1 parent 169a20e commit f68a98a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions coders/psd.c
Expand Up @@ -1688,6 +1688,12 @@ static MagickBooleanType ReadPSDLayersInternal(Image *image,
{
size_t blend_source=ReadBlobLong(image);
size_t blend_dest=ReadBlobLong(image);
if (EOFBlob(image) != MagickFalse)
{
layer_info=DestroyLayerInfo(layer_info,number_layers);
ThrowBinaryException(CorruptImageError,
"InsufficientImageDataInFile",image->filename);
}
if (image->debug != MagickFalse)
(void) LogMagickEvent(CoderEvent,GetMagickModule(),
" source(%x), dest(%x)",(unsigned int)
Expand Down

0 comments on commit f68a98a

Please sign in to comment.