oggdec: prevent heap corruption.
authorChris Evans <cevans@chromium.org>
Wed, 29 Jun 2011 22:44:40 +0000 (15:44 -0700)
committerReinhard Tartler <siretart@tauware.de>
Tue, 12 Jul 2011 16:13:35 +0000 (18:13 +0200)
commitcd63c32ff6f6a24dc971a0bb2ca8f8a4f57e79da
tree5783bda8c924f18997eb263a3718433e8bcf9d47
parent5a33a29a91fe0c3fc30eb89a0675258f538c6af8
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