]> granicus.if.org Git - libvpx/commit
fix uninitialized value in multi-res encoding
authorJohn Koleszar <jkoleszar@google.com>
Wed, 3 Oct 2012 21:52:56 +0000 (14:52 -0700)
committerJohn Koleszar <jkoleszar@google.com>
Wed, 3 Oct 2012 21:53:05 +0000 (14:53 -0700)
commit0e213fb999665b382b3937cb7ab1ff2385cd5265
treec058752f2d3e9b98f90506d98e9d60093e410e84
parentf199bab7ab0cf29bf7a53cd8e10821f200255f7f
fix uninitialized value in multi-res encoding

If a parent mb is available but is intra coded, then parent_ref_mv is
invalid. Check that the parent is inter coded before trying to access
the parent_ref_mv. Previously the parent_ref_mv was being read from
an uninitialized stack allocation, causing potential OOB reads and
other undefined behavior.

Change-Id: I0c93cd412a19c3a184bcf6decaa145b3a036a6c0
vp8/encoder/pickinter.c