jpegls: check the scan offset
authorLuca Barbato <lu_zero@gentoo.org>
Fri, 17 May 2013 11:08:55 +0000 (13:08 +0200)
committerReinhard Tartler <siretart@tauware.de>
Sat, 22 Jun 2013 06:40:02 +0000 (08:40 +0200)
commitd26bc6c6b69f8f87e51430234bbf4b22962e2b3f
tree55225c3511376b76375932bf33f6ff01738d6918
parentca4a25acf89b715f8f587c947be7145d637a67d1
jpegls: check the scan offset

Prevent an out of array bound write.

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

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