wmapro: check num_vec_coeffs against the actual available buffer
authorLuca Barbato <lu_zero@gentoo.org>
Fri, 28 Jun 2013 03:23:21 +0000 (05:23 +0200)
committerReinhard Tartler <siretart@tauware.de>
Sat, 6 Jul 2013 08:06:11 +0000 (10:06 +0200)
commit4e1999ebcb67436e7a2937248c0bd43ba548e7f4
tree158643f9e817f65c497f10ce512f986d428659f5
parent4ff5167ee7fdee6d35c1bb2558172329ae6ec770
wmapro: check num_vec_coeffs against the actual available buffer

Prevent yet another buffer overwrite.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
(cherry picked from commit 38229362529ed1619d8ebcc81ecde85b23b45895)

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
libavcodec/wmaprodec.c