avformat/vividas: Check that value from ffio_read_varlen() does not overflow
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 20 Jul 2019 20:41:08 +0000 (22:41 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 3 Aug 2019 15:44:23 +0000 (17:44 +0200)
commit07357cd93355d553dde698933a8176dd48b98344
tree8cfb44ec9cd26fc57f03230f9124cc54fa42945b
parent8bac648359b78cd4aa02b5fc91c24a32cc3bddfa
avformat/vividas: Check that value from ffio_read_varlen() does not overflow

Fixes: signed integer overflow: -1241665686 + -1340629419 cannot be represented in type 'int'
Fixes: 15922/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5692826442006528

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/vividas.c