这是indexloc提供的服务,不要输入任何密码
Menu

#162 detected memory leaks in GifMakeSavedImage giflib/gifalloc.c

v1.0_(example)
open
nobody
None
1
2023-03-20
2023-03-20
No

detected memory leaks in GifMakeSavedImage 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:

==3368527==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 56 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 0x50ec05 in GifMakeSavedImage giflib/gifalloc.c:329:46
#2 0x4f70e0 in main giflib/gifsponge.c:68:9
#3 0x7f37afc4d082 in __libc_start_main /build/glibc-SzIz7B/glibc-2.31/csu/../csu/libc-start.c:308:16
Indirect 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 0x50eff7 in GifMakeSavedImage giflib/gifalloc.c:353:42
#3 0x4f70e0 in main giflib/gifsponge.c:68:9
#4 0x7f37afc4d082 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 0x50eff7 in GifMakeSavedImage giflib/gifalloc.c:353:42
#3 0x4f70e0 in main giflib/gifsponge.c:68:9
#4 0x7f37afc4d082 in __libc_start_main /build/glibc-SzIz7B/glibc-2.31/csu/../csu/libc-start.c:308:16
Indirect leak of 3 byte(s) in 1 object(s) allocated from:
#0 0x4c17a8 in realloc /home/chaitra/aflgo-top/build/llvm_tools/llvm-11.0.0.src/projects/compiler-rt/lib/asan/asan_malloc_linux.cpp:164:3
#1 0x50fd94 in openbsd_reallocarray giflib/openbsd-reallocarray.c:73:9
#2 0x50f18e in GifMakeSavedImage giflib/gifalloc.c:363:47
#3 0x4f70e0 in main giflib/gifsponge.c:68:9
#4 0x7f37afc4d082 in __libc_start_main /build/glibc-SzIz7B/glibc-2.31/csu/../csu/libc-start.c:308:16
SUMMARY: AddressSanitizer: 89 byte(s) leaked in 4 allocation(s).
1 Attachments

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.