Skip to content

Commit

Permalink
https://github.com/ImageMagick/ImageMagick/issues/654
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Aug 7, 2017
1 parent f1ea048 commit 7d63315
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions coders/wpg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1035,6 +1035,8 @@ static Image *ReadWPGImage(const ImageInfo *image_info,
if(i==EOF)
break;
Rd_WP_DWORD(image,&Rec.RecordLength);
if (Rec.RecordLength > GetBlobSize(image))
ThrowReaderException(CorruptImageError,"ImproperImageHeader");
if(EOFBlob(image))
break;

Expand Down

0 comments on commit 7d63315

Please sign in to comment.