avcodec/ilbcdec: Check startindex
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 20 Oct 2018 22:35:12 +0000 (00:35 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 22 Oct 2018 22:51:55 +0000 (00:51 +0200)
commite90f0ac334f2bec0961955dceb824148594a4016
tree669c4a36bec873c360729e5847e0981516ac17c2
parentda6db843b80e6140dbf28f05195b6a17018fd68c
avcodec/ilbcdec: Check startindex

Fixes: Out of array read
Fixes: 10789/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ILBC_fuzzer-5153255445757952

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