Commit 55d512c7 authored by Janne Grunau's avatar Janne Grunau

recon: fix bilinear entry in dav1d_filter_dir table

Fixes #152, #153. Fixes a global buffer overflow in obmc() with
clusterfuzz-testcase-dav1d_fuzzer_mt-5702455078158336 and an ubsan
Index-out-of-bounds error in dav1d_recon_b_inter_8bpc() with
clusterfuzz-testcase-minimized-dav1d_fuzzer_mt-5688109887389696. Credits
to oss-fuzz.
parent 5945f34f
......@@ -446,7 +446,7 @@ const uint8_t /* enum FilterMode */ dav1d_filter_dir[N_2D_FILTERS][2] = {
[FILTER_2D_8TAP_SMOOTH_REGULAR] = { FILTER_8TAP_REGULAR, FILTER_8TAP_SMOOTH },
[FILTER_2D_8TAP_SMOOTH] = { FILTER_8TAP_SMOOTH, FILTER_8TAP_SMOOTH },
[FILTER_2D_8TAP_SMOOTH_SHARP] = { FILTER_8TAP_SHARP, FILTER_8TAP_SMOOTH },
[FILTER_2D_BILINEAR] = { FILTER_2D_BILINEAR, FILTER_2D_BILINEAR },
[FILTER_2D_BILINEAR] = { FILTER_BILINEAR, FILTER_BILINEAR },
};
const uint8_t dav1d_filter_mode_to_y_mode[5] = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment