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>
Wed, 13 Mar 2019 23:24:44 +0000 (00:24 +0100)
commitad12d9df1ed939e47cccc832ca4c363e68374adc
tree099c165a19729a248c722ba7cf238579bf46e460
parent67d030787e0b9b5350545bf2d2d64642d2c5ccb7
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>
(cherry picked from commit 6e0b5d3a20e107860a34e90139b860d6b8219a1d)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/dxv.c