vp9: correct context buffer resize check
authorJames Zern <jzern@google.com>
Thu, 4 Sep 2014 23:05:18 +0000 (16:05 -0700)
committerJames Zern <jzern@google.com>
Fri, 5 Sep 2014 02:14:21 +0000 (19:14 -0700)
commitbb4950dfdf0610080648aae5b717384e6c689e63
treebcdf6ffaf38bb218b06674552cee01157854165c
parent440f5097c7c402b904285af31c89e4064fadbaff
vp9: correct context buffer resize check

allocations within vp9_alloc_context_buffers() rely on mi_rows/mi_cols
individually, use those to determine whether to realloc rather than
stride and stride * rows. this fixes a crash with some fuzzed files for
invalid accesses into last_frame_seg_map and above_context.

Change-Id: I7b9f40dcf170d443890f3bd2acd285507943c7d4
test/invalid_file_test.cc
test/test-data.sha1
test/test.mk
vp9/decoder/vp9_decodeframe.c