OSDN Git Service

avcodec/vmdav: return the amount of data that has been unpacked from lz_unpack()...
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 23 Dec 2013 17:09:58 +0000 (18:09 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 24 Dec 2013 23:44:58 +0000 (00:44 +0100)
commitf07ca542e371ec137d7192ccecf61ea889c13510
tree5768a510365e86992170b30f2510d94740bfad4e
parentbb9f55163f17145d5b220b38e23c7d55824ec7c5
avcodec/vmdav: return the amount of data that has been unpacked from lz_unpack() (as well as errors)

and setup the bytestream buffer size accordingly

Fixes use of uninitialized memory
Fixes: msan_uninit-mem_7fdcc513cd45_229_12.vmd
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/vmdav.c