[oss-fuzz 6612450490515456] leak in subsvtt.c
Ref.:
==403==ERROR: LeakSanitizer: detected memory leaks
Indirect leak of 120 byte(s) in 1 object(s) allocated from:
#0 0x5a5c52d653d9 in __interceptor_calloc /src/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:74:3
#1 0x5a5c52f32f8e in webvtt_dom_cue_New /src/vlc/modules/codec/webvtt/subsvtt.c:972:31
#2 0x5a5c52f32f8e in ProcessISOBMFF /src/vlc/modules/codec/webvtt/subsvtt.c:1968:39
#3 0x5a5c52f32f8e in DecodeBlock /src/vlc/modules/codec/webvtt/subsvtt.c:2166:5
#4 0x5a5c52dabeb0 in test_decoder_process /src/vlc/test/src/input/decoder.c:253:23
#5 0x5a5c52daa353 in EsOutSend /src/vlc/test/src/input/demux-run.c:115:9
#6 0x5a5c52f27f39 in es_out_Send /src/vlc/include/vlc_es_out.h:157:12
#7 0x5a5c52f27f39 in Demux /src/vlc/modules/demux/webvtt.c:584:13
#8 0x5a5c52da99fb in demux_process_stream /src/vlc/test/src/input/demux-run.c:312:19
#9 0x5a5c52da90ef in LLVMFuzzerTestOneInput /src/vlc/test/vlc-demux-libfuzzer.c:63:5
#10 0x5a5c52c468bd in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:619:13
#11 0x5a5c52c31632 in fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:329:6
#12 0x5a5c52c37500 in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:865:9
#13 0x5a5c52c63032 in main /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerMain.cpp:20:10
#14 0x7f1a218db082 in __libc_start_main /build/glibc-LcI20x/glibc-2.31/csu/libc-start.c:308:16
Indirect leak of 71 byte(s) in 1 object(s) allocated from:
#0 0x5a5c52d65214 in __interceptor_malloc /src/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:67:3
#1 0x5a5c52cdbedc in ___interceptor_strndup /src/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc:450:3
#2 0x5a5c52f334a3 in ProcessISOBMFF /src/vlc/modules/codec/webvtt/subsvtt.c:1981:41
#3 0x5a5c52f334a3 in DecodeBlock /src/vlc/modules/codec/webvtt/subsvtt.c:2166:5
#4 0x5a5c52dabeb0 in test_decoder_process /src/vlc/test/src/input/decoder.c:253:23
#5 0x5a5c52daa353 in EsOutSend /src/vlc/test/src/input/demux-run.c:115:9
#6 0x5a5c52f27f39 in es_out_Send /src/vlc/include/vlc_es_out.h:157:12
#7 0x5a5c52f27f39 in Demux /src/vlc/modules/demux/webvtt.c:584:13
#8 0x5a5c52da99fb in demux_process_stream /src/vlc/test/src/input/demux-run.c:312:19
#9 0x5a5c52da90ef in LLVMFuzzerTestOneInput /src/vlc/test/vlc-demux-libfuzzer.c:63:5
#10 0x5a5c52c468bd in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:619:13
#11 0x5a5c52c31632 in fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:329:6
#12 0x5a5c52c37500 in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:865:9
#13 0x5a5c52c63032 in main /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerMain.cpp:20:10
#14 0x7f1a218db082 in __libc_start_main /build/glibc-LcI20x/glibc-2.31/csu/libc-start.c:308:16
Indirect leak of 35 byte(s) in 1 object(s) allocated from:
#0 0x5a5c52d4b89a in __interceptor_strdup /src/llvm-project/compiler-rt/lib/asan/asan_interceptors.cpp:596:3
#1 0x5a5c52f34290 in DuplicateUnescaped /src/vlc/modules/codec/webvtt/subsvtt.c:1238:15
#2 0x5a5c52f34290 in CreateDomNodes /src/vlc/modules/codec/webvtt/subsvtt.c:1337:36
#3 0x5a5c52f34290 in ProcessCue /src/vlc/modules/codec/webvtt/subsvtt.c:1354:22
#4 0x5a5c52f34290 in ProcessISOBMFF /src/vlc/modules/codec/webvtt/subsvtt.c:1993:29
#5 0x5a5c52f34290 in DecodeBlock /src/vlc/modules/codec/webvtt/subsvtt.c:2166:5
#6 0x5a5c52dabeb0 in test_decoder_process /src/vlc/test/src/input/decoder.c:253:23
#7 0x5a5c52daa353 in EsOutSend /src/vlc/test/src/input/demux-run.c:115:9
#8 0x5a5c52f27f39 in es_out_Send /src/vlc/include/vlc_es_out.h:157:12
#9 0x5a5c52f27f39 in Demux /src/vlc/modules/demux/webvtt.c:584:13
#10 0x5a5c52da99fb in demux_process_stream /src/vlc/test/src/input/demux-run.c:312:19
#11 0x5a5c52da90ef in LLVMFuzzerTestOneInput /src/vlc/test/vlc-demux-libfuzzer.c:63:5
#12 0x5a5c52c468bd in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:619:13
#13 0x5a5c52c31632 in fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:329:6
#14 0x5a5c52c37500 in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:865:9
#15 0x5a5c52c63032 in main /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerMain.cpp:20:10
#16 0x7f1a218db082 in __libc_start_main /build/glibc-LcI20x/glibc-2.31/csu/libc-start.c:308:16
Indirect leak of 32 byte(s) in 1 object(s) allocated from:
#0 0x5a5c52d653d9 in __interceptor_calloc /src/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:74:3
#1 0x5a5c52f34230 in webvtt_dom_text_New /src/vlc/modules/codec/webvtt/subsvtt.c:509:33
#2 0x5a5c52f34230 in CreateDomNodes /src/vlc/modules/codec/webvtt/subsvtt.c:1334:41
#3 0x5a5c52f34230 in ProcessCue /src/vlc/modules/codec/webvtt/subsvtt.c:1354:22
#4 0x5a5c52f34230 in ProcessISOBMFF /src/vlc/modules/codec/webvtt/subsvtt.c:1993:29
#5 0x5a5c52f34230 in DecodeBlock /src/vlc/modules/codec/webvtt/subsvtt.c:2166:5
#6 0x5a5c52dabeb0 in test_decoder_process /src/vlc/test/src/input/decoder.c:253:23
#7 0x5a5c52daa353 in EsOutSend /src/vlc/test/src/input/demux-run.c:115:9
#8 0x5a5c52f27f39 in es_out_Send /src/vlc/include/vlc_es_out.h:157:12
#9 0x5a5c52f27f39 in Demux /src/vlc/modules/demux/webvtt.c:584:13
#10 0x5a5c52da99fb in demux_process_stream /src/vlc/test/src/input/demux-run.c:312:19
#11 0x5a5c52da90ef in LLVMFuzzerTestOneInput /src/vlc/test/vlc-demux-libfuzzer.c:63:5
#12 0x5a5c52c468bd in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:619:13
#13 0x5a5c52c31632 in fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:329:6
#14 0x5a5c52c37500 in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:865:9
#15 0x5a5c52c63032 in main /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerMain.cpp:20:10
#16 0x7f1a218db082 in __libc_start_main /build/glibc-LcI20x/glibc-2.31/csu/libc-start.c:308:16
SUMMARY: AddressSanitizer: 258 byte(s) leaked in 4 allocation(s).
Samples: