avcodec/mpegvideo_motion: Fix gmc chroma dimensions
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 4 Feb 2015 21:30:08 +0000 (22:30 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 12 Feb 2015 16:10:36 +0000 (17:10 +0100)
commitc65a731b6f603789a16cf5ac275b67d85c6d92a6
tree165067c65c02f7de418c53d88cd8a3e92362f44d
parent58096b70fa9868bf8f40a998e9870e58fb4630ef
avcodec/mpegvideo_motion: Fix gmc chroma dimensions

Fixes integer overflow and out of array read
Fixes: asan_heap-oob_1fb2f9b_3780_cov_3984375136_usf.mkv

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit fd52d2d3d1ee41822a9801dffd41c0e1a2db32a8)

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