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>
Sat, 5 Nov 2011 11:29:37 +0000 (12:29 +0100)
commit7a6bba627d643ba9e9cc083f21475a0035b0f06f
tree983ff83fa88823161a7f5e6e85cba9a3aba48228
parent9f95d7aab3ced729f3e931ef11006881e0735738
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