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>
Fri, 13 Mar 2015 16:06:09 +0000 (17:06 +0100)
commit81f80d7b48ec0e8b1e5c68304345877773d29362
treed12fab326b5241845f65f35fcb24c1d08387b5d5
parentcbda3825262c211d14cd349f38e65b42e4845037
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