Improve handling of invalid frames.
authorTimothy B. Terriberry <tterribe@xiph.org>
Tue, 19 Oct 2010 22:40:46 +0000 (15:40 -0700)
committerJohn Koleszar <jkoleszar@google.com>
Fri, 22 Oct 2010 15:50:56 +0000 (11:50 -0400)
commit09bcc1f710ea65dc158639479288fb1908ff0c53
treef0f4730443a0991b72a8403517cfd7633ac0be55
parenta8a38bcf10f2beba39a41ce3c469ff02caebd2ca
Improve handling of invalid frames.

The code was not checking for frame sizes smaller than 3 bytes, and the
 partition size checks might have failed if the input buffer was within
 16MB of the top of the heap.
In addition, the reference count on the current frame buffer was not
 being decremented on error, so after a small number of errors, no new
 frame buffer could be found and it would run off the list of them.

Change-Id: I0c60dba6adb1e2a29df39754f72a56ab6c776b46
vp8/decoder/decodframe.c
vp8/decoder/onyxd_if.c