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, 22 Apr 2015 10:27:24 +0000 (12:27 +0200)
commit99a69249837079417ca8bec6dd0515ca996a748e
tree94af9f05bb38c297ab90671d63ea5602c61769bb
parent09a5a754fe56dd5fd44f338d939d323d06a537ca
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