Menu ▾ ▴

#164 detected memory leaks in GifMakeMapObject giflib/gifalloc.c

v1.0_(example)
closed
nobody
None
1
2024-02-18
2023-03-20
No

detected memory leaks in GifMakeMapObject giflib/gifalloc.c

Built from git commit hash adf5a1a
OS: Ubuntu 20.04
Compiler: clang version 11.0

Build options:

  • Shared library disabled
    CC=clang
    CXX=clang++
    CFLAGS="-g -fno-inline -fsanitize=address"
    CXXFLAGS="-g -fno-inline -fsanitize=address"
    LDFLAGS="$LDFLAGS -fsanitize=address"
    ASAN_OPTIONS=abort_on_error=1

Command: ./gifsponge < pov

POV file: attached as pov.zip

Stack trace:

==3368608==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 24 byte(s) in 1 object(s) allocated from:
#0 0x4c142f in malloc /home/chaitra/aflgo-top/build/llvm_tools/llvm-11.0.0.src/projects/compiler-rt/lib/asan/asan_malloc_linux.cpp:145:3
#1 0x50ce51 in GifMakeMapObject giflib/gifalloc.c:53:32
#2 0x506120 in EGifPutImageDesc giflib/egif_lib.c:399:32
#3 0x50b853 in EGifSpew giflib/egif_lib.c:1117:13
#4 0x4f7100 in main giflib/gifsponge.c:78:9
#5 0x7f65baf6d082 in __libc_start_main /build/glibc-SzIz7B/glibc-2.31/csu/../csu/libc-start.c:308:16
Indirect leak of 6 byte(s) in 1 object(s) allocated from:
#0 0x4c15e7 in calloc /home/chaitra/aflgo-top/build/llvm_tools/llvm-11.0.0.src/projects/compiler-rt/lib/asan/asan_malloc_linux.cpp:154:3
#1 0x50ce82 in GifMakeMapObject giflib/gifalloc.c:58:38
#2 0x506120 in EGifPutImageDesc giflib/egif_lib.c:399:32
#3 0x50b853 in EGifSpew giflib/egif_lib.c:1117:13
#4 0x4f7100 in main giflib/gifsponge.c:78:9
#5 0x7f65baf6d082 in __libc_start_main /build/glibc-SzIz7B/glibc-2.31/csu/../csu/libc-start.c:308:16
SUMMARY: AddressSanitizer: 30 byte(s) leaked in 2 allocation(s).
1 Attachments

Discussion

  • Eric S. Raymond

    Eric S. Raymond - 2024-02-18

    Thanks, this prroblem has been fixed - see issue #165,

     
  • Eric S. Raymond

    Eric S. Raymond - 2024-02-18
    • status: open --> closed
     

Log in to post a comment.