oggdec: prevent heap corruption.
authorChris Evans <cevans@chromium.org>
Thu, 4 Aug 2011 20:00:29 +0000 (22:00 +0200)
committerReinhard Tartler <siretart@tauware.de>
Thu, 4 Aug 2011 20:01:25 +0000 (22:01 +0200)
commit88ea7ca6279720de9c8db0a4c9a2928e6c7f6061
treea4015e78f3de0a5d55a07e59abfe798728698f58
parent03ef9828b551fa9e91898d0f3c156d7c3fa11c92
oggdec: prevent heap corruption.

Specifically crafted samples can reinit ogg->streams[] while
reading samples, and thus we should not cache old pointers since
these may no longer be valid.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry-picked from commit 4cc3467e7abfea7e8d03b6af511f7719038a5a98)
libavformat/oggdec.c