Project: imagemagick (imagemagick/imagemagick), language: c++
Vulnerability instance: imagemagick.cve-2017-14139
Sanitizer: address

================= Bug Report (1/1) ==================
## Source: GitHub Issue
## URL: https://github.com/ImageMagick/ImageMagick/issues/578
## Description:
Issue: ImageMagick/ImageMagick#578
Title: memory leak in WriteMSLImage
State: closed
Created by: jgj212
Created at: 2017-07-17 04:58:46+00:00
Labels: bug

Issue Body:
Version: ImageMagick 7.0.6-2 Q16 x86_64

```
./magick convert $FILE  out.msl

=================================================================
==18493==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 4352 byte(s) in 17 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe61d0b79  (libfontconfig.so.1+0x1bb79)

Direct leak of 16 byte(s) in 1 object(s) allocated from:
    #0 0x4df1dd in realloc asan_malloc_linux.cc:79
    #1 0x7f1fe7aa0783 in ResizeMagickMemory memory.c:1224:9
    #2 0x7f1fe7aa081d in ResizeQuantumMemory memory.c:1288:10
    #3 0x7f1fe7ec5eba in MSLPushImage msl.c:563:35
    #4 0x7f1fe7ec4f27 in ProcessMSLScript msl.c:7767:5
    #5 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #6 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #7 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #8 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #9 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #10 0x5149a7 in MagickMain magick.c:149:10
    #11 0x514401 in main magick.c:180:10
    #12 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Direct leak of 16 byte(s) in 1 object(s) allocated from:
    #0 0x4df1dd in realloc asan_malloc_linux.cc:79
    #1 0x7f1fe7aa0783 in ResizeMagickMemory memory.c:1224:9
    #2 0x7f1fe7aa081d in ResizeQuantumMemory memory.c:1288:10
    #3 0x7f1fe7ec5f5f in MSLPushImage msl.c:565:30
    #4 0x7f1fe7ec4f27 in ProcessMSLScript msl.c:7767:5
    #5 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #6 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #7 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #8 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #9 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #10 0x5149a7 in MagickMain magick.c:149:10
    #11 0x514401 in main magick.c:180:10
    #12 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Direct leak of 16 byte(s) in 1 object(s) allocated from:
    #0 0x4df1dd in realloc asan_malloc_linux.cc:79
    #1 0x7f1fe7aa0783 in ResizeMagickMemory memory.c:1224:9
    #2 0x7f1fe7aa081d in ResizeQuantumMemory memory.c:1288:10
    #3 0x7f1fe7ec5d88 in MSLPushImage msl.c:559:39
    #4 0x7f1fe7ec4f27 in ProcessMSLScript msl.c:7767:5
    #5 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #6 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #7 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #8 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #9 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #10 0x5149a7 in MagickMain magick.c:149:10
    #11 0x514401 in main magick.c:180:10
    #12 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Direct leak of 16 byte(s) in 1 object(s) allocated from:
    #0 0x4df1dd in realloc asan_malloc_linux.cc:79
    #1 0x7f1fe7aa0783 in ResizeMagickMemory memory.c:1224:9
    #2 0x7f1fe7aa081d in ResizeQuantumMemory memory.c:1288:10
    #3 0x7f1fe7ec5e15 in MSLPushImage msl.c:561:37
    #4 0x7f1fe7ec4f27 in ProcessMSLScript msl.c:7767:5
    #5 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #6 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #7 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #8 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #9 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #10 0x5149a7 in MagickMain magick.c:149:10
    #11 0x514401 in main magick.c:180:10
    #12 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 4608000 byte(s) in 1 object(s) allocated from:
    #0 0x4df985 in posix_memalign asan_malloc_linux.cc:142
    #1 0x7f1fe7a9ecb2 in AcquireAlignedMemory memory.c:262:7
    #2 0x7f1fe78105df in OpenPixelCache cache.c:3558:46
    #3 0x7f1fe7815f78 in GetImagePixelCache cache.c:1667:18
    #4 0x7f1fe781ada9 in SyncImagePixelCache cache.c:5257:28
    #5 0x7f1fe7a5a336 in SetImageExtent image.c:2554:10
    #6 0x7f1fe8032776 in ReadTTFImage ttf.c:227:10
    #7 0x7f1fe78797e8 in ReadImage constitute.c:497:13
    #8 0x7f1fe787d104 in ReadImages constitute.c:866:9
    #9 0x7f1fe6e98f14 in ConvertImageCommand convert.c:641:18
    #10 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #11 0x5149a7 in MagickMain magick.c:149:10
    #12 0x514401 in main magick.c:180:10
    #13 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 13488 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe7a4ac99 in AcquireImage image.c:169:19
    #3 0x7f1fe7ec4d36 in ProcessMSLScript msl.c:7762:24
    #4 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #5 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #6 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #7 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #8 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #9 0x5149a7 in MagickMain magick.c:149:10
    #10 0x514401 in main magick.c:180:10
    #11 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 13488 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe7a5157f in CloneImage image.c:829:25
    #3 0x7f1fe7ec65cb in MSLPushImage msl.c:579:29
    #4 0x7f1fe7ec4f27 in ProcessMSLScript msl.c:7767:5
    #5 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #6 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #7 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #8 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #9 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #10 0x5149a7 in MagickMain magick.c:149:10
    #11 0x514401 in main magick.c:180:10
    #12 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 13488 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe7a4ac99 in AcquireImage image.c:169:19
    #3 0x7f1fe7ec462c in ProcessMSLScript msl.c:7729:13
    #4 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #5 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #6 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #7 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #8 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #9 0x5149a7 in MagickMain magick.c:149:10
    #10 0x514401 in main magick.c:180:10
    #11 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 13488 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe7a4ac99 in AcquireImage image.c:169:19
    #3 0x7f1fe8032514 in ReadTTFImage ttf.c:214:9
    #4 0x7f1fe78797e8 in ReadImage constitute.c:497:13
    #5 0x7f1fe787d104 in ReadImages constitute.c:866:9
    #6 0x7f1fe6e98f14 in ConvertImageCommand convert.c:641:18
    #7 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #8 0x5149a7 in MagickMain magick.c:149:10
    #9 0x514401 in main magick.c:180:10
    #10 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 13024 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe7a4f633 in AcquireImageInfo image.c:347:28
    #3 0x7f1fe7a587a3 in CloneImageInfo image.c:952:14
    #4 0x7f1fe7a4f568 in SyncImageSettings image.c:4051:21
    #5 0x7f1fe7a4cd68 in AcquireImage image.c:290:10
    #6 0x7f1fe7ec462c in ProcessMSLScript msl.c:7729:13
    #7 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #8 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #9 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #10 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #11 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #12 0x5149a7 in MagickMain magick.c:149:10
    #13 0x514401 in main magick.c:180:10
    #14 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 13024 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe7a4f633 in AcquireImageInfo image.c:347:28
    #3 0x7f1fe7a587a3 in CloneImageInfo image.c:952:14
    #4 0x7f1fe7ec6213 in MSLPushImage msl.c:572:27
    #5 0x7f1fe7ec4f27 in ProcessMSLScript msl.c:7767:5
    #6 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #7 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #8 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #9 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #10 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #11 0x5149a7 in MagickMain magick.c:149:10
    #12 0x514401 in main magick.c:180:10
    #13 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 13024 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe7a4f633 in AcquireImageInfo image.c:347:28
    #3 0x7f1fe7a587a3 in CloneImageInfo image.c:952:14
    #4 0x7f1fe7ec4c1d in ProcessMSLScript msl.c:7760:24
    #5 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #6 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #7 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #8 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #9 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #10 0x5149a7 in MagickMain magick.c:149:10
    #11 0x514401 in main magick.c:180:10
    #12 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 13024 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe7a4f633 in AcquireImageInfo image.c:347:28
    #3 0x7f1fe7a587a3 in CloneImageInfo image.c:952:14
    #4 0x7f1fe7a4f568 in SyncImageSettings image.c:4051:21
    #5 0x7f1fe7a4cd68 in AcquireImage image.c:290:10
    #6 0x7f1fe7ec4d36 in ProcessMSLScript msl.c:7762:24
    #7 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #8 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #9 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #10 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #11 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #12 0x5149a7 in MagickMain magick.c:149:10
    #13 0x514401 in main magick.c:180:10
    #14 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 13024 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe7a4f633 in AcquireImageInfo image.c:347:28
    #3 0x7f1fe7a587a3 in CloneImageInfo image.c:952:14
    #4 0x7f1fe7a51e1c in CloneImage image.c:845:27
    #5 0x7f1fe7ec65cb in MSLPushImage msl.c:579:29
    #6 0x7f1fe7ec4f27 in ProcessMSLScript msl.c:7767:5
    #7 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #8 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #9 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #10 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #11 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #12 0x5149a7 in MagickMain magick.c:149:10
    #13 0x514401 in main magick.c:180:10
    #14 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 13024 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe7a4f633 in AcquireImageInfo image.c:347:28
    #3 0x7f1fe7a587a3 in CloneImageInfo image.c:952:14
    #4 0x7f1fe7a4f568 in SyncImageSettings image.c:4051:21
    #5 0x7f1fe7a6540b in SyncImagesSettings image.c:3818:12
    #6 0x7f1fe6f2c609 in ConvertImageCommand convert.c:3273:3
    #7 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #8 0x5149a7 in MagickMain magick.c:149:10
    #9 0x514401 in main magick.c:180:10
    #10 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 9096 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe7a9eed8 in AcquireQuantumMemory memory.c:537:10
    #3 0x7f1fe77fb594 in AcquirePixelCache cache.c:195:28
    #4 0x7f1fe7a4b59d in AcquireImage image.c:206:16
    #5 0x7f1fe8032514 in ReadTTFImage ttf.c:214:9
    #6 0x7f1fe78797e8 in ReadImage constitute.c:497:13
    #7 0x7f1fe787d104 in ReadImages constitute.c:866:9
    #8 0x7f1fe6e98f14 in ConvertImageCommand convert.c:641:18
    #9 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #10 0x5149a7 in MagickMain magick.c:149:10
    #11 0x514401 in main magick.c:180:10
    #12 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 9096 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe7a9eed8 in AcquireQuantumMemory memory.c:537:10
    #3 0x7f1fe77fb594 in AcquirePixelCache cache.c:195:28
    #4 0x7f1fe7a4b59d in AcquireImage image.c:206:16
    #5 0x7f1fe7ec4d36 in ProcessMSLScript msl.c:7762:24
    #6 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #7 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #8 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #9 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #10 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #11 0x5149a7 in MagickMain magick.c:149:10
    #12 0x514401 in main magick.c:180:10
    #13 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 9096 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe7a9eed8 in AcquireQuantumMemory memory.c:537:10
    #3 0x7f1fe77fb594 in AcquirePixelCache cache.c:195:28
    #4 0x7f1fe7a4b59d in AcquireImage image.c:206:16
    #5 0x7f1fe7ec462c in ProcessMSLScript msl.c:7729:13
    #6 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #7 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #8 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #9 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #10 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #11 0x5149a7 in MagickMain magick.c:149:10
    #12 0x514401 in main magick.c:180:10
    #13 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 1080 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe79526a1 in CloneDrawInfo draw.c:252:27
    #3 0x7f1fe7ec4ca8 in ProcessMSLScript msl.c:7761:23
    #4 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #5 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #6 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #7 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #8 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #9 0x5149a7 in MagickMain magick.c:149:10
    #10 0x514401 in main magick.c:180:10
    #11 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 1080 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe79526a1 in CloneDrawInfo draw.c:252:27
    #3 0x7f1fe7ec639b in MSLPushImage msl.c:573:26
    #4 0x7f1fe7ec4f27 in ProcessMSLScript msl.c:7767:5
    #5 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #6 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #7 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #8 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #9 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #10 0x5149a7 in MagickMain magick.c:149:10
    #11 0x514401 in main magick.c:180:10
    #12 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 1056 byte(s) in 33 object(s) allocated from:
    #0 0x4defdd in calloc asan_malloc_linux.cc:74
    #1 0x7f1fe61d1229  (libfontconfig.so.1+0x1c229)

Indirect leak of 995 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe7a9eed8 in AcquireQuantumMemory memory.c:537:10
    #3 0x7f1fe7c23193 in ConstantString string.c:701:26
    #4 0x7f1fe7bed866 in CloneSplayTree splay-tree.c:372:7
    #5 0x7f1fe77d0721 in CloneImageArtifacts artifact.c:118:24
    #6 0x7f1fe7a51e99 in CloneImage image.c:848:10
    #7 0x7f1fe7ec65cb in MSLPushImage msl.c:579:29
    #8 0x7f1fe7ec4f27 in ProcessMSLScript msl.c:7767:5
    #9 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #10 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #11 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #12 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #13 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #14 0x5149a7 in MagickMain magick.c:149:10
    #15 0x514401 in main magick.c:180:10
    #16 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 995 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe7a9eed8 in AcquireQuantumMemory memory.c:537:10
    #3 0x7f1fe7c23193 in ConstantString string.c:701:26
    #4 0x7f1fe77d0fa4 in SetImageArtifact artifact.c:474:30
    #5 0x7f1fe795bdc0 in DrawImage draw.c:1760:10
    #6 0x7f1fe8032e2b in ReadTTFImage ttf.c:287:10
    #7 0x7f1fe78797e8 in ReadImage constitute.c:497:13
    #8 0x7f1fe787d104 in ReadImages constitute.c:866:9
    #9 0x7f1fe6e98f14 in ConvertImageCommand convert.c:641:18
    #10 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #11 0x5149a7 in MagickMain magick.c:149:10
    #12 0x514401 in main magick.c:180:10
    #13 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 512 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe7a9eed8 in AcquireQuantumMemory memory.c:537:10
    #3 0x7f1fe7ade5fa in AcquirePixelChannelMap pixel.c:101:35
    #4 0x7f1fe7ade7d4 in ClonePixelChannelMap pixel.c:139:13
    #5 0x7f1fe7a521f6 in CloneImage image.c:856:28
    #6 0x7f1fe7ec65cb in MSLPushImage msl.c:579:29
    #7 0x7f1fe7ec4f27 in ProcessMSLScript msl.c:7767:5
    #8 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #9 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #10 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #11 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #12 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #13 0x5149a7 in MagickMain magick.c:149:10
    #14 0x514401 in main magick.c:180:10
    #15 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 512 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe7a9eed8 in AcquireQuantumMemory memory.c:537:10
    #3 0x7f1fe7ade5fa in AcquirePixelChannelMap pixel.c:101:35
    #4 0x7f1fe7a4b65b in AcquireImage image.c:208:22
    #5 0x7f1fe7ec462c in ProcessMSLScript msl.c:7729:13
    #6 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #7 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #8 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #9 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #10 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #11 0x5149a7 in MagickMain magick.c:149:10
    #12 0x514401 in main magick.c:180:10
    #13 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 512 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe7a9eed8 in AcquireQuantumMemory memory.c:537:10
    #3 0x7f1fe7ade5fa in AcquirePixelChannelMap pixel.c:101:35
    #4 0x7f1fe7a4b65b in AcquireImage image.c:208:22
    #5 0x7f1fe7ec4d36 in ProcessMSLScript msl.c:7762:24
    #6 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #7 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #8 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #9 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #10 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #11 0x5149a7 in MagickMain magick.c:149:10
    #12 0x514401 in main magick.c:180:10
    #13 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 512 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe7a9eed8 in AcquireQuantumMemory memory.c:537:10
    #3 0x7f1fe7ade5fa in AcquirePixelChannelMap pixel.c:101:35
    #4 0x7f1fe7a4b65b in AcquireImage image.c:208:22
    #5 0x7f1fe8032514 in ReadTTFImage ttf.c:214:9
    #6 0x7f1fe78797e8 in ReadImage constitute.c:497:13
    #7 0x7f1fe787d104 in ReadImages constitute.c:866:9
    #8 0x7f1fe6e98f14 in ConvertImageCommand convert.c:641:18
    #9 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #10 0x5149a7 in MagickMain magick.c:149:10
    #11 0x514401 in main magick.c:180:10
    #12 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 321 byte(s) in 32 object(s) allocated from:
    #0 0x49273b in __strdup asan_interceptors.cc:566
    #1 0x7f1fe61d04dc in FcValueSave (libfontconfig.so.1+0x1b4dc)

Indirect leak of 280 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe77da7fd in CloneBlobInfo blob.c:504:27
    #3 0x7f1fe7a526af in CloneImage image.c:874:25
    #4 0x7f1fe7ec65cb in MSLPushImage msl.c:579:29
    #5 0x7f1fe7ec4f27 in ProcessMSLScript msl.c:7767:5
    #6 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #7 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #8 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #9 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #10 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #11 0x5149a7 in MagickMain magick.c:149:10
    #12 0x514401 in main magick.c:180:10
    #13 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 280 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe77da7fd in CloneBlobInfo blob.c:504:27
    #3 0x7f1fe7a4b6b1 in AcquireImage image.c:209:15
    #4 0x7f1fe7ec462c in ProcessMSLScript msl.c:7729:13
    #5 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #6 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #7 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #8 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #9 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #10 0x5149a7 in MagickMain magick.c:149:10
    #11 0x514401 in main magick.c:180:10
    #12 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 280 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe77da7fd in CloneBlobInfo blob.c:504:27
    #3 0x7f1fe7a4b6b1 in AcquireImage image.c:209:15
    #4 0x7f1fe8032514 in ReadTTFImage ttf.c:214:9
    #5 0x7f1fe78797e8 in ReadImage constitute.c:497:13
    #6 0x7f1fe787d104 in ReadImages constitute.c:866:9
    #7 0x7f1fe6e98f14 in ConvertImageCommand convert.c:641:18
    #8 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #9 0x5149a7 in MagickMain magick.c:149:10
    #10 0x514401 in main magick.c:180:10
    #11 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 280 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe77da7fd in CloneBlobInfo blob.c:504:27
    #3 0x7f1fe7a4b6b1 in AcquireImage image.c:209:15
    #4 0x7f1fe7ec4d36 in ProcessMSLScript msl.c:7762:24
    #5 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #6 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #7 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #8 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #9 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #10 0x5149a7 in MagickMain magick.c:149:10
    #11 0x514401 in main magick.c:180:10
    #12 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 88 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe7beda45 in NewSplayTree splay-tree.c:1106:32
    #3 0x7f1fe7bed674 in CloneSplayTree splay-tree.c:359:14
    #4 0x7f1fe77d0721 in CloneImageArtifacts artifact.c:118:24
    #5 0x7f1fe7a51e99 in CloneImage image.c:848:10
    #6 0x7f1fe7ec65cb in MSLPushImage msl.c:579:29
    #7 0x7f1fe7ec4f27 in ProcessMSLScript msl.c:7767:5
    #8 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #9 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #10 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #11 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #12 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #13 0x5149a7 in MagickMain magick.c:149:10
    #14 0x514401 in main magick.c:180:10
    #15 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 88 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe7beda45 in NewSplayTree splay-tree.c:1106:32
    #3 0x7f1fe7bed674 in CloneSplayTree splay-tree.c:359:14
    #4 0x7f1fe7b29fdc in CloneImageProperties property.c:196:25
    #5 0x7f1fe7a51e86 in CloneImage image.c:847:10
    #6 0x7f1fe7ec65cb in MSLPushImage msl.c:579:29
    #7 0x7f1fe7ec4f27 in ProcessMSLScript msl.c:7767:5
    #8 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #9 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #10 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #11 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #12 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #13 0x5149a7 in MagickMain magick.c:149:10
    #14 0x514401 in main magick.c:180:10
    #15 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 88 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe7a9eed8 in AcquireQuantumMemory memory.c:537:10
    #3 0x7f1fe77fc054 in AcquirePixelCacheNexus cache.c:268:31
    #4 0x7f1fe77fbab4 in AcquirePixelCache cache.c:211:26
    #5 0x7f1fe7a4b59d in AcquireImage image.c:206:16
    #6 0x7f1fe7ec4d36 in ProcessMSLScript msl.c:7762:24
    #7 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #8 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #9 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #10 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #11 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #12 0x5149a7 in MagickMain magick.c:149:10
    #13 0x514401 in main magick.c:180:10
    #14 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 88 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe7a9eed8 in AcquireQuantumMemory memory.c:537:10
    #3 0x7f1fe77fc054 in AcquirePixelCacheNexus cache.c:268:31
    #4 0x7f1fe77fbab4 in AcquirePixelCache cache.c:211:26
    #5 0x7f1fe7a4b59d in AcquireImage image.c:206:16
    #6 0x7f1fe7ec462c in ProcessMSLScript msl.c:7729:13
    #7 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #8 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #9 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #10 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #11 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #12 0x5149a7 in MagickMain magick.c:149:10
    #13 0x514401 in main magick.c:180:10
    #14 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 88 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe7beda45 in NewSplayTree splay-tree.c:1106:32
    #3 0x7f1fe7b2a95a in SetImageProperty property.c:4022:23
    #4 0x7f1fe787c003 in ReadImage constitute.c:735:12
    #5 0x7f1fe787d104 in ReadImages constitute.c:866:9
    #6 0x7f1fe6e98f14 in ConvertImageCommand convert.c:641:18
    #7 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #8 0x5149a7 in MagickMain magick.c:149:10
    #9 0x514401 in main magick.c:180:10
    #10 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 88 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe7beda45 in NewSplayTree splay-tree.c:1106:32
    #3 0x7f1fe77d0efd in SetImageArtifact artifact.c:463:22
    #4 0x7f1fe795bdc0 in DrawImage draw.c:1760:10
    #5 0x7f1fe8032e2b in ReadTTFImage ttf.c:287:10
    #6 0x7f1fe78797e8 in ReadImage constitute.c:497:13
    #7 0x7f1fe787d104 in ReadImages constitute.c:866:9
    #8 0x7f1fe6e98f14 in ConvertImageCommand convert.c:641:18
    #9 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #10 0x5149a7 in MagickMain magick.c:149:10
    #11 0x514401 in main magick.c:180:10
    #12 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 88 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe7a9eed8 in AcquireQuantumMemory memory.c:537:10
    #3 0x7f1fe77fc054 in AcquirePixelCacheNexus cache.c:268:31
    #4 0x7f1fe77fbab4 in AcquirePixelCache cache.c:211:26
    #5 0x7f1fe7a4b59d in AcquireImage image.c:206:16
    #6 0x7f1fe8032514 in ReadTTFImage ttf.c:214:9
    #7 0x7f1fe78797e8 in ReadImage constitute.c:497:13
    #8 0x7f1fe787d104 in ReadImages constitute.c:866:9
    #9 0x7f1fe6e98f14 in ConvertImageCommand convert.c:641:18
    #10 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #11 0x5149a7 in MagickMain magick.c:149:10
    #12 0x514401 in main magick.c:180:10
    #13 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 64 byte(s) in 1 object(s) allocated from:
    #0 0x4df985 in posix_memalign asan_malloc_linux.cc:142
    #1 0x7f1fe7bd7d28 in AcquireSemaphoreMemory semaphore.c:154:7
    #2 0x7f1fe7bd759c in AcquireSemaphoreInfo semaphore.c:200:36
    #3 0x7f1fe7a4b815 in AcquireImage image.c:213:20
    #4 0x7f1fe8032514 in ReadTTFImage ttf.c:214:9
    #5 0x7f1fe78797e8 in ReadImage constitute.c:497:13
    #6 0x7f1fe787d104 in ReadImages constitute.c:866:9
    #7 0x7f1fe6e98f14 in ConvertImageCommand convert.c:641:18
    #8 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #9 0x5149a7 in MagickMain magick.c:149:10
    #10 0x514401 in main magick.c:180:10
    #11 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 64 byte(s) in 1 object(s) allocated from:
    #0 0x4df985 in posix_memalign asan_malloc_linux.cc:142
    #1 0x7f1fe7bd7d28 in AcquireSemaphoreMemory semaphore.c:154:7
    #2 0x7f1fe7bd759c in AcquireSemaphoreInfo semaphore.c:200:36
    #3 0x7f1fe77db5f7 in GetBlobInfo blob.c:1414:24
    #4 0x7f1fe77da8ec in CloneBlobInfo blob.c:507:3
    #5 0x7f1fe7a4b6b1 in AcquireImage image.c:209:15
    #6 0x7f1fe8032514 in ReadTTFImage ttf.c:214:9
    #7 0x7f1fe78797e8 in ReadImage constitute.c:497:13
    #8 0x7f1fe787d104 in ReadImages constitute.c:866:9
    #9 0x7f1fe6e98f14 in ConvertImageCommand convert.c:641:18
    #10 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #11 0x5149a7 in MagickMain magick.c:149:10
    #12 0x514401 in main magick.c:180:10
    #13 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 64 byte(s) in 1 object(s) allocated from:
    #0 0x4df985 in posix_memalign asan_malloc_linux.cc:142
    #1 0x7f1fe7bd7d28 in AcquireSemaphoreMemory semaphore.c:154:7
    #2 0x7f1fe7bd759c in AcquireSemaphoreInfo semaphore.c:200:36
    #3 0x7f1fe77fbe02 in AcquirePixelCache cache.c:228:30
    #4 0x7f1fe7a4b59d in AcquireImage image.c:206:16
    #5 0x7f1fe8032514 in ReadTTFImage ttf.c:214:9
    #6 0x7f1fe78797e8 in ReadImage constitute.c:497:13
    #7 0x7f1fe787d104 in ReadImages constitute.c:866:9
    #8 0x7f1fe6e98f14 in ConvertImageCommand convert.c:641:18
    #9 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #10 0x5149a7 in MagickMain magick.c:149:10
    #11 0x514401 in main magick.c:180:10
    #12 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 64 byte(s) in 1 object(s) allocated from:
    #0 0x4df985 in posix_memalign asan_malloc_linux.cc:142
    #1 0x7f1fe7bd7d28 in AcquireSemaphoreMemory semaphore.c:154:7
    #2 0x7f1fe7bd759c in AcquireSemaphoreInfo semaphore.c:200:36
    #3 0x7f1fe77fbd73 in AcquirePixelCache cache.c:226:25
    #4 0x7f1fe7a4b59d in AcquireImage image.c:206:16
    #5 0x7f1fe8032514 in ReadTTFImage ttf.c:214:9
    #6 0x7f1fe78797e8 in ReadImage constitute.c:497:13
    #7 0x7f1fe787d104 in ReadImages constitute.c:866:9
    #8 0x7f1fe6e98f14 in ConvertImageCommand convert.c:641:18
    #9 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #10 0x5149a7 in MagickMain magick.c:149:10
    #11 0x514401 in main magick.c:180:10
    #12 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 64 byte(s) in 1 object(s) allocated from:
    #0 0x4df985 in posix_memalign asan_malloc_linux.cc:142
    #1 0x7f1fe7a9ecb2 in AcquireAlignedMemory memory.c:262:7
    #2 0x7f1fe77fbf5e in AcquirePixelCacheNexus cache.c:264:29
    #3 0x7f1fe77fbab4 in AcquirePixelCache cache.c:211:26
    #4 0x7f1fe7a4b59d in AcquireImage image.c:206:16
    #5 0x7f1fe8032514 in ReadTTFImage ttf.c:214:9
    #6 0x7f1fe78797e8 in ReadImage constitute.c:497:13
    #7 0x7f1fe787d104 in ReadImages constitute.c:866:9
    #8 0x7f1fe6e98f14 in ConvertImageCommand convert.c:641:18
    #9 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #10 0x5149a7 in MagickMain magick.c:149:10
    #11 0x514401 in main magick.c:180:10
    #12 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 64 byte(s) in 1 object(s) allocated from:
    #0 0x4df985 in posix_memalign asan_malloc_linux.cc:142
    #1 0x7f1fe7bd7d28 in AcquireSemaphoreMemory semaphore.c:154:7
    #2 0x7f1fe7bd759c in AcquireSemaphoreInfo semaphore.c:200:36
    #3 0x7f1fe7a52846 in CloneImage image.c:878:26
    #4 0x7f1fe7ec65cb in MSLPushImage msl.c:579:29
    #5 0x7f1fe7ec4f27 in ProcessMSLScript msl.c:7767:5
    #6 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #7 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #8 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #9 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #10 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #11 0x5149a7 in MagickMain magick.c:149:10
    #12 0x514401 in main magick.c:180:10
    #13 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 64 byte(s) in 1 object(s) allocated from:
    #0 0x4df985 in posix_memalign asan_malloc_linux.cc:142
    #1 0x7f1fe7bd7d28 in AcquireSemaphoreMemory semaphore.c:154:7
    #2 0x7f1fe7bd759c in AcquireSemaphoreInfo semaphore.c:200:36
    #3 0x7f1fe77db5f7 in GetBlobInfo blob.c:1414:24
    #4 0x7f1fe77da8ec in CloneBlobInfo blob.c:507:3
    #5 0x7f1fe7a526af in CloneImage image.c:874:25
    #6 0x7f1fe7ec65cb in MSLPushImage msl.c:579:29
    #7 0x7f1fe7ec4f27 in ProcessMSLScript msl.c:7767:5
    #8 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #9 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #10 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #11 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #12 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #13 0x5149a7 in MagickMain magick.c:149:10
    #14 0x514401 in main magick.c:180:10
    #15 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 64 byte(s) in 1 object(s) allocated from:
    #0 0x4df985 in posix_memalign asan_malloc_linux.cc:142
    #1 0x7f1fe7bd7d28 in AcquireSemaphoreMemory semaphore.c:154:7
    #2 0x7f1fe7bd759c in AcquireSemaphoreInfo semaphore.c:200:36
    #3 0x7f1fe7beddc6 in NewSplayTree splay-tree.c:1119:25
    #4 0x7f1fe7bed674 in CloneSplayTree splay-tree.c:359:14
    #5 0x7f1fe77d0721 in CloneImageArtifacts artifact.c:118:24
    #6 0x7f1fe7a51e99 in CloneImage image.c:848:10
    #7 0x7f1fe7ec65cb in MSLPushImage msl.c:579:29
    #8 0x7f1fe7ec4f27 in ProcessMSLScript msl.c:7767:5
    #9 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #10 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #11 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #12 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #13 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #14 0x5149a7 in MagickMain magick.c:149:10
    #15 0x514401 in main magick.c:180:10
    #16 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 64 byte(s) in 1 object(s) allocated from:
    #0 0x4df985 in posix_memalign asan_malloc_linux.cc:142
    #1 0x7f1fe7bd7d28 in AcquireSemaphoreMemory semaphore.c:154:7
    #2 0x7f1fe7bd759c in AcquireSemaphoreInfo semaphore.c:200:36
    #3 0x7f1fe7beddc6 in NewSplayTree splay-tree.c:1119:25
    #4 0x7f1fe7bed674 in CloneSplayTree splay-tree.c:359:14
    #5 0x7f1fe7b29fdc in CloneImageProperties property.c:196:25
    #6 0x7f1fe7a51e86 in CloneImage image.c:847:10
    #7 0x7f1fe7ec65cb in MSLPushImage msl.c:579:29
    #8 0x7f1fe7ec4f27 in ProcessMSLScript msl.c:7767:5
    #9 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #10 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #11 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #12 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #13 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #14 0x5149a7 in MagickMain magick.c:149:10
    #15 0x514401 in main magick.c:180:10
    #16 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 64 byte(s) in 1 object(s) allocated from:
    #0 0x4df985 in posix_memalign asan_malloc_linux.cc:142
    #1 0x7f1fe7bd7d28 in AcquireSemaphoreMemory semaphore.c:154:7
    #2 0x7f1fe7bd759c in AcquireSemaphoreInfo semaphore.c:200:36
    #3 0x7f1fe7a4b815 in AcquireImage image.c:213:20
    #4 0x7f1fe7ec4d36 in ProcessMSLScript msl.c:7762:24
    #5 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #6 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #7 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #8 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #9 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #10 0x5149a7 in MagickMain magick.c:149:10
    #11 0x514401 in main magick.c:180:10
    #12 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 64 byte(s) in 1 object(s) allocated from:
    #0 0x4df985 in posix_memalign asan_malloc_linux.cc:142
    #1 0x7f1fe7bd7d28 in AcquireSemaphoreMemory semaphore.c:154:7
    #2 0x7f1fe7bd759c in AcquireSemaphoreInfo semaphore.c:200:36
    #3 0x7f1fe77db5f7 in GetBlobInfo blob.c:1414:24
    #4 0x7f1fe77da8ec in CloneBlobInfo blob.c:507:3
    #5 0x7f1fe7a4b6b1 in AcquireImage image.c:209:15
    #6 0x7f1fe7ec4d36 in ProcessMSLScript msl.c:7762:24
    #7 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #8 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #9 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #10 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #11 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #12 0x5149a7 in MagickMain magick.c:149:10
    #13 0x514401 in main magick.c:180:10
    #14 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 64 byte(s) in 1 object(s) allocated from:
    #0 0x4df985 in posix_memalign asan_malloc_linux.cc:142
    #1 0x7f1fe7bd7d28 in AcquireSemaphoreMemory semaphore.c:154:7
    #2 0x7f1fe7bd759c in AcquireSemaphoreInfo semaphore.c:200:36
    #3 0x7f1fe77fbe02 in AcquirePixelCache cache.c:228:30
    #4 0x7f1fe7a4b59d in AcquireImage image.c:206:16
    #5 0x7f1fe7ec4d36 in ProcessMSLScript msl.c:7762:24
    #6 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #7 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #8 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #9 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #10 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #11 0x5149a7 in MagickMain magick.c:149:10
    #12 0x514401 in main magick.c:180:10
    #13 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 64 byte(s) in 1 object(s) allocated from:
    #0 0x4df985 in posix_memalign asan_malloc_linux.cc:142
    #1 0x7f1fe7bd7d28 in AcquireSemaphoreMemory semaphore.c:154:7
    #2 0x7f1fe7bd759c in AcquireSemaphoreInfo semaphore.c:200:36
    #3 0x7f1fe77fbd73 in AcquirePixelCache cache.c:226:25
    #4 0x7f1fe7a4b59d in AcquireImage image.c:206:16
    #5 0x7f1fe7ec4d36 in ProcessMSLScript msl.c:7762:24
    #6 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #7 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #8 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #9 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #10 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #11 0x5149a7 in MagickMain magick.c:149:10
    #12 0x514401 in main magick.c:180:10
    #13 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 64 byte(s) in 1 object(s) allocated from:
    #0 0x4df985 in posix_memalign asan_malloc_linux.cc:142
    #1 0x7f1fe7a9ecb2 in AcquireAlignedMemory memory.c:262:7
    #2 0x7f1fe77fbf5e in AcquirePixelCacheNexus cache.c:264:29
    #3 0x7f1fe77fbab4 in AcquirePixelCache cache.c:211:26
    #4 0x7f1fe7a4b59d in AcquireImage image.c:206:16
    #5 0x7f1fe7ec4d36 in ProcessMSLScript msl.c:7762:24
    #6 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #7 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #8 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #9 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #10 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #11 0x5149a7 in MagickMain magick.c:149:10
    #12 0x514401 in main magick.c:180:10
    #13 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 64 byte(s) in 1 object(s) allocated from:
    #0 0x4df985 in posix_memalign asan_malloc_linux.cc:142
    #1 0x7f1fe7bd7d28 in AcquireSemaphoreMemory semaphore.c:154:7
    #2 0x7f1fe7bd759c in AcquireSemaphoreInfo semaphore.c:200:36
    #3 0x7f1fe7a4b815 in AcquireImage image.c:213:20
    #4 0x7f1fe7ec462c in ProcessMSLScript msl.c:7729:13
    #5 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #6 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #7 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #8 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #9 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #10 0x5149a7 in MagickMain magick.c:149:10
    #11 0x514401 in main magick.c:180:10
    #12 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 64 byte(s) in 2 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe7bec9d0 in AddValueToSplayTree splay-tree.c:188:21
    #3 0x7f1fe7bed87c in CloneSplayTree splay-tree.c:371:12
    #4 0x7f1fe7b29fdc in CloneImageProperties property.c:196:25
    #5 0x7f1fe7a51e86 in CloneImage image.c:847:10
    #6 0x7f1fe7ec65cb in MSLPushImage msl.c:579:29
    #7 0x7f1fe7ec4f27 in ProcessMSLScript msl.c:7767:5
    #8 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #9 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #10 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #11 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #12 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #13 0x5149a7 in MagickMain magick.c:149:10
    #14 0x514401 in main magick.c:180:10
    #15 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 64 byte(s) in 1 object(s) allocated from:
    #0 0x4df985 in posix_memalign asan_malloc_linux.cc:142
    #1 0x7f1fe7bd7d28 in AcquireSemaphoreMemory semaphore.c:154:7
    #2 0x7f1fe7bd759c in AcquireSemaphoreInfo semaphore.c:200:36
    #3 0x7f1fe77db5f7 in GetBlobInfo blob.c:1414:24
    #4 0x7f1fe77da8ec in CloneBlobInfo blob.c:507:3
    #5 0x7f1fe7a4b6b1 in AcquireImage image.c:209:15
    #6 0x7f1fe7ec462c in ProcessMSLScript msl.c:7729:13
    #7 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #8 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #9 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #10 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #11 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #12 0x5149a7 in MagickMain magick.c:149:10
    #13 0x514401 in main magick.c:180:10
    #14 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 64 byte(s) in 1 object(s) allocated from:
    #0 0x4df985 in posix_memalign asan_malloc_linux.cc:142
    #1 0x7f1fe7bd7d28 in AcquireSemaphoreMemory semaphore.c:154:7
    #2 0x7f1fe7bd759c in AcquireSemaphoreInfo semaphore.c:200:36
    #3 0x7f1fe77fbe02 in AcquirePixelCache cache.c:228:30
    #4 0x7f1fe7a4b59d in AcquireImage image.c:206:16
    #5 0x7f1fe7ec462c in ProcessMSLScript msl.c:7729:13
    #6 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #7 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #8 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #9 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #10 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #11 0x5149a7 in MagickMain magick.c:149:10
    #12 0x514401 in main magick.c:180:10
    #13 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 64 byte(s) in 1 object(s) allocated from:
    #0 0x4df985 in posix_memalign asan_malloc_linux.cc:142
    #1 0x7f1fe7bd7d28 in AcquireSemaphoreMemory semaphore.c:154:7
    #2 0x7f1fe7bd759c in AcquireSemaphoreInfo semaphore.c:200:36
    #3 0x7f1fe77fbd73 in AcquirePixelCache cache.c:226:25
    #4 0x7f1fe7a4b59d in AcquireImage image.c:206:16
    #5 0x7f1fe7ec462c in ProcessMSLScript msl.c:7729:13
    #6 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #7 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #8 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #9 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #10 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #11 0x5149a7 in MagickMain magick.c:149:10
    #12 0x514401 in main magick.c:180:10
    #13 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 64 byte(s) in 1 object(s) allocated from:
    #0 0x4df985 in posix_memalign asan_malloc_linux.cc:142
    #1 0x7f1fe7a9ecb2 in AcquireAlignedMemory memory.c:262:7
    #2 0x7f1fe77fbf5e in AcquirePixelCacheNexus cache.c:264:29
    #3 0x7f1fe77fbab4 in AcquirePixelCache cache.c:211:26
    #4 0x7f1fe7a4b59d in AcquireImage image.c:206:16
    #5 0x7f1fe7ec462c in ProcessMSLScript msl.c:7729:13
    #6 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #7 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #8 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #9 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #10 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #11 0x5149a7 in MagickMain magick.c:149:10
    #12 0x514401 in main magick.c:180:10
    #13 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 64 byte(s) in 1 object(s) allocated from:
    #0 0x4df985 in posix_memalign asan_malloc_linux.cc:142
    #1 0x7f1fe7bd7d28 in AcquireSemaphoreMemory semaphore.c:154:7
    #2 0x7f1fe7bd759c in AcquireSemaphoreInfo semaphore.c:200:36
    #3 0x7f1fe7beddc6 in NewSplayTree splay-tree.c:1119:25
    #4 0x7f1fe7b2a95a in SetImageProperty property.c:4022:23
    #5 0x7f1fe787c003 in ReadImage constitute.c:735:12
    #6 0x7f1fe787d104 in ReadImages constitute.c:866:9
    #7 0x7f1fe6e98f14 in ConvertImageCommand convert.c:641:18
    #8 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #9 0x5149a7 in MagickMain magick.c:149:10
    #10 0x514401 in main magick.c:180:10
    #11 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 64 byte(s) in 1 object(s) allocated from:
    #0 0x4df985 in posix_memalign asan_malloc_linux.cc:142
    #1 0x7f1fe7bd7d28 in AcquireSemaphoreMemory semaphore.c:154:7
    #2 0x7f1fe7bd759c in AcquireSemaphoreInfo semaphore.c:200:36
    #3 0x7f1fe7beddc6 in NewSplayTree splay-tree.c:1119:25
    #4 0x7f1fe77d0efd in SetImageArtifact artifact.c:463:22
    #5 0x7f1fe795bdc0 in DrawImage draw.c:1760:10
    #6 0x7f1fe8032e2b in ReadTTFImage ttf.c:287:10
    #7 0x7f1fe78797e8 in ReadImage constitute.c:497:13
    #8 0x7f1fe787d104 in ReadImages constitute.c:866:9
    #9 0x7f1fe6e98f14 in ConvertImageCommand convert.c:641:18
    #10 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #11 0x5149a7 in MagickMain magick.c:149:10
    #12 0x514401 in main magick.c:180:10
    #13 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 52 byte(s) in 2 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe7a9eed8 in AcquireQuantumMemory memory.c:537:10
    #3 0x7f1fe7c23193 in ConstantString string.c:701:26
    #4 0x7f1fe7bed866 in CloneSplayTree splay-tree.c:372:7
    #5 0x7f1fe7b29fdc in CloneImageProperties property.c:196:25
    #6 0x7f1fe7a51e86 in CloneImage image.c:847:10
    #7 0x7f1fe7ec65cb in MSLPushImage msl.c:579:29
    #8 0x7f1fe7ec4f27 in ProcessMSLScript msl.c:7767:5
    #9 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #10 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #11 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #12 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #13 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #14 0x5149a7 in MagickMain magick.c:149:10
    #15 0x514401 in main magick.c:180:10
    #16 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 32 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe7bec9d0 in AddValueToSplayTree splay-tree.c:188:21
    #3 0x7f1fe7b2c403 in SetImageProperty property.c:4462:10
    #4 0x7f1fe787c003 in ReadImage constitute.c:735:12
    #5 0x7f1fe787d104 in ReadImages constitute.c:866:9
    #6 0x7f1fe6e98f14 in ConvertImageCommand convert.c:641:18
    #7 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #8 0x5149a7 in MagickMain magick.c:149:10
    #9 0x514401 in main magick.c:180:10
    #10 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 32 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe7bec9d0 in AddValueToSplayTree splay-tree.c:188:21
    #3 0x7f1fe77d0fb4 in SetImageArtifact artifact.c:473:10
    #4 0x7f1fe795bdc0 in DrawImage draw.c:1760:10
    #5 0x7f1fe8032e2b in ReadTTFImage ttf.c:287:10
    #6 0x7f1fe78797e8 in ReadImage constitute.c:497:13
    #7 0x7f1fe787d104 in ReadImages constitute.c:866:9
    #8 0x7f1fe6e98f14 in ConvertImageCommand convert.c:641:18
    #9 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #10 0x5149a7 in MagickMain magick.c:149:10
    #11 0x514401 in main magick.c:180:10
    #12 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 32 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe7bec9d0 in AddValueToSplayTree splay-tree.c:188:21
    #3 0x7f1fe7bed87c in CloneSplayTree splay-tree.c:371:12
    #4 0x7f1fe77d0721 in CloneImageArtifacts artifact.c:118:24
    #5 0x7f1fe7a51e99 in CloneImage image.c:848:10
    #6 0x7f1fe7ec65cb in MSLPushImage msl.c:579:29
    #7 0x7f1fe7ec4f27 in ProcessMSLScript msl.c:7767:5
    #8 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #9 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #10 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #11 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #12 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #13 0x5149a7 in MagickMain magick.c:149:10
    #14 0x514401 in main magick.c:180:10
    #15 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 32 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe7bec9d0 in AddValueToSplayTree splay-tree.c:188:21
    #3 0x7f1fe7b2c403 in SetImageProperty property.c:4462:10
    #4 0x7f1fe787c0d3 in ReadImage constitute.c:738:12
    #5 0x7f1fe787d104 in ReadImages constitute.c:866:9
    #6 0x7f1fe6e98f14 in ConvertImageCommand convert.c:641:18
    #7 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #8 0x5149a7 in MagickMain magick.c:149:10
    #9 0x514401 in main magick.c:180:10
    #10 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 26 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe7a9eed8 in AcquireQuantumMemory memory.c:537:10
    #3 0x7f1fe7c23193 in ConstantString string.c:701:26
    #4 0x7f1fe7b2c3f3 in SetImageProperty property.c:4463:30
    #5 0x7f1fe787c0d3 in ReadImage constitute.c:738:12
    #6 0x7f1fe787d104 in ReadImages constitute.c:866:9
    #7 0x7f1fe6e98f14 in ConvertImageCommand convert.c:641:18
    #8 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #9 0x5149a7 in MagickMain magick.c:149:10
    #10 0x514401 in main magick.c:180:10
    #11 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 26 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe7a9eed8 in AcquireQuantumMemory memory.c:537:10
    #3 0x7f1fe7c23193 in ConstantString string.c:701:26
    #4 0x7f1fe7b2c3f3 in SetImageProperty property.c:4463:30
    #5 0x7f1fe787c003 in ReadImage constitute.c:735:12
    #6 0x7f1fe787d104 in ReadImages constitute.c:866:9
    #7 0x7f1fe6e98f14 in ConvertImageCommand convert.c:641:18
    #8 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #9 0x5149a7 in MagickMain magick.c:149:10
    #10 0x514401 in main magick.c:180:10
    #11 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 24 byte(s) in 2 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe7a9eed8 in AcquireQuantumMemory memory.c:537:10
    #3 0x7f1fe7c23193 in ConstantString string.c:701:26
    #4 0x7f1fe7bed7e1 in CloneSplayTree splay-tree.c:371:43
    #5 0x7f1fe7b29fdc in CloneImageProperties property.c:196:25
    #6 0x7f1fe7a51e86 in CloneImage image.c:847:10
    #7 0x7f1fe7ec65cb in MSLPushImage msl.c:579:29
    #8 0x7f1fe7ec4f27 in ProcessMSLScript msl.c:7767:5
    #9 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #10 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #11 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #12 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #13 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #14 0x5149a7 in MagickMain magick.c:149:10
    #15 0x514401 in main magick.c:180:10
    #16 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 12 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe7a9eed8 in AcquireQuantumMemory memory.c:537:10
    #3 0x7f1fe7c23193 in ConstantString string.c:701:26
    #4 0x7f1fe7b2c3e3 in SetImageProperty property.c:4463:5
    #5 0x7f1fe787c003 in ReadImage constitute.c:735:12
    #6 0x7f1fe787d104 in ReadImages constitute.c:866:9
    #7 0x7f1fe6e98f14 in ConvertImageCommand convert.c:641:18
    #8 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #9 0x5149a7 in MagickMain magick.c:149:10
    #10 0x514401 in main magick.c:180:10
    #11 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 12 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe7a9eed8 in AcquireQuantumMemory memory.c:537:10
    #3 0x7f1fe7c23193 in ConstantString string.c:701:26
    #4 0x7f1fe7b2c3e3 in SetImageProperty property.c:4463:5
    #5 0x7f1fe787c0d3 in ReadImage constitute.c:738:12
    #6 0x7f1fe787d104 in ReadImages constitute.c:866:9
    #7 0x7f1fe6e98f14 in ConvertImageCommand convert.c:641:18
    #8 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #9 0x5149a7 in MagickMain magick.c:149:10
    #10 0x514401 in main magick.c:180:10
    #11 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 4 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe7a9eed8 in AcquireQuantumMemory memory.c:537:10
    #3 0x7f1fe7c23193 in ConstantString string.c:701:26
    #4 0x7f1fe7bed7e1 in CloneSplayTree splay-tree.c:371:43
    #5 0x7f1fe77d0721 in CloneImageArtifacts artifact.c:118:24
    #6 0x7f1fe7a51e99 in CloneImage image.c:848:10
    #7 0x7f1fe7ec65cb in MSLPushImage msl.c:579:29
    #8 0x7f1fe7ec4f27 in ProcessMSLScript msl.c:7767:5
    #9 0x7f1fe7ec4291 in WriteMSLImage msl.c:8240:10
    #10 0x7f1fe787eb5d in WriteImage constitute.c:1183:22
    #11 0x7f1fe787f46d in WriteImages constitute.c:1333:13
    #12 0x7f1fe6f2d870 in ConvertImageCommand convert.c:3280:11
    #13 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #14 0x5149a7 in MagickMain magick.c:149:10
    #15 0x514401 in main magick.c:180:10
    #16 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

Indirect leak of 4 byte(s) in 1 object(s) allocated from:
    #0 0x4dee26 in __interceptor_malloc asan_malloc_linux.cc:66
    #1 0x7f1fe7a9ee76 in AcquireMagickMemory memory.c:464:10
    #2 0x7f1fe7a9eed8 in AcquireQuantumMemory memory.c:537:10
    #3 0x7f1fe7c23193 in ConstantString string.c:701:26
    #4 0x7f1fe77d0f97 in SetImageArtifact artifact.c:474:5
    #5 0x7f1fe795bdc0 in DrawImage draw.c:1760:10
    #6 0x7f1fe8032e2b in ReadTTFImage ttf.c:287:10
    #7 0x7f1fe78797e8 in ReadImage constitute.c:497:13
    #8 0x7f1fe787d104 in ReadImages constitute.c:866:9
    #9 0x7f1fe6e98f14 in ConvertImageCommand convert.c:641:18
    #10 0x7f1fe707c03f in MagickCommandGenesis mogrify.c:183:14
    #11 0x5149a7 in MagickMain magick.c:149:10
    #12 0x514401 in main magick.c:180:10
    #13 0x7f1fe2d32f44 in __libc_start_main libc-start.c:287

SUMMARY: AddressSanitizer: 4782807 byte(s) leaked in 156 allocation(s).
```

POC: https://github.com/jgj212/poc/blob/master/leak-WriteMSLImage

Credit : ADLab of Venustech



Comments:
Comment by mikayla-grace on 2017-07-18 17:51:56+00:00:
Thanks for the problem report.  We can reproduce it and will have a patch to fix it in GIT master branch @ https://github.com/ImageMagick/ImageMagick later today.  The patch will be available in the beta releases of ImageMagick @ http://www.imagemagick.org/download/beta/ by sometime tomorrow. 


---

Comment by fgeek on 2017-09-07 08:24:19+00:00:
Please use CVE-2017-14139 for this issue.

---

Comment by YahuGao on 2017-10-12 11:07:42+00:00:
Hi， I can't reproduce the problem before apply related patch. May I ask you introduce your configure options while build this project?

Build script:
#!/bin/bash -eu
# Minimized build script with only core build commands
set -eu
./configure --prefix="$WORK" --disable-shared --disable-docs
make "-j$(nproc)"
make install -j$(nproc)

Dockerfile:
FROM hwiwonlee/secb.base:latest
RUN apt-get update && apt-get install -y make autoconf automake libtool
RUN git clone https://github.com/imagemagick/imagemagick imagemagick
RUN git -C imagemagick checkout bbd2d43ed43631c37c0301ecc82479190cae611b
WORKDIR $SRC/imagemagick
COPY build.sh $SRC/

Additional files:
filename: crop_fuzzer.cc
content: #include <cstdint>

#include <Magick++/Blob.h>
#include <Magick++/Image.h>

extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
  uint16_t Width;
  uint16_t Height;
  if (Size < (sizeof(Width) + sizeof(Height))) {
    return 0;
  }
  Width = *reinterpret_cast<const uint16_t *>(Data);
  Height = *reinterpret_cast<const uint16_t *>(Data + sizeof(Width));
  const Magick::Blob blob(Data + sizeof(Width) + sizeof(Height),
                          Size - (sizeof(Width) + sizeof(Height)));
  Magick::Image image;
  try {
    image.read(blob);
  } catch (Magick::Exception &e) {
    return 0;
  }
  image.crop(Magick::Geometry(Width, Height));
  return 0;
}

filename: encoder_fuzzer.cc
content: #include <cstdint>

#include <Magick++/Blob.h>
#include <Magick++/Image.h>

#define FUZZ_ENCODER_STRING_LITERAL(name) #name
#define FUZZ_ENCODER FUZZ_ENCODER_STRING_LITERAL(FUZZ_IMAGEMAGICK_ENCODER)

extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
  const Magick::Blob blob(Data, Size);
  Magick::Image image;
  try {
    image.read(blob);
  } catch (Magick::Exception &e) {
    return 0;
  }

  Magick::Blob outBlob;
  try {
    image.write(&outBlob, FUZZ_ENCODER);
  } catch (Magick::Exception &e) {
  }
  return 0;
}

filename: encoder_list.cc
content: #include <iostream>

#include <Magick++/Blob.h>
#include <Magick++/Image.h>

extern "C" int main() {
  size_t nFormats;
  Magick::ExceptionInfo ex;
  const Magick::MagickInfo **formats = GetMagickInfoList("*", &nFormats, &ex);

  for (size_t i = 0; i < nFormats; i++) {
    const Magick::MagickInfo *format = formats[i];
    if (format->encoder && format->name) {
      std::cout << format->name << std::endl;
    }
  }
}

filename: enhance_fuzzer.cc
content: #include <cstdint>

#include <Magick++/Blob.h>
#include <Magick++/Image.h>

extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
  const Magick::Blob blob(Data, Size);
  Magick::Image image;
  try {
    image.read(blob);
    image.enhance();
  } catch (Magick::Exception &e) {
    return 0;
  }
  return 0;
}

filename: huffman_decode_fuzzer.cc
content: #include <cstdint>

#include <Magick++/Blob.h>
#include <Magick++/Image.h>

extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
  const Magick::Blob blob(Data, Size);
  Magick::Image image;
  try {
    image.read(blob);
  } catch (Magick::Exception &e) {
    return 0;
  }
  Magick::ExceptionInfo ex;
  auto res = HuffmanDecodeImage(image.image(), &ex);
  return 0;
}

filename: rotate_fuzzer.cc
content: #include <cstdint>

#include <Magick++/Blob.h>
#include <Magick++/Image.h>

extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
  if (Size < sizeof(double)) {
    return 0;
  }
  double Degrees = *reinterpret_cast<const double *>(Data);
  if (!isfinite(Degrees)) {
    return 0;
  }
  const Magick::Blob blob(Data + sizeof(Degrees), Size - sizeof(Degrees));
  Magick::Image image;
  try {
    image.read(blob);
  } catch (Magick::Exception &e) {
    return 0;
  }
  image.rotate(Degrees);
  return 0;
}