Skip to content

Commit

Permalink
https://github.com/ImageMagick/ImageMagick/issues/1269
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Aug 27, 2018
1 parent 5a295f0 commit 16916c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions coders/dcm.c
Expand Up @@ -3853,6 +3853,8 @@ static Image *ReadDCMImage(const ImageInfo *image_info,ExceptionInfo *exception)
tag=((unsigned int) ReadBlobLSBShort(image) << 16) |
ReadBlobLSBShort(image);
length=(size_t) ReadBlobLSBLong(image);
if (length > (size_t) GetBlobSize(image))
ThrowDCMException(CorruptImageError,"InsufficientImageDataInFile");
if (tag == 0xFFFEE0DD)
break; /* sequence delimiter tag */
if (tag != 0xFFFEE000)
Expand Down

0 comments on commit 16916c8

Please sign in to comment.