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)
committerLuca Barbato <lu_zero@gentoo.org>
Tue, 21 May 2013 07:46:02 +0000 (09:46 +0200)
commitcfbd98abe82cfcb9984a18d08697251b72b110c8
tree1cdd969d82f969452a2067132249768e87317c07
parentc209d0df657f172f42d9bafbcdfa02dfb14f6965
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
libavcodec/mjpegdec.c