mjpegdec: validate parameters in mjpeg_decode_scan_progressive_ac
authorLuca Barbato <lu_zero@gentoo.org>
Wed, 15 May 2013 16:41:41 +0000 (18:41 +0200)
committerReinhard Tartler <siretart@tauware.de>
Sat, 22 Jun 2013 06:48:37 +0000 (08:48 +0200)
commit7ca8d8223db270deb86d78b6361bec846feaaa9d
tree1946b27ad46c9cc159310a989e9d43ee10c377d1
parent33492ad81000b326ba98fe20d6007d4b67cbbd3d
mjpegdec: validate parameters in mjpeg_decode_scan_progressive_ac

Prevent out of buffer write when decoding broken samples.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
(cherry picked from commit cfbd98abe82cfcb9984a18d08697251b72b110c8)

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
libavcodec/mjpegdec.c