swscale/utils: More carefully merge and clear coefficients outside the input
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 23 Feb 2015 23:32:39 +0000 (00:32 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 25 Feb 2015 02:35:20 +0000 (03:35 +0100)
commita79e5c994cf9af9cdd527fd9a2f7b8f9e02e84b0
treebdbc9d43aa62f0e12f0a26c38cba85781ddeca89
parent1a8f9f0e589892f3d2d6f08e8fb3592d709bfb96
swscale/utils: More carefully merge and clear coefficients outside the input

Fixes out of array read
Fixes: asan_heap-oob_35ca682_1474_cov_3230122439_aletrek_tga_16bit.mov

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

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