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>
Sun, 21 Aug 2011 09:23:56 +0000 (11:23 +0200)
commitbd968d260aef322fb32e254a3de0d2036c57bd56
tree9e58edbfe54ff7a5cf549c4298ed30376e76aecf
parent00c5cf4beb0e45e936544a5766b56e241ae03234
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)
libavcodec/cavsdec.c