vqavideo: check chunk sizes before reading chunks
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 25 Jan 2013 05:11:59 +0000 (06:11 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 17 Feb 2013 22:22:42 +0000 (23:22 +0100)
commit2cac35086c9e103fa98960c546d5017e7363803a
treef08962895e5dbfb22c8cc1ea3667567ee419c859
parentaf343f5cddc5b40cea53ea7c38e582dc9caae15b
vqavideo: check chunk sizes before reading chunks

Fixes out of array writes

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit ab6c9332bfa1e20127a16392a0b85a4aa4840889)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/vqavideo.c