avcodec/msrledec: restructure msrle_decode_pal4() based on the line number instead...
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 24 Mar 2015 14:50:12 +0000 (15:50 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 10 Jun 2015 00:13:10 +0000 (02:13 +0200)
commit936554f1d7388cd9e46add774345b138e55acf47
treeecec1165f98bb52837d57caa5e4192503decbd83
parent81ba3b1b916692e24d00aed6b673f43ebe13d639
avcodec/msrledec: restructure msrle_decode_pal4() based on the line number instead of the pixel pointer

Fixes out of array access
Fixes: da14e86d8462be6493eab16bc2d40f88/asan_heap-oob_204cfd2_528_cov_340150052_COMPRESS.BMP

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit f7e1367f58263593e6cee3c282f7277d7ee9d553)

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