OSDN Git Service

alsdec: check opt_order.
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 24 Mar 2012 00:39:13 +0000 (01:39 +0100)
committerJustin Ruggles <justin.ruggles@gmail.com>
Mon, 17 Sep 2012 18:17:26 +0000 (14:17 -0400)
commit9853e41aa0a6cfff629ff7009685eb8bf8d64e7f
tree7d4f0d87d5f5ee84d24c7065c790ee5cdede0b30
parent23aae62c2cb4504a09ceb8cd0cabc1c8b260f521
alsdec: check opt_order.

Fixes out of array write in quant_cof.
Also make sure no invalid opt_order stays in the context.

Fixes CVE-2012-2775

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
libavcodec/alsdec.c