wmalosslessdec: Fix reading too many bits in decode_channel_residues()
authorAnton Khirnov <anton@khirnov.net>
Sat, 29 Sep 2012 17:16:32 +0000 (19:16 +0200)
committerAnton Khirnov <anton@khirnov.net>
Sat, 29 Sep 2012 17:16:32 +0000 (19:16 +0200)
commit6a99310fce49f51773ab7d8ffa4f4748bbf58db9
tree778a0336b11945e4c0b8ba9165195b876042ed8f
parentf48fbf2eb5ba7015c65b31c266edf399dd6a82b1
wmalosslessdec: Fix reading too many bits in decode_channel_residues()

Fixes a part of CVE-2012-2795

CC:libav-stable@libav.org

Based on a patch by Michael Niedermayer <michaelni@gmx.at>

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
libavcodec/wmalosslessdec.c