Commit 7677c120 authored by Janne Grunau's avatar Janne Grunau

intrabc: use visible width/height in mv correction

Prevents adjusting intra block copy motion vectors to values pointing
out of the current tile. This happens with not entirely visible blocks in
a one super block wide/high tile. Fixes an use of uninitilized value in
inv_txfm_add_c() with
clusterfuzz-testcase-minimized-dav1d_fuzzer_mt-5746740678885376. Credits
to oss-fuzz.
parent 6a95aa56
Pipeline #3559 passed with stages
in 4 minutes and 50 seconds
......@@ -1264,8 +1264,8 @@ static int decode_b(Dav1dTileContext *const t,
}
int src_left = t->bx * 4 + (b->mv[0].x >> 3);
int src_top = t->by * 4 + (b->mv[0].y >> 3);
int src_right = src_left + bw4 * 4;
int src_bottom = src_top + bh4 * 4;
int src_right = src_left + w4 * 4;
int src_bottom = src_top + h4 * 4;
// check against left or right tile boundary and adjust if necessary
if (src_left < border_left) {
......
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