diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2018-10-21 01:35:12 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2018-10-23 01:51:55 +0300 |
commit | e90f0ac334f2bec0961955dceb824148594a4016 (patch) | |
tree | 669c4a36bec873c360729e5847e0981516ac17c2 /libavcodec/ilbcdec.c | |
parent | da6db843b80e6140dbf28f05195b6a17018fd68c (diff) |
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>
Diffstat (limited to 'libavcodec/ilbcdec.c')
-rw-r--r-- | libavcodec/ilbcdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ilbcdec.c b/libavcodec/ilbcdec.c index 8f234b98e1..8a6dbe0b75 100644 --- a/libavcodec/ilbcdec.c +++ b/libavcodec/ilbcdec.c @@ -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) { |