avcodec/mjpegdec: Fix context fields becoming inconsistent
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 25 Nov 2014 12:53:06 +0000 (13:53 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 6 Jan 2015 17:25:50 +0000 (18:25 +0100)
commit6c63eb59099e7096aaaaaad3c15a1dab62afc87b
tree76ae8802e7d809cb7298b1482b304801f4c45cf8
parent142896f2d0e26dd7291ecd8c999b499a7bdd8cf4
avcodec/mjpegdec: Fix context fields becoming inconsistent

Fixes out of array access
Fixes: asan_heap-oob_1ca4f85_2760_cov_144449187_miss_congeniality_pegasus_ljpg.avi
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 0eecf40935b22644e6cd74c586057237ecfd6844)

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