use-of-uninitialized-value in dav1d_loopfilter_sbrow_8bpc() src/lf_apply_tmpl.c
Reproduced with commit 1e852dc1
Steps to reproduce:
- build dav1d with MemorySanitizer (-fsanitize=memory)
- replay testcase with
./dav1d_fuzzer testcase.ivf
==18107==WARNING: MemorySanitizer: use-of-uninitialized-value
#0 0x705a0b in dav1d_loopfilter_sbrow_8bpc src/lf_apply_tmpl.c:224:76
#1 0x657ef9 in dav1d_filter_sbrow_8bpc src/recon_tmpl.c:1522:9
#2 0x4d5614 in dav1d_decode_frame src/decode.c:2728:25
#3 0x4e0935 in dav1d_submit_frame src/decode.c:3108:20
#4 0x4a3ace in dav1d_parse_obus src/obu.c:1130:20
#5 0x49ca77 in dav1d_decode src/lib.c:201:20
#6 0x494726 in LLVMFuzzerTestOneInput tests/libfuzzer/dav1d_fuzzer.c:101:19
#7 0x4951cf in main tests/libfuzzer/main.c:116:13
Uninitialized value was created by a heap allocation
#0 0x427cac in malloc (/home/user/Desktop/dav1d_fuzzer_msan+0x427cac)
#1 0x4cc21a in dav1d_decode_frame src/decode.c:2569:38
#2 0x4e0935 in dav1d_submit_frame src/decode.c:3108:20
#3 0x4a3ace in dav1d_parse_obus src/obu.c:1130:20
#4 0x49ca77 in dav1d_decode src/lib.c:201:20
#5 0x494726 in LLVMFuzzerTestOneInput tests/libfuzzer/dav1d_fuzzer.c:101:19