projects
/
imagemagick
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbc11ff
)
https://github.com/ImageMagick/ImageMagick/issues/1100
author
Cristy
<urban-warrior@imagemagick.org>
Fri, 20 Apr 2018 00:50:41 +0000
(20:50 -0400)
committer
Cristy
<urban-warrior@imagemagick.org>
Fri, 20 Apr 2018 00:50:41 +0000
(20:50 -0400)
coders/xcf.c
patch
|
blob
|
history
diff --git
a/coders/xcf.c
b/coders/xcf.c
index 8248377ba219461f7c33f0ba88d4a56b77d7df7b..88fa631af7b2d6a9e6a5f43f8ebf8b8adf0aa5cd 100644
(file)
--- a/
coders/xcf.c
+++ b/
coders/xcf.c
@@
-809,8
+809,7
@@
static MagickBooleanType ReadOneLayer(const ImageInfo *image_info,Image* image,
if (EOFBlob(image) != MagickFalse)
ThrowBinaryException(CorruptImageError,"InsufficientImageDataInFile",
image->filename);
- if ((outLayer->width < 1) || (outLayer->width > image->columns) ||
- (outLayer->height < 1) || (outLayer->height > image->rows))
+ if ((outLayer->width == 0) || (outLayer->height == 0))
ThrowBinaryException(CorruptImageError,"ImproperImageHeader",
image->filename);
/* read the layer properties! */