Skip to content
Permalink
Browse files

Added check for bogus num_images value.

  • Loading branch information...
dlemstra committed Dec 29, 2014
1 parent 3816c49 commit 504ada82b6fa38a30c846c1c29116af7290decb2
Showing with 2 additions and 0 deletions.
  1. +2 −0 coders/dds.c
@@ -1836,6 +1836,8 @@ static Image *ReadDDSImage(const ImageInfo *image_info,ExceptionInfo *exception)
{
if (n != 0)
{
if (EOFBlob(image) != MagickFalse)
ThrowReaderException(CorruptImageError,"UnexpectedEndOfFile");
/* Start a new image */
AcquireNextImage(image_info,image);
if (GetNextImageInList(image) == (Image *) NULL)

0 comments on commit 504ada8

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