ref: f17c5e084f9a983c00a48b25c4f6422b6c521435
parent: 57347c19187052242c1a8981e26ed6d046ed52d9
author: Janne Grunau <janne-vlc@jannau.net>
date: Sun Oct 7 18:01:34 EDT 2018
check IntraBC displacement vector Fixes a overlapping memcpy for dav1d-fuzzing-data:artifacts/crash-9550bf1d4b851a3a930394df4e2970d4eb50f47e.
--- a/src/decode.c
+++ b/src/decode.c
@@ -1192,6 +1192,8 @@
printf("Post-dmv[%d/%d,ref=%d/%d|%d/%d]: r=%d\n",
b->mv[0].y, b->mv[0].x, ref.y, ref.x,
mvlist[0][0].y, mvlist[0][0].x, ts->msac.rng);
+ if (b->mv[0].x >= 0 && b->mv[0].y >= 0)
+ b->mv[0] = ref;
read_vartx_tree(t, b, bs, bx4, by4);
// reconstruction