diff options
author | Laurent Aimar <fenrir@videolan.org> | 2011-10-01 00:45:04 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-10-01 02:41:40 +0200 |
commit | 491eaf35ae1f9b619441314bec33766e31580184 (patch) | |
tree | 97f0dc7dd5d0fbfa052ce6f5dd060986ddf356f4 /libavcodec/qdm2.c | |
parent | 346876ec168affe7c21be88d8f1acf1a75cc8409 (diff) | |
download | ffmpeg-491eaf35ae1f9b619441314bec33766e31580184.tar.gz |
Fix out of bound reads in the QDM2 decoder.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/qdm2.c')
-rw-r--r-- | libavcodec/qdm2.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/qdm2.c b/libavcodec/qdm2.c index 7a1f3e1021..2827746722 100644 --- a/libavcodec/qdm2.c +++ b/libavcodec/qdm2.c @@ -1354,6 +1354,8 @@ static void qdm2_fft_decode_tones (QDM2Context *q, int duration, GetBitContext * return; local_int_14 = (offset >> local_int_8); + if (local_int_14 >= FF_ARRAY_ELEMS(fft_level_index_table)) + return; if (q->nb_channels > 1) { channel = get_bits1(gb); |