From: Dirk Lemstra Date: Fri, 7 Sep 2018 08:43:41 +0000 (+0200) Subject: Fixed reading the number of layers. X-Git-Tag: 7.0.8-12~82 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c9ec99871e183f12bffab80d933c1bd904660039;p=imagemagick Fixed reading the number of layers. --- diff --git a/coders/psd.c b/coders/psd.c index 7066ff55b..63f4dcd07 100644 --- a/coders/psd.c +++ b/coders/psd.c @@ -1639,7 +1639,7 @@ static MagickBooleanType ReadPSDLayersInternal(Image *image, if (size != 0) { layer_info=(LayerInfo *) NULL; - number_layers=(ssize_t) ReadBlobShort(image); + number_layers=(ssize_t) ReadBlobSignedShort(image); if (number_layers < 0) {