avformat/mov: Check comp_brand_size
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 1 Aug 2020 22:51:12 +0000 (00:51 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 4 Aug 2020 16:27:51 +0000 (18:27 +0200)
commitffa6072fc727a14680a85449259f6b49b47587e6
tree2ded826895fb88322781584ced22ca21b497ff8b
parentfd0064f75bfe8bab9e16c32aab4efc24889a3cd0
avformat/mov: Check comp_brand_size

Fixes: signed integer overflow: 2147483647 + 1 cannot be represented in type 'int'
Fixes: 24457/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5760093644390400

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