swscale/utils: Limit filter shifting so as not to read from prior the array
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 4 Feb 2015 23:12:08 +0000 (00:12 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 13 Mar 2015 16:06:09 +0000 (17:06 +0100)
commit097417299a0ef87cb3d459388a4b313272d74c38
tree7f661f395ac31bf82caa0d18ab7fa7f3b41fad33
parent3a691185f732cbb5b350fbf2327817087b2a3a30
swscale/utils: Limit filter shifting so as not to read from prior the array

Fixes out of array read
Fixes: asan_heap-oob_1fb2f9b_3780_cov_3984375136_usf.mkv

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 692b22626ec9a9585f667c124a186b1a9796e432)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswscale/utils.c