[oss-fuzz 6469070216298496] leak in packetizer/vc1
Ref:
xeon ~/work/git/vlc/build-asan $ ./test/vlc-demux-dec-run /home/tom/Downloads/clusterfuzz-testcase-vlc-demux-dec-libfuzzer-avi-6469070216298496
[vc1 @ 0x519000008c80] Reserved LEVEL 7
[vc1 @ 0x519000008c80] Only 4:2:0 chroma format supported
=================================================================
==1644086==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 104 byte(s) in 1 object(s) allocated from:
#0 0x7f38fecf4c57 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
#1 0x7f38fe7f7585 in vlc_frame_New ../../src/misc/frame.c:81
#2 0x7f38fe7f764a in vlc_frame_heap_Alloc ../../src/misc/frame.c:281
#3 0x7f38fe7f76af in vlc_frame_Alloc ../../src/misc/frame.c:143
#4 0x7f38fbb2b192 in packetizer_PacketizeBlock ../../modules/packetizer/packetizer_helper.h:183
#5 0x7f38fbb2b5b0 in packetizer_Packetize ../../modules/packetizer/packetizer_helper.h:247
#6 0x7f38fbb2b79b in packetizer_Header ../../modules/packetizer/packetizer_helper.h:275
#7 0x7f38fbb30361 in Open ../../modules/packetizer/vc1.c:199
#8 0x7f38fe6d2c33 in generic_start ../../src/modules/modules.c:261
#9 0x7f38fe6d363a in vlc_module_load ../../src/modules/modules.c:230
#10 0x7f38fe6d38df in module_need ../../src/modules/modules.c:272
#11 0x7f38fe715808 in decoder_LoadModule ../../src/input/decoder_helpers.c:86
#12 0x563585131127 in decoder_load ../../test/src/input/decoder.c:107
#13 0x563585131360 in test_decoder_create ../../test/src/input/decoder.c:186
#14 0x56358512fc5b in EsOutAdd ../../test/src/input/demux-run.c:89
#15 0x7f38fbd2b15d in es_out_Add ../../include/vlc_es_out.h:146
#16 0x7f38fbd2b15d in Open ../../modules/demux/avi/avi.c:773
#17 0x7f38fe71670e in demux_Probe ../../src/input/demux.c:112
#18 0x7f38fe6d363a in vlc_module_load ../../src/modules/modules.c:230
#19 0x7f38fe7174bd in demux_NewAdvanced ../../src/input/demux.c:196
#20 0x7f38fe7177cc in demux_New ../../src/input/demux.c:77
#21 0x563585130325 in demux_process_stream ../../test/src/input/demux-run.c:300
#22 0x5635851306e4 in vlc_demux_process_url ../../test/src/input/demux-run.c:354
#23 0x563585130783 in vlc_demux_process_path ../../test/src/input/demux-run.c:368
#24 0x56358512f569 in main ../../test/vlc-demux-run.c:50
#25 0x7f38fe3dcca7 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
Indirect leak of 288 byte(s) in 1 object(s) allocated from:
#0 0x7f38fecf40b8 in aligned_alloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:113
#1 0x7f38fe7f7698 in vlc_frame_Alloc ../../src/misc/frame.c:135
#2 0x7f38fbb2b192 in packetizer_PacketizeBlock ../../modules/packetizer/packetizer_helper.h:183
#3 0x7f38fbb2b5b0 in packetizer_Packetize ../../modules/packetizer/packetizer_helper.h:247
#4 0x7f38fbb2b79b in packetizer_Header ../../modules/packetizer/packetizer_helper.h:275
#5 0x7f38fbb30361 in Open ../../modules/packetizer/vc1.c:199
#6 0x7f38fe6d2c33 in generic_start ../../src/modules/modules.c:261
#7 0x7f38fe6d363a in vlc_module_load ../../src/modules/modules.c:230
#8 0x7f38fe6d38df in module_need ../../src/modules/modules.c:272
#9 0x7f38fe715808 in decoder_LoadModule ../../src/input/decoder_helpers.c:86
#10 0x563585131127 in decoder_load ../../test/src/input/decoder.c:107
#11 0x563585131360 in test_decoder_create ../../test/src/input/decoder.c:186
#12 0x56358512fc5b in EsOutAdd ../../test/src/input/demux-run.c:89
#13 0x7f38fbd2b15d in es_out_Add ../../include/vlc_es_out.h:146
#14 0x7f38fbd2b15d in Open ../../modules/demux/avi/avi.c:773
#15 0x7f38fe71670e in demux_Probe ../../src/input/demux.c:112
#16 0x7f38fe6d363a in vlc_module_load ../../src/modules/modules.c:230
#17 0x7f38fe7174bd in demux_NewAdvanced ../../src/input/demux.c:196
#18 0x7f38fe7177cc in demux_New ../../src/input/demux.c:77
#19 0x563585130325 in demux_process_stream ../../test/src/input/demux-run.c:300
#20 0x5635851306e4 in vlc_demux_process_url ../../test/src/input/demux-run.c:354
#21 0x563585130783 in vlc_demux_process_path ../../test/src/input/demux-run.c:368
#22 0x56358512f569 in main ../../test/vlc-demux-run.c:50
#23 0x7f38fe3dcca7 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
SUMMARY: AddressSanitizer: 392 byte(s) leaked in 2 allocation(s).
Samples: