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>
Thu, 12 Feb 2015 16:10:36 +0000 (17:10 +0100)
commit6252e9141ba5cc1fb3a270e0405f107ac16a36f7
tree3521fbcf7d34f6fc647dd3dd0e81088b31a32696
parentc65a731b6f603789a16cf5ac275b67d85c6d92a6
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