avcodec/dxv: Check op_offset in both directions
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 26 Jun 2019 22:29:06 +0000 (00:29 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 24 Sep 2019 10:28:26 +0000 (12:28 +0200)
commit8c7d5fcfc32d65951039ab2bb78947a41bdd96c4
tree5e70c11c8002d1ef6f4e0219349cc2903518467c
parentc7c0229bebbb2ea6eec6eddb75774eca3e33d075
avcodec/dxv: Check op_offset in both directions

Fixes: signed integer overflow: 61 + 2147483647 cannot be represented in type 'int'
Fixes: 15311/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DXV_fuzzer-5742552826773504

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