avformat/oggparsespeex: Check frames_per_packet and packet_size
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 3 Dec 2016 02:40:55 +0000 (03:40 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 3 Dec 2016 02:59:13 +0000 (03:59 +0100)
commitafcf15b0dbb4b6429be5083e50b296cdca61875e
tree788be7d15479a1044fae73604661f550cdfd9885
parent90da187f1d334422477886a19eca3c1da29c59a7
avformat/oggparsespeex: Check frames_per_packet and packet_size

The speex specification does not seem to restrict these values, thus
the limits where choosen so as to avoid multiplicative overflow

Fixes undefined behavior
Fixes: 635422.ogg

Found-by: Matt Wolenetz <wolenetz@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/oggparsespeex.c