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)
committerJustin Ruggles <justin.ruggles@gmail.com>
Mon, 7 May 2012 17:08:36 +0000 (13:08 -0400)
commit64953f67f98da2e787aeb45cc7f504390fa32a69
tree75f1992fc12835c3c92e7f2e6aaeb2d0deb779da
parent85e5b866dca776ba259113604c56136c2c8531b3
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>
libavcodec/qdm2.c