mjpeg: Check the unescaped size for overflows
authorLuca Barbato <lu_zero@gentoo.org>
Sat, 29 Jun 2013 04:07:57 +0000 (06:07 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Sun, 30 Jun 2013 06:48:51 +0000 (08:48 +0200)
commit6765ee7b9cba46818a45b051438b2552f0a1b70a
tree74db7348a4bb223cda7b76bbdbf20ee7ce815f93
parent7520d9779c6d30b385df5a0a42da508238076192
mjpeg: Check the unescaped size for overflows

And contextually check init_get_bits success and fix the reporting
message.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
libavcodec/mjpegdec.c