avformat/vqf: Check header_size
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 18 Jun 2019 21:17:23 +0000 (23:17 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 29 Jun 2019 18:32:14 +0000 (20:32 +0200)
commit5b8bce805c687e3558f0c77deea49aa97190e0ed
tree1f2b3f805d0a3aa7d9ba72be81192c113adc4008
parent7daa138f6819ef5ec65fd6af52aeb2ebb0ed9486
avformat/vqf: Check header_size

Fixes: 15271/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5735262606327808
Fixes: signed integer overflow: -2147483648 - 8 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 7c30ff38880570377168096417f714b21102b343)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/vqf.c