shithub: libvpx

Download patch

ref: f22b828d685adee4c7a561990302e2d21b5e0047
parent: 2420f44342db48bb491a048f0cd14c818f7d5817
author: Yunqing Wang <yunqingwang@google.com>
date: Mon Apr 10 06:57:41 EDT 2017

Fix an integer overflow in vp9_mcomp.c

The MV unit test revealed an integer overflow issue in vp9_mcomp.c.
This was caused if the MV was very large. In mv_err_cost(), when
mv->row = 8184, mv->col = 8184 and ref_mv is 0, mv_cost = 34363
and error_per_bit = 132412, causing the overflow.

BUG=webm:1406

Change-Id: I35f8299f22f9bee39cd9153d7b00d0993838845e