]> granicus.if.org Git - libvpx/commit
vpx_codec_decode: check data size
authorJames Zern <jzern@google.com>
Sun, 10 Aug 2014 01:35:40 +0000 (18:35 -0700)
committerJames Zern <jzern@google.com>
Mon, 11 Aug 2014 18:44:00 +0000 (11:44 -0700)
commit6a2e9ef20aed3b87259e9491fc76c0b83a76ab3c
tree5fee10c6ceb3342d1e06f374f2225b7d72782eda
parentccddd5d0f9a69c7369f9a68c155577e4e0b3afd1
vpx_codec_decode: check data size

When a valid data pointer is given make sure the size is greater than
zero.
A previous check for vp9 was incorrectly removed in:
7050074 Make the api behavior conform to api spec.

No semantics for valid pointers + 0-sized frames are defined for VPx
codecs, so move the check to vpx_codec_decode(). This avoids an assert
in vp9.

+ add some basic invalid param testing for decoder init/decode/destroy

Change-Id: I99f9cef6076d15874fd72ac973f2685d8a2353c3
test/decode_api_test.cc [new file with mode: 0644]
test/test.mk
vpx/src/vpx_decoder.c