smc: fix the bounds check
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 3 Oct 2014 20:50:45 +0000 (22:50 +0200)
committerAnton Khirnov <anton@khirnov.net>
Fri, 19 Dec 2014 07:01:47 +0000 (08:01 +0100)
commitd423dd72be451462c6fb1cbbe313bed0194001ab
tree40997ea03bfc5587db860c5833fe6dc0197e59ae
parent0b39ac6f54505a538c21fe49a626de94c518c903
smc: fix the bounds check

Fixes invalid writes when there are more blocks in a run than total
remaining blocks.

CC: libav-stable@libav.org
Bug-ID: CVE-2014-8548
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/smc.c