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>
Sat, 20 Dec 2014 09:51:41 +0000 (10:51 +0100)
commit58dc526ebf722d33bf09275c1241674e0e6b9ef1
tree78f644f3fef8e33101591fd87fce7329dc23dc71
parenteac49477aa95cf727d87d2741ee8e60be59d394b
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>
(cherry picked from commit d423dd72be451462c6fb1cbbe313bed0194001ab)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/smc.c