avformat/flvdec: Check array entry number
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 11 Feb 2021 21:58:53 +0000 (22:58 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 1 Apr 2021 09:38:44 +0000 (11:38 +0200)
commit81178db83bfd9bd288b124306e0cd7d50255949d
treeb6d4691b596e4aa2adfd7920b5ed9444404315d1
parent039ecef275dae2fd459155be9700b98a8c69f932
avformat/flvdec: Check array entry number

Fixes: signed integer overflow: -2147483648 - 1 cannot be represented in type 'int'
Fixes: 30209/clusterfuzz-testcase-minimized-ffmpeg_dem_FLV_fuzzer-5724831658147840

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 b5d8fe1c874947ca67ee8117b18f8052f0e590fc)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/flvdec.c