oggdec: check stream index before using it in ogg_get_length()
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 5 Aug 2012 02:41:34 +0000 (04:41 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 5 Aug 2012 03:08:15 +0000 (05:08 +0200)
commit9e1c55cfdec1e1e46fa39b92ea5c425ba9499c68
treeee635ff4450aa1d490df17652c791007eb7251c3
parent74c6db05052a1197b485a735a825527685d77567
oggdec: check stream index before using it in ogg_get_length()

Fixes crash based on a uninitialized array index read.
If the read does not crash then out of array writes based
on the same index might have been triggered afterwards.

Found-by: inferno@chromium.org
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/oggdec.c