Assertion 'lr->type == DAV1D_RESTORATION_SGRPROJ' failed in src/lr_apply_tmpl.c
Reproduced with commit aaba9f8e
Steps to reproduce:
- replay testcase with
./dav1d_fuzzer testcase.ivf
dav1d_fuzzer: src/lr_apply_tmpl.c:193: void lr_stripe(const Dav1dFrameContext *const, pixel *, const pixel (*)[4], int, int, const int, const int, const int, const Av1RestorationUnit *const, enum LrEdgeFlags): Assertion `lr->type == DAV1D_RESTORATION_SGRPROJ' failed.
==32399==ERROR: AddressSanitizer: ABRT on unknown address 0x03e800007e8f (pc 0x7f57e6ca6e97 bp 0x7f57e6e1f7d8 sp 0x7ffe437ee8f0 T0)
#0 0x7f57e6ca6e96 in __libc_signal_restore_set /build/glibc-OTsEL5/glibc-2.27/signal/../sysdeps/unix/sysv/linux/nptl-signals.h:80
#1 0x7f57e6ca6e96 in gsignal /build/glibc-OTsEL5/glibc-2.27/signal/../sysdeps/unix/sysv/linux/raise.c:48
#2 0x7f57e6ca8800 in abort /build/glibc-OTsEL5/glibc-2.27/stdlib/abort.c:79
#3 0x7f57e6c98399 in __assert_fail_base /build/glibc-OTsEL5/glibc-2.27/assert/assert.c:92
#4 0x7f57e6c98411 in __assert_fail /build/glibc-OTsEL5/glibc-2.27/assert/assert.c:101
#5 0x65238c in lr_stripe src/lr_apply_tmpl.c:193:13
#6 0x65238c in lr_sbrow src/lr_apply_tmpl.c:271
#7 0x650d59 in dav1d_lr_sbrow_8bpc src/lr_apply_tmpl.c:306:13
#8 0x5e02be in dav1d_filter_sbrow_8bpc src/recon_tmpl.c:1641:9
#9 0x51560d in dav1d_decode_frame src/decode.c:2899:25
#10 0x51a765 in dav1d_submit_frame src/decode.c:3358:20
#11 0x4fb56e in dav1d_parse_obus src/obu.c:1410:24
#12 0x4f6477 in dav1d_get_picture src/lib.c:347:15
#13 0x4f2ccc in LLVMFuzzerTestOneInput tests/libfuzzer/dav1d_fuzzer.c:156:19
#14 0x4f3188 in main tests/libfuzzer/main.c:116:13a