avcodec/utvideodec: Fix handling of slice_height=0
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 16 Dec 2014 19:45:31 +0000 (20:45 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 16 Dec 2014 22:06:23 +0000 (23:06 +0100)
commit64fdce7802632801d36f9d3973a065e0e011c154
tree10ca53856b736dcf33beeda294d261fdb40b64ce
parent195e8ecacc8b81b71e86d283ce7742bbdc230826
avcodec/utvideodec: Fix handling of slice_height=0

Fixes out of array accesses
Fixes: asan_heap-oob_25bcd7e_3783_cov_3553517262_utvideo_rgba_median.avi
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 3881606240953b9275a247a1c98a567f3c44890f)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/utvideodec.c