avcodec/cook: check that the subpacket sizes fit in block_align
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 30 Oct 2014 15:53:09 +0000 (16:53 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 30 Oct 2014 16:23:37 +0000 (17:23 +0100)
commit25d2a4dde7240e05f5098c6d50ae3d534463dd79
treee989fe70e602161ee04e9bd30564d2e9827dc04a
parentbfee1e90725aa2b832a0fd7bbd0393c9c23e7f0a
avcodec/cook: check that the subpacket sizes fit in block_align

Fixes out of array read
Fixes: asan_heap-oob_fb5c50_19_018.rmvb
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 10e32618acce9c3fc64c061eb7907e8a8d2749ae)

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