bmp: check available space when reading palette
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 19 Feb 2013 15:59:26 +0000 (16:59 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 19 Feb 2013 16:00:04 +0000 (17:00 +0100)
commit633f9974790e2c0cff6ffafddc1ce0224fb08329
tree9fa59c11d3a03c3db59e1b2971f5a29865457a1e
parent1acd7d594c15aa491729c837ad3519d3469e620a
bmp: check available space when reading palette

Fixes out of array read

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/bmp.c