swscale/utils: clear formatConvBuffer on allocation
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 27 Feb 2015 02:12:23 +0000 (03:12 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 27 Feb 2015 02:34:27 +0000 (03:34 +0100)
commit0b0a8cd133c711e6d74a57a3fa1d8eaa28b74ce8
treec9bc1cfbad531c6db327cc761204c499768497f2
parentdfc3cd73ff5554045b8035221c8f24d8a708717b
swscale/utils: clear formatConvBuffer on allocation

Fixes use of uninitialized memory
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 007498fc1a639ecee2cda1892cbcff66c7c8c951)

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