OSDN Git Service

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>
Fri, 28 Nov 2014 17:53:11 +0000 (18:53 +0100)
commit3467dfed6bf363061a2f428557293807aa5ea5a6
treeb5c37b5e46e4e51aa0f82c5deed47d995d4a502e
parentffd5ccee5df504ea8a9f0a8da71e2ce5433da728
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