avformat/4xm: shrink packet if it was only partially initialized
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 21 Dec 2013 11:52:23 +0000 (12:52 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 22 Dec 2013 00:48:33 +0000 (01:48 +0100)
commit9b195dd5793edb88a72d53cb080c2216e91a5849
tree3d330c0f10fad25ed406ab0822e4fb56bc9733c8
parent2c635fabbf7ec8ed4f30d9b3c04d5c24cb7a081d
avformat/4xm: shrink packet if it was only partially initialized

Fixes use of uninitialized memory
Fixes: msan_uninit-mem_7f6c76ab7950_4920_dracula.4xm
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/4xm.c