=================================================================
==15572==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 13024 byte(s) in 1 object(s) allocated from:
#0 0x7f867be93602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
#1 0x440319 in AcquireMagickMemory MagickCore/memory.c:464
#2 0x414423 in AcquireCriticalMemory MagickCore/memory-private.h:57
#3 0x416851 in AcquireImageInfo MagickCore/image.c:346
#4 0x41976a in CloneImageInfo MagickCore/image.c:947
#5 0x6891f6 in ReadPWPImage coders/pwp.c:177
#6 0x824acb in ReadImage MagickCore/constitute.c:497
#7 0x826c06 in ReadImages MagickCore/constitute.c:866
#8 0xb3749a in ConvertImageCommand MagickWand/convert.c:641
#9 0xcb7219 in MagickCommandGenesis MagickWand/mogrify.c:183
#10 0x40fdfc in MagickMain utilities/magick.c:149
#11 0x40ffdd in main utilities/magick.c:180
#12 0x7f867768b82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
Indirect leak of 88 byte(s) in 1 object(s) allocated from:
#0 0x7f867be93602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
#1 0x440319 in AcquireMagickMemory MagickCore/memory.c:464
#2 0x496424 in AcquireCriticalMemory MagickCore/memory-private.h:57
#3 0x49a267 in NewSplayTree MagickCore/splay-tree.c:1148
#4 0x4974a9 in CloneSplayTree MagickCore/splay-tree.c:360
#5 0x445010 in CloneImageOptions MagickCore/option.c:2131
#6 0x41abd4 in CloneImageInfo MagickCore/image.c:1012
#7 0x6891f6 in ReadPWPImage coders/pwp.c:177
#8 0x824acb in ReadImage MagickCore/constitute.c:497
#9 0x826c06 in ReadImages MagickCore/constitute.c:866
#10 0xb3749a in ConvertImageCommand MagickWand/convert.c:641
#11 0xcb7219 in MagickCommandGenesis MagickWand/mogrify.c:183
#12 0x40fdfc in MagickMain utilities/magick.c:149
#13 0x40ffdd in main utilities/magick.c:180
#14 0x7f867768b82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
Indirect leak of 64 byte(s) in 1 object(s) allocated from:
#0 0x7f867be94076 in __interceptor_posix_memalign (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x99076)
#1 0x49257e in AcquireSemaphoreMemory MagickCore/semaphore.c:154
#2 0x49263a in AcquireSemaphoreInfo MagickCore/semaphore.c:200
#3 0x49a458 in NewSplayTree MagickCore/splay-tree.c:1159
#4 0x4974a9 in CloneSplayTree MagickCore/splay-tree.c:360
#5 0x445010 in CloneImageOptions MagickCore/option.c:2131
#6 0x41abd4 in CloneImageInfo MagickCore/image.c:1012
#7 0x6891f6 in ReadPWPImage coders/pwp.c:177
#8 0x824acb in ReadImage MagickCore/constitute.c:497
#9 0x826c06 in ReadImages MagickCore/constitute.c:866
#10 0xb3749a in ConvertImageCommand MagickWand/convert.c:641
#11 0xcb7219 in MagickCommandGenesis MagickWand/mogrify.c:183
#12 0x40fdfc in MagickMain utilities/magick.c:149
#13 0x40ffdd in main utilities/magick.c:180
#14 0x7f867768b82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
Indirect leak of 32 byte(s) in 1 object(s) allocated from:
#0 0x7f867be93602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
#1 0x440319 in AcquireMagickMemory MagickCore/memory.c:464
#2 0x496955 in AddValueToSplayTree MagickCore/splay-tree.c:189
#3 0x497632 in CloneSplayTree MagickCore/splay-tree.c:372
#4 0x445010 in CloneImageOptions MagickCore/option.c:2131
#5 0x41abd4 in CloneImageInfo MagickCore/image.c:1012
#6 0x6891f6 in ReadPWPImage coders/pwp.c:177
#7 0x824acb in ReadImage MagickCore/constitute.c:497
#8 0x826c06 in ReadImages MagickCore/constitute.c:866
#9 0xb3749a in ConvertImageCommand MagickWand/convert.c:641
#10 0xcb7219 in MagickCommandGenesis MagickWand/mogrify.c:183
#11 0x40fdfc in MagickMain utilities/magick.c:149
#12 0x40ffdd in main utilities/magick.c:180
#13 0x7f867768b82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
Indirect leak of 31 byte(s) in 1 object(s) allocated from:
#0 0x7f867be93602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
#1 0x440319 in AcquireMagickMemory MagickCore/memory.c:464
#2 0x44036d in AcquireQuantumMemory MagickCore/memory.c:537
#3 0x4b2caa in ConstantString MagickCore/string.c:700
#4 0x4975c6 in CloneSplayTree MagickCore/splay-tree.c:373
#5 0x445010 in CloneImageOptions MagickCore/option.c:2131
#6 0x41abd4 in CloneImageInfo MagickCore/image.c:1012
#7 0x6891f6 in ReadPWPImage coders/pwp.c:177
#8 0x824acb in ReadImage MagickCore/constitute.c:497
#9 0x826c06 in ReadImages MagickCore/constitute.c:866
#10 0xb3749a in ConvertImageCommand MagickWand/convert.c:641
#11 0xcb7219 in MagickCommandGenesis MagickWand/mogrify.c:183
#12 0x40fdfc in MagickMain utilities/magick.c:149
#13 0x40ffdd in main utilities/magick.c:180
#14 0x7f867768b82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
Indirect leak of 9 byte(s) in 1 object(s) allocated from:
#0 0x7f867be93602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
#1 0x440319 in AcquireMagickMemory MagickCore/memory.c:464
#2 0x44036d in AcquireQuantumMemory MagickCore/memory.c:537
#3 0x4b2caa in ConstantString MagickCore/string.c:700
#4 0x49761d in CloneSplayTree MagickCore/splay-tree.c:372
#5 0x445010 in CloneImageOptions MagickCore/option.c:2131
#6 0x41abd4 in CloneImageInfo MagickCore/image.c:1012
#7 0x6891f6 in ReadPWPImage coders/pwp.c:177
#8 0x824acb in ReadImage MagickCore/constitute.c:497
#9 0x826c06 in ReadImages MagickCore/constitute.c:866
#10 0xb3749a in ConvertImageCommand MagickWand/convert.c:641
#11 0xcb7219 in MagickCommandGenesis MagickWand/mogrify.c:183
#12 0x40fdfc in MagickMain utilities/magick.c:149
#13 0x40ffdd in main utilities/magick.c:180
#14 0x7f867768b82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
SUMMARY: AddressSanitizer: 13248 byte(s) leaked in 6 allocation(s).
Version: ImageMagick 7.0.7-17 Q16 x86_64 2017-12-27 http://www.imagemagick.org
Copyright: © 1999-2018 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI OpenMP
Delegates (built-in): bzlib djvu fftw fontconfig freetype jbig jng jpeg lcms lqr lzma openexr pangocairo png tiff wmf x xml zlib
magick convert Memory-Leak-ReadPWPImage /dev/null
test case: https://github.com/just0day/poc/blob/master/Memory-Leak-ReadPWPImage
by future-sec
The text was updated successfully, but these errors were encountered: