qdm2: clip array indices returned by qdm2_get_vlc().
authorRonald S. Bultje <rsbultje@gmail.com>
Wed, 2 May 2012 16:12:46 +0000 (16:12 +0000)
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>
Sat, 2 Jun 2012 23:17:53 +0000 (19:17 -0400)
commitc38d3e1a39b28937692a2c0eb39b25d8bc07d7bb
treec575782739b0cbfb39af03d5859106f65d0e8945
parent5872580e65aab026b77754eb184f97ba7cc6ea35
qdm2: clip array indices returned by qdm2_get_vlc().

Prevents subsequent overreads when these numbers are used as indices
in arrays.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
(cherry picked from commit 64953f67f98da2e787aeb45cc7f504390fa32a69)
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Conflicts:

libavcodec/qdm2.c
libavcodec/qdm2.c