[oss-fuzz 6029509611814912] leak in subsvtt.c
Ref.:
=================================================================
==402==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 80 byte(s) in 1 object(s) allocated from:
#0 0x560732513214 in __interceptor_malloc /src/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:67:3
#1 0x5607326ecaed in webvtt_region_New /src/vlc/modules/codec/webvtt/subsvtt.c:1196:33
#2 0x5607326ecaed in ParserHeaderHandler /src/vlc/modules/codec/webvtt/subsvtt.c:2089:33
#3 0x5607326d401a in forward_line /src/vlc/modules/codec/webvtt/webvtt.c:158:9
#4 0x5607326d401a in webvtt_text_parser_Feed /src/vlc/modules/codec/webvtt/webvtt.c:0
#5 0x5607326e0970 in LoadExtradata /src/vlc/modules/codec/webvtt/subsvtt.c:2130:13
#6 0x5607326e0970 in webvtt_OpenDecoder /src/vlc/modules/codec/webvtt/subsvtt.c:2220:9
#7 0x5607329f616e in generic_start /src/vlc/src/modules/modules.c:261:11
#8 0x5607329f5b00 in vlc_module_load /src/vlc/src/modules/modules.c:230:15
#9 0x5607329f5f32 in module_need /src/vlc/src/modules/modules.c:272:24
#10 0x560732a326fd in decoder_LoadModule /src/vlc/src/input/decoder_helpers.c:86:25
#11 0x560732559702 in decoder_load /src/vlc/test/src/input/decoder.c:107:5
#12 0x560732559702 in test_decoder_create /src/vlc/test/src/input/decoder.c:193:9
#13 0x560732558245 in EsOutAdd /src/vlc/test/src/input/demux-run.c:89:19
#14 0x5607326d4ee9 in es_out_Add /src/vlc/include/vlc_es_out.h:146:12
#15 0x5607326d4ee9 in webvtt_OpenDemux /src/vlc/modules/demux/webvtt.c:675:17
#16 0x560732a3537a in demux_Probe /src/vlc/src/input/demux.c:112:15
#17 0x5607329f5b00 in vlc_module_load /src/vlc/src/modules/modules.c:230:15
#18 0x560732a34a6d in demux_NewAdvanced /src/vlc/src/input/demux.c:196:20
#19 0x560732a3410f in demux_New /src/vlc/src/input/demux.c:77:12
#20 0x560732557439 in demux_process_stream /src/vlc/test/src/input/demux-run.c:300:22
#21 0x5607325570ef in LLVMFuzzerTestOneInput /src/vlc/test/vlc-demux-libfuzzer.c:63:5
#22 0x5607323f48bd in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:619:13
#23 0x5607323df632 in fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:329:6
#24 0x5607323e5500 in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:865:9
#25 0x560732411032 in main /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerMain.cpp:20:10
#26 0x788bbec7b082 in __libc_start_main /build/glibc-LcI20x/glibc-2.31/csu/libc-start.c:308:16
================================================================================
The following leaks are not necessarily related to the first leak.
Indirect leak of 2 byte(s) in 1 object(s) allocated from:
#0 0x5607324f989a in __interceptor_strdup /src/llvm-project/compiler-rt/lib/asan/asan_interceptors.cpp:596:3
#1 0x5607326eceec in webvtt_region_ParseTuple /src/vlc/modules/codec/webvtt/subsvtt.c:1046:28
#2 0x5607326eceec in webvtt_region_Parse /src/vlc/modules/codec/webvtt/subsvtt.c:1091:21
#3 0x5607326eceec in ParserHeaderHandler /src/vlc/modules/codec/webvtt/subsvtt.c:2099:9
#4 0x5607326d3dea in forward_line /src/vlc/modules/codec/webvtt/webvtt.c:158:9
#5 0x5607326d3dea in webvtt_text_parser_Feed /src/vlc/modules/codec/webvtt/webvtt.c:277:9
#6 0x5607326e0970 in LoadExtradata /src/vlc/modules/codec/webvtt/subsvtt.c:2130:13
#7 0x5607326e0970 in webvtt_OpenDecoder /src/vlc/modules/codec/webvtt/subsvtt.c:2220:9
#8 0x5607329f616e in generic_start /src/vlc/src/modules/modules.c:261:11
#9 0x5607329f5b00 in vlc_module_load /src/vlc/src/modules/modules.c:230:15
#10 0x5607329f5f32 in module_need /src/vlc/src/modules/modules.c:272:24
#11 0x560732a326fd in decoder_LoadModule /src/vlc/src/input/decoder_helpers.c:86:25
#12 0x560732559702 in decoder_load /src/vlc/test/src/input/decoder.c:107:5
#13 0x560732559702 in test_decoder_create /src/vlc/test/src/input/decoder.c:193:9
#14 0x560732558245 in EsOutAdd /src/vlc/test/src/input/demux-run.c:89:19
#15 0x5607326d4ee9 in es_out_Add /src/vlc/include/vlc_es_out.h:146:12
#16 0x5607326d4ee9 in webvtt_OpenDemux /src/vlc/modules/demux/webvtt.c:675:17
#17 0x560732a3537a in demux_Probe /src/vlc/src/input/demux.c:112:15
#18 0x5607329f5b00 in vlc_module_load /src/vlc/src/modules/modules.c:230:15
#19 0x560732a34a6d in demux_NewAdvanced /src/vlc/src/input/demux.c:196:20
#20 0x560732a3410f in demux_New /src/vlc/src/input/demux.c:77:12
#21 0x560732557439 in demux_process_stream /src/vlc/test/src/input/demux-run.c:300:22
#22 0x5607325570ef in LLVMFuzzerTestOneInput /src/vlc/test/vlc-demux-libfuzzer.c:63:5
#23 0x5607323f48bd in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:619:13
#24 0x5607323df632 in fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:329:6
#25 0x5607323e5500 in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:865:9
#26 0x560732411032 in main /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerMain.cpp:20:10
#27 0x788bbec7b082 in __libc_start_main /build/glibc-LcI20x/glibc-2.31/csu/libc-start.c:308:16
SUMMARY: AddressSanitizer: 82 byte(s) leaked in 2 allocation(s).
Samples: