Skip to content

[oss-fuzz 42503021] Direct-leak in ReadKukiChunk (caf.c)

Ref: https://issues.oss-fuzz.com/issues/42503021

xeon ~/work/git/vlc/build-asan $ ./test/vlc-demux-dec-run /home/tom/Downloads/clusterfuzz-*
=================================================================
==3263068==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 1 byte(s) in 1 object(s) allocated from:
    #0 0x7ff6f86f4c77 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x7ff6f55c8515 in ReadKukiChunk ../../modules/demux/caf.c:722
    #2 0x7ff6f55c8c9e in Open ../../modules/demux/caf.c:865
    #3 0x7ff6f8118aec in demux_Probe ../../src/input/demux.c:112
    #4 0x7ff6f80d7531 in vlc_module_load ../../src/modules/modules.c:230
    #5 0x7ff6f811989b in demux_NewAdvanced ../../src/input/demux.c:196
    #6 0x7ff6f8119baa in demux_New ../../src/input/demux.c:77
    #7 0x55924d7052fb in demux_process_stream ../../test/src/input/demux-run.c:294
    #8 0x55924d705668 in vlc_demux_process_url ../../test/src/input/demux-run.c:348
    #9 0x55924d705707 in vlc_demux_process_path ../../test/src/input/demux-run.c:362
    #10 0x55924d704559 in main ../../test/vlc-demux-run.c:50
    #11 0x7ff6f7e33d67 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58

SUMMARY: AddressSanitizer: 1 byte(s) leaked in 1 allocation(s).
xeon ~/work/git/vlc/build-asan $ 

Sample: clusterfuzz-testcase-minimized-vlc-demux-libfuzzer-5846077375381504

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information