error_concealment: avoid using the picture if not fully setup
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 6 Aug 2014 17:19:57 +0000 (18:19 +0100)
committerAnton Khirnov <anton@khirnov.net>
Wed, 6 Aug 2014 19:29:48 +0000 (19:29 +0000)
commitc79cf0129edafc388ba1c47cd7b6a620557e48de
tree5870a9f6c10c68bb4cc60645d28fb14817eaef85
parent9d5f4f025304ac7c69775179044e6f69f370441a
error_concealment: avoid using the picture if not fully setup

Fixes state becoming inconsistent and a null pointer dereference.

CC: libav-stable@libav.org
Bug-Id: CVE-2013-0860
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/error_resilience.c