projects
/
imagemagick
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd8b017
)
(no commit message)
author
cristy
<urban-warrior@git.imagemagick.org>
Wed, 11 Jul 2012 22:04:06 +0000
(22:04 +0000)
committer
cristy
<urban-warrior@git.imagemagick.org>
Wed, 11 Jul 2012 22:04:06 +0000
(22:04 +0000)
coders/art.c
patch
|
blob
|
history
diff --git
a/coders/art.c
b/coders/art.c
index eebe66b746c0be9e3b3fb55b9d63f8ba8a0b9f87..1e2fee530ff9a926b51c142ac1591933fcae168b 100644
(file)
--- a/
coders/art.c
+++ b/
coders/art.c
@@
-139,6
+139,8
@@
static Image *ReadARTImage(const ImageInfo *image_info,ExceptionInfo *exception)
image->columns=(size_t) ReadBlobLSBShort(image);
(void) ReadBlobLSBShort(image);
image->rows=(size_t) ReadBlobLSBShort(image);
+ if ((image->columns == 0) || (image->rows == 0))
+ ThrowReaderException(CorruptImageError,"ImproperImageHeader");
if (image_info->ping != MagickFalse)
{
(void) CloseBlob(image);