Fix out of boundary memory read in fuzz test on vpxdec
authorJingning Han <jingning@google.com>
Thu, 12 Jun 2014 19:23:06 +0000 (12:23 -0700)
committerJingning Han <jingning@google.com>
Fri, 13 Jun 2014 18:10:36 +0000 (11:10 -0700)
commit1ba18717861c5da614619428389f29e00b175e8e
tree27db55b9877dff8ed625feb93027d3690375daff
parent5556d1184169168e59656863456c88c3f958ca45
Fix out of boundary memory read in fuzz test on vpxdec

This commit fixes frame header decoding for superframe index, to
prevent out of boundary memory read triggered by fuzz test
vector. It resolves a chromium security violation issue
crbug.com/376802.

The issue was introduced in the change:

Add VPXD_SET_DECRYPTOR support to the VP9 decoder.
cl-id I88f86c8ff9af34e0b6531028b691921b54c2fc48

where the buffer was read before validation check on index offset
applied.

A test vector is added accordingly.

Change-Id: I41c988e776bbdd1033312a668e03a3dbcf44ca99
test/test-data.sha1
test/test.mk
test/test_vectors.cc
vp9/vp9_dx_iface.c