projects
/
imagemagick
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c01c86
)
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9314
author
Cristy
<urban-warrior@imagemagick.org>
Mon, 9 Jul 2018 23:43:23 +0000
(19:43 -0400)
committer
Cristy
<urban-warrior@imagemagick.org>
Mon, 9 Jul 2018 23:43:23 +0000
(19:43 -0400)
coders/dcm.c
patch
|
blob
|
history
diff --git
a/coders/dcm.c
b/coders/dcm.c
index 817b922b9919387e519a1f98c54ee91cb6f359c2..9caf75e73f901b30c442d0fe0932257e27014830 100644
(file)
--- a/
coders/dcm.c
+++ b/
coders/dcm.c
@@
-3973,6
+3973,9
@@
static Image *ReadDCMImage(const ImageInfo *image_info,ExceptionInfo *exception)
stream_info->offset_count=length >> 2;
if (stream_info->offset_count != 0)
{
+ if (stream_info->offsets != (ssize_t *) NULL)
+ stream_info->offsets=(ssize_t *)
+ RelinquishMagickMemory(stream_info->offsets);
stream_info->offsets=(ssize_t *) AcquireQuantumMemory(
stream_info->offset_count,sizeof(*stream_info->offsets));
if (stream_info->offsets == (ssize_t *) NULL)