avcodec/dxv: Correct integer overflow in get_opcodes()
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 2 Mar 2019 23:47:47 +0000 (00:47 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 9 Mar 2019 14:33:53 +0000 (15:33 +0100)
commit6e0b5d3a20e107860a34e90139b860d6b8219a1d
tree40ee3e9032d4d3289c2ed3a14c3f1e56bc09783d
parentf94b4f161151cc95b6d0ffc7671bbc0a1252130b
avcodec/dxv: Correct integer overflow in get_opcodes()

Fixes: 13099/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DXV_fuzzer-5665598896340992
Fixes: signed integer overflow: 2147483647 + 7 cannot be represented in type 'int'

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