avcodec/ivi: Check image dimensions
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 14 Nov 2015 01:36:22 +0000 (02:36 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 26 Nov 2015 15:05:41 +0000 (16:05 +0100)
commitf64ffbbdc0cc35fa3a478a8e6ca8b2342240bd02
tree42b8f617ead16de0bbb129cf5a2e63ac46a79426
parentc0748b9954c8cc8fd2aec10f722000c9ec1f349c
avcodec/ivi: Check image dimensions

Fixes integer overflow
Fixes: 1e32c6c591d940337c20b197ec1c4d3d/asan_heap-oob_4a52e5_8946_0bb0d9e863def56005e49f1d89bdc94d.avi

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit df91aa034b82b77a3c4e01791f4a2b2ff6c82066)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/ivi.c