Skip to content

Commit

Permalink
https://github.com/ImageMagick/ImageMagick/issues/533
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Jun 29, 2017
1 parent 4938040 commit 9493314
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions coders/dcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -3269,6 +3269,8 @@ static Image *ReadDCMImage(const ImageInfo *image_info,ExceptionInfo *exception)
else
if ((quantum != 0) && (length != 0))
{
if (length > GetBlobSize(image))
ThrowReaderException(CorruptImageError,"ImproperImageHeader");
if (~length >= 1)
data=(unsigned char *) AcquireQuantumMemory(length+1,quantum*
sizeof(*data));
Expand Down

0 comments on commit 9493314

Please sign in to comment.