diff options
author | Laurent Aimar <fenrir@videolan.org> | 2011-10-01 00:45:04 +0200 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2011-12-24 15:17:00 +0100 |
commit | 8856c4c5c924b85888fcaf486e71ba15b8af610b (patch) | |
tree | 390aebf42d9db5d6821ded80184c967980da586e | |
parent | 0f7bf1786e43d05c4ec1667a1457df7b22b05561 (diff) | |
download | ffmpeg-8856c4c5c924b85888fcaf486e71ba15b8af610b.tar.gz |
Fix out of bound reads in the QDM2 decoder.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
(cherry picked from commit 5a19acb17ceb71657b0eec51dac651953520e5c8)
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
(cherry picked from commit 0d93d5c4614fafea74bdac681673f5b32eb49063)
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
-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 3273dd1795..ec33c492f4 100644 --- a/libavcodec/qdm2.c +++ b/libavcodec/qdm2.c @@ -1356,6 +1356,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); |