Skip to content

Commit

Permalink
https://github.com/ImageMagick/ImageMagick/issues/867
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Nov 17, 2017
1 parent be27412 commit 9da3b39
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions coders/dds.c
Original file line number Diff line number Diff line change
Expand Up @@ -1865,6 +1865,8 @@ static MagickBooleanType ReadDDSInfo(Image *image, DDSInfo *dds_info)
dds_info->pitchOrLinearSize = ReadBlobLSBLong(image);
dds_info->depth = ReadBlobLSBLong(image);
dds_info->mipmapcount = ReadBlobLSBLong(image);
if (dds_info->mipmapcount > GetBlobSize(image))
return MagickFalse;

(void) SeekBlob(image, 44, SEEK_CUR); /* reserved region of 11 DWORDs */

Expand Down

0 comments on commit 9da3b39

Please sign in to comment.