avcodec/jpeglsdec: Check run value more completely in ls_decode_line()
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 2 Oct 2014 21:17:21 +0000 (23:17 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 21 Dec 2014 03:40:03 +0000 (04:40 +0100)
commitd44d87e172648ece39bb7328edf80577c66914db
tree36bafd2be9f155575bf301d4294a1e5affcd9804
parent0872359f9fff2d7f404ad3b202bcd96517812c1b
avcodec/jpeglsdec: Check run value more completely in ls_decode_line()

previously it could have been by 1 too large
Fixes out of array access
Fixes: asan_heap-oob_12240f5_1_asan_heap-oob_12240f5_448_t8c1e3.jls
Fixes: asan_heap-oob_12240f5_1_asan_heap-oob_12240f5_448_t8nde0.jls
Fixes: asan_heap-oob_12240fa_1_asan_heap-oob_12240fa_448_t16e3.jls

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

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