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 15:54:17 +0000 (16:54 +0100)
commit10e32618acce9c3fc64c061eb7907e8a8d2749ae
tree2045f392a55c341e90e1acb3b6c4454db74b907f
parentdb442c873631065e8719df6da91c016d25501084
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>
libavcodec/cook.c