avcodec/wmalosslessdec: shrink output on error so no uninitialized data is returned
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 11 Jan 2014 01:04:01 +0000 (02:04 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 13 Jan 2014 15:10:25 +0000 (16:10 +0100)
commit57824d1ba6174a44668ff333318ab58bd8fbd8f3
treeedf00efa0d4df11b6955a158147c11e55f7c95bf
parentcd753ee36b0f59123d9786c95cbc57c48bd59791
avcodec/wmalosslessdec: shrink output on error so no uninitialized data is returned

Fixes use of uninitialized memory
partly fixes: msan_uninit-mem_7f7834b6a530_6473_luckynight-partial.wma
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 6b18a6839b43ea78e70cd3e35f781d1c955bda73)

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