From 3f211f8319be5e0f7a111caa16147e7b94c1bc4b Mon Sep 17 00:00:00 2001 From: Cristy Date: Tue, 13 Feb 2018 07:07:35 -0500 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6271 --- coders/dcm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/coders/dcm.c b/coders/dcm.c index a1a0a8953..589b5b973 100644 --- a/coders/dcm.c +++ b/coders/dcm.c @@ -2987,6 +2987,9 @@ static Image *ReadDCMImage(const ImageInfo *image_info,ExceptionInfo *exception) greenmap=(int *) RelinquishMagickMemory(greenmap); \ if (redmap != (int *) NULL) \ redmap=(int *) RelinquishMagickMemory(redmap); \ + if (stream_info->offsets == (ssize_t *) NULL) \ + stream_info->offsets=(ssize_t *) RelinquishMagickMemory( \ + stream_info->offsets); \ if (stream_info != (DCMStreamInfo *) NULL) \ stream_info=(DCMStreamInfo *) RelinquishMagickMemory(stream_info); \ ThrowReaderException((exception),(message)); \ -- 2.40.0