[FFmpeg-devel] [PATCH 11/12] Fix out of bound reads in the QDM2 decoder.
fenrir at elivagar.org
fenrir at elivagar.org
Sat Oct 1 00:45:04 CEST 2011
From: Laurent Aimar <fenrir at videolan.org>
---
libavcodec/qdm2.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/libavcodec/qdm2.c b/libavcodec/qdm2.c
index 7a1f3e1..2827746 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);
--
1.7.2.5
More information about the ffmpeg-devel
mailing list