diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-02-02 15:23:31 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-02-02 15:48:50 +0100 |
commit | 61f70416f8542cc86c84ae6e0342ba10a35d7cba (patch) | |
tree | 239bb3ecfe0c0d643cb8b8d1707adc380f3b02a8 | |
parent | 92cb9a38693245a050d4a0c19e38fca28633c222 (diff) | |
download | ffmpeg-61f70416f8542cc86c84ae6e0342ba10a35d7cba.tar.gz |
avcodec/dca_lbr: Fix off by 1 error in freq check
Fixes out of array read
Fixes: 510/clusterfuzz-testcase-5737865715646464
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/dca_lbr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dca_lbr.c b/libavcodec/dca_lbr.c index 342603c7d4..56c5f40982 100644 --- a/libavcodec/dca_lbr.c +++ b/libavcodec/dca_lbr.c @@ -310,7 +310,7 @@ static int parse_tonal(DCALbrDecoder *s, int group) break; // End of subframe freq += diff - 2; - if (freq >> (5 - group) > s->nsubbands * 4 - 5) { + if (freq >> (5 - group) > s->nsubbands * 4 - 6) { av_log(s->avctx, AV_LOG_ERROR, "Invalid spectral line offset\n"); return -1; } |