cavs: fix some crashes with invalid bitstreams
authorMans Rullgard <mans@mansr.com>
Wed, 10 Aug 2011 17:52:11 +0000 (18:52 +0100)
committerReinhard Tartler <siretart@tauware.de>
Wed, 2 Nov 2011 20:14:57 +0000 (21:14 +0100)
commit04888edef344b09daaabbc30b3fa5ab32d3bd866
tree546ab7d61a306e4c76e0f162c69394ea9a936255
parenteed5697f99927c78956fde6ee6f1ac87f3c6d261
cavs: fix some crashes with invalid bitstreams

This removes all valgrind-reported invalid writes with one
specific test file.

Fixes http://www.ocert.org/advisories/ocert-2011-002.html

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 4a71da0f3ab7f5542decd11c81994f849d5b2c78)

Fixes CVE-2011-3362, CVE-2011-3973, CVE-2011-3974

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
libavcodec/cavsdec.c