]> git.sesse.net Git - ffmpeg/commit
avcodec/cfhd: Keep track of which subbands have been read
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 3 Apr 2021 14:04:48 +0000 (16:04 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 3 Apr 2021 17:27:21 +0000 (19:27 +0200)
commitda8c86dd8be244100da226a11b416c20d0c914d6
treea6e76741b77e977be48b02f621de112602c8dde4
parent3b88c88fa1888c47b0767d84bfebf1fd656c7846
avcodec/cfhd: Keep track of which subbands have been read

This avoids use of uninitialized data
also several checks are inside the band reading code
so it is important that it is run at least once

Fixes: out of array accesses
Fixes: 28209/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CFHD_fuzzer-5684714694377472
Fixes: 32124/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CFHD_fuzzer-5425980681355264
Fixes: 30519/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CFHD_fuzzer-4558757155700736
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
libavcodec/cfhd.h