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>
Sat, 1 Nov 2014 14:40:38 +0000 (15:40 +0100)
commitf00ec3307b5f61a5efbfa2a1d71817bb53fa397e
tree95fb4c4c275432f22f3f1234a436376bf5792e84
parentf6499563c3069ba4665906ed19fe80454ed00e1c
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