Browse Source

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>
tags/n0.9
Laurent Aimar Justin Ruggles 14 years ago
parent
commit
5a19acb17c
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/qdm2.c

+ 2
- 0
libavcodec/qdm2.c View File

@@ -1355,6 +1355,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);


Loading…
Cancel
Save