utvideodec: Handle slice_height being zero
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 4 Mar 2015 17:36:14 +0000 (17:36 +0000)
committerReinhard Tartler <siretart@tauware.de>
Tue, 10 Mar 2015 02:08:49 +0000 (22:08 -0400)
commit335ec616cc38ee6206a3acebd46d01aad73d721b
tree8e81b034fec7adb7d9d17d73224d75ffbe99e18f
parent76435f5e40854567252756ea7f788958dd2cc04c
utvideodec: Handle slice_height being zero

Fixes out of array accesses.

CC: libav-stable@libav.org
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Bug-Id: CVE-2014-9604
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
(cherry picked from commit 0ce3a0f9d9523a9bcad4c6d451ca5bbd7a4f420d)
(cherry picked from commit 3a417a86b330b7c1acf9db4f729be7d619caaded)
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
(cherry picked from commit e032e647dd79e7748145792dfee0358eccb1982e)
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
(cherry picked from commit 789f433bc6376e6e45d41ae491007d482fa1df85)

Conflicts:
libavcodec/utvideodec.c
libavcodec/utvideo.c