Skip to content
Permalink
Browse files

https://github.com//issues/110

  • Loading branch information...
Cristy
Cristy committed Jan 30, 2016
1 parent 564d868 commit b5ed738f8060266bf4ae521f7e3ed145aa4498a3
Showing with 1 addition and 1 deletion.
  1. +1 −1 magick/quantum.c
@@ -682,7 +682,7 @@ MagickExport MagickBooleanType SetQuantumDepth(const Image *image,
DestroyQuantumPixels(quantum_info);
quantum=(quantum_info->pad+6)*(quantum_info->depth+7)/8;
extent=image->columns*quantum;
if (quantum != (extent/image->columns))
if ((image->columns != 0) && (quantum != (extent/image->columns)))
return(MagickFalse);
return(AcquireQuantumPixels(quantum_info,extent));
}

0 comments on commit b5ed738

Please sign in to comment.
You can’t perform that action at this time.