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>
Wed, 4 Feb 2015 23:33:50 +0000 (00:33 +0100)
commit692b22626ec9a9585f667c124a186b1a9796e432
tree0af9b5593c6b334bfcf81a6cd54f36f6763b3ff7
parentfd52d2d3d1ee41822a9801dffd41c0e1a2db32a8
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>
libswscale/utils.c