Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Aimar <fenrir@videolan.org>2011-10-01 02:45:04 +0400
committerMichael Niedermayer <michaelni@gmx.at>2011-10-01 23:03:40 +0400
commite0fb22cea9056afd30848d9d51e92f5ae24ea0f6 (patch)
tree6563783dd6b24d21f844a5047425fc95f0cbddd3 /libavcodec/qdm2.c
parent802045777afe0c04cc42ef11f59e273239faaa99 (diff)
Fix out of bound reads in the QDM2 decoder.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 491eaf35ae1f9b619441314bec33766e31580184)
Diffstat (limited to 'libavcodec/qdm2.c')
-rw-r--r--libavcodec/qdm2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/qdm2.c b/libavcodec/qdm2.c
index 6eb836456c..a6192e91c2 100644
--- a/libavcodec/qdm2.c
+++ b/libavcodec/qdm2.c
@@ -1353,6 +1353,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);