avcodec/cfhd: Check destination space for bayer before writing
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 4 Aug 2019 10:03:35 +0000 (12:03 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 5 Aug 2019 15:54:24 +0000 (17:54 +0200)
commit58e084bd2c7bad8934e0c4eaf40e319927dae729
tree936b69bc6e83c86084267a21d46010b82b71f2d3
parentfe2e1cfc191d48c45f51feb61fa198a2403931c2
avcodec/cfhd: Check destination space for bayer before writing

Fixes: out of array write
Fixes: 16105/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CFHD_fuzzer-5690817309573120
Fixes: 16119/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CFHD_fuzzer-5099050675732480
Fixes: 16135/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CFHD_fuzzer-5705501601431552

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