avformat/dsicin: Check packet size for overflow
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 23 Apr 2021 17:44:08 +0000 (19:44 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 31 Jul 2021 20:08:20 +0000 (22:08 +0200)
commit9d1c47ec033d038e04578eaf0767c8983250d03d
tree0157b2c5486dff0a8d05cbad45b80e498847c821
parent5e38eff284637e9f7c3c25d020df549ca6667e40
avformat/dsicin: Check packet size for overflow

Fixes: signed integer overflow: 24672 + 2147483424 cannot be represented in type 'int'
Fixes: 29102/clusterfuzz-testcase-minimized-ffmpeg_dem_DSICIN_fuzzer-6731325979623424

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