avcodec/dxv: Check op_offset in dxv_decompress_cocg()
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 20 May 2019 23:33:03 +0000 (01:33 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 27 Jun 2019 15:50:47 +0000 (17:50 +0200)
commit43afeaa08652543fd44f993001b2be01aca122a6
treea2fa903cd10c08396727cf4217afd31be9af229d
parent04c3e3d4e257a7e46e7e699f5d26f849837f907d
avcodec/dxv: Check op_offset in dxv_decompress_cocg()

Fixes: signed integer overflow: -2147483648 - 12 cannot be represented in type 'int'
Fixes: 14732/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DXV_fuzzer-5735273129836544

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 8e520843dd76a644c019134ac7b17eba9f1118b3)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/dxv.c