Skip to content

memory leak in svg #427

Closed
Closed
@bestshow

Description

@bestshow

on ImageMagick latest version

#identify $FILE

Direct leak of 384 byte(s) in 1 object(s) allocated from:
#0 0x7f6a59533b58 in __interceptor_malloc ../../../../libsanitizer/asan/asan_malloc_linux.cc:62
#1 0x43ecdb in AcquireMagickMemory MagickCore/memory.c:463
#2 0x69f9da in AcquireSVGInfo coders/svg.c:265
#3 0x6ae6ca in ReadSVGImage coders/svg.c:3180
#4 0x7f23d8 in ReadImage MagickCore/constitute.c:497
#5 0x9e4e89 in ReadStream MagickCore/stream.c:1045
#6 0x7f1486 in PingImage MagickCore/constitute.c:226
#7 0x7f1a39 in PingImages MagickCore/constitute.c:327
#8 0xbba496 in IdentifyImageCommand MagickWand/identify.c:319
#9 0xc10fea in MagickCommandGenesis MagickWand/mogrify.c:183
#10 0x40f839 in MagickMain utilities/magick.c:149
#11 0x40fa06 in main utilities/magick.c:180
#12 0x7f6a54842b34 in __libc_start_main (/lib64/libc.so.6+0x21b34)

384 byte(s) leaked in 1 allocation(s).

testcase:
https://github.com/bestshow/p0cs/blob/master/memory-leak-in-svg.svg

Author: ADLab of Venustech

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions