vp9.read_inter_block_mode_info: return on corruption
authorJames Zern <jzern@google.com>
Fri, 19 Aug 2022 00:51:19 +0000 (17:51 -0700)
committerJames Zern <jzern@google.com>
Fri, 19 Aug 2022 16:58:39 +0000 (09:58 -0700)
commit595bf7022afd2e7116bbfc0e1ee38c482e6d3811
treedfad7a9f81a5f9df0bb4d68cfe9e1cde424c6531
parentcf5ef2b9855da4502833a2832872607ed665fd72
vp9.read_inter_block_mode_info: return on corruption

with block sizes < 8x8 previously only the inner loop was aborted. this
could cause propagation of invalid motion vectors to scale_mv().

this quiets integer sanitizer warnings of the form:
vp9/common/vp9_mvref_common.h:239:18: runtime error: implicit conversion
from type 'int' of value 32768 (32-bit, signed) to type 'int16_t' (aka
'short') changed the value to -32768 (16-bit, signed)

Bug: b/229626362
Change-Id: I58b5a425adf21542cbf4cc4dd5ab3cc5ed008264
vp9/decoder/vp9_decodemv.c