mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 08:12:44 +00:00
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>
This commit is contained in:
parent
da6db843b8
commit
e90f0ac334
@ -1372,7 +1372,7 @@ static int ilbc_decode_frame(AVCodecContext *avctx, void *data,
|
||||
|
||||
if (unpack_frame(s))
|
||||
mode = 0;
|
||||
if (s->frame.start < 1)
|
||||
if (s->frame.start < 1 || s->frame.start > 5)
|
||||
mode = 0;
|
||||
|
||||
if (mode) {
|
||||
|
Loading…
Reference in New Issue
Block a user