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>
Wed, 5 Jun 2019 11:19:59 +0000 (13:19 +0200)
commit8e520843dd76a644c019134ac7b17eba9f1118b3
tree95e5ddc82f1092b76712d9750d7ca7a2da4a688b
parenta99ffb5bb4454c625748972d9389cfaa5433a342
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>
libavcodec/dxv.c