avcodec/ilbcdec: Limit indexes in create_augmented_vector()
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 10 Oct 2018 21:43:27 +0000 (23:43 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 18 Oct 2018 00:28:54 +0000 (02:28 +0200)
commit25eb10d941f35c3223300583588b1e13debc9288
tree26a79c9bbba33aa1a7bfee672eacd1f8dc38714a
parentc6282141cba20934d9801f31134872fabbd6ba3e
avcodec/ilbcdec: Limit indexes in create_augmented_vector()

These limits are based on limiting done in WebRtcIlbcfix_CreateAugmentedVec()
Fixes: out of array accesses
Fixes: 10652/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ILBC_fuzzer-5638941487661056
Fixes: 10655/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ILBC_fuzzer-5699970020147200

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