]> git.sesse.net Git - ffmpeg/commit
avcodec/cook: Check subpacket index against max
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 27 Sep 2020 18:23:10 +0000 (20:23 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 17 Oct 2020 12:36:11 +0000 (14:36 +0200)
commit5a2a7604da5f7a2fc498d1d5c90bd892edac9ce8
treee67a8065ac17c40ea1e394e4282c38ce5d566d40
parent01bb12f883dccc419317516e093fdc6dfa41bc31
avcodec/cook: Check subpacket index against max

Fixes: off by 1 error
Fixes: index 5 out of bounds for type 'COOKSubpacket [5]'
Fixes: 25772/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_COOK_fuzzer-5762459498184704.fuzz
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/cook.c