Closed
Description
Version: ImageMagick 7.0.6-1 Q16 x86_64
#./magick identify $FILE
=================================================================
==2953==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 168 byte(s) in 1 object(s) allocated from:
#0 0x4def96 in __interceptor_malloc asan_malloc_linux.cc:66
#1 0x7f7ad266ef76 in AcquireMagickMemory memory.c:463:10
#2 0x7f7ad2982f84 in ReadDCMImage dcm.c:3073:33
#3 0x7f7ad245ef98 in ReadImage constitute.c:497:13
#4 0x7f7ad27d5bd9 in ReadStream stream.c:1045:9
#5 0x7f7ad245db3f in PingImage constitute.c:226:9
#6 0x7f7ad245e2e3 in PingImages constitute.c:327:10
#7 0x7f7ad1bbf126 in IdentifyImageCommand identify.c:319:18
#8 0x7f7ad1c7cdff in MagickCommandGenesis mogrify.c:183:14
#9 0x514f77 in MagickMain magick.c:151:10
#10 0x5149d1 in main magick.c:263:10
#11 0x7f7acc4baf44 in __libc_start_main libc-start.c:287
SUMMARY: AddressSanitizer: 168 byte(s) leaked in 1 allocation(s).
testcase: https://github.com/jgj212/poc/blob/master/leak-ReadDCMImage
Credit : ADLab of Venustech