indeo5dec: Make sure we have had a valid gop header.
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 24 Mar 2012 16:43:55 +0000 (17:43 +0100)
committerAnton Khirnov <anton@khirnov.net>
Sat, 29 Sep 2012 07:26:30 +0000 (09:26 +0200)
commit891918431db628db17885ed947ee387b29826a64
tree3a16b786f3101ed011c9e18fc1f1f5ecef3e8115
parentc20a69630619d14ae92c5541d52c579d7c8f3e94
indeo5dec: Make sure we have had a valid gop header.

This prevents decoding happening on a half initialized context.

Fixes CVE-2012-2779

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/indeo5.c
libavcodec/ivi_common.c
libavcodec/ivi_common.h