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:25:12 +0000 (19:25 -0400)
commit4bccd5a36bb14d9befecdc10cd8c4c4a5d3d24fe
tree6a81167323f61a3020a1bbce36eaebd9599ef11b
parent07bff951764c129d39ab2e06a644b13d1f0d6e48
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