]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Fri, 24 Jun 2016 11:18:31 +0000 (07:18 -0400)
committerCristy <urban-warrior@imagemagick.org>
Fri, 24 Jun 2016 11:18:31 +0000 (07:18 -0400)
MagickCore/image.c

index 347668bc46c1265d0e39ca4912bdbf9d920873ce..730b16df36e8bc5f9bd9fe60bcbec3dd4f0037ea 100644 (file)
@@ -2449,7 +2449,7 @@ MagickExport MagickBooleanType SetImageExtent(Image *image,const size_t columns,
   const size_t rows,ExceptionInfo *exception)
 {
   if ((columns == 0) || (rows == 0))
-    return(MagickFalse);
+    ThrowBinaryException(ImageError,"NegativeOrZeroImageSize",image->filename);
   image->columns=columns;
   image->rows=rows;
   if (image->depth > (8*sizeof(MagickSizeType)))