jvdec: check frame dimensions
authorAnton Khirnov <anton@khirnov.net>
Sun, 14 Dec 2014 20:01:59 +0000 (21:01 +0100)
committerAnton Khirnov <anton@khirnov.net>
Sat, 20 Dec 2014 09:51:40 +0000 (10:51 +0100)
commit55788572ea7b89cdd77bab1cf4bf06d14ead34f5
tree3e25af4f84fe8f3ff7671073c47ba3b659b49aa8
parentaa7a19b41774ce5f8a4e43f3692a4f9d90aa5c92
jvdec: check frame dimensions

The frame size must be set by the caller and each dimension must be a
multiple of 8.

CC: libav-stable@libav.org
Bug-ID: CVE-2014-8542
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
(cherry picked from commit 88626e5af8d006e67189bf10b96b982502a7e8ad)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/jvdec.c