avcodec/mlz: Check offset before writing
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 8 Sep 2016 17:48:06 +0000 (19:48 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 8 Sep 2016 18:31:15 +0000 (20:31 +0200)
commitc0fc83ed41edec476c1b9601e1bc0177967ce206
tree16da9aa60f4fb748b00b57b13ce48ad0ed7e3ceb
parent2f7a12fab5a2ea17bd78b155e9af965669fb9b52
avcodec/mlz: Check offset before writing

Fixes: 0cee183a09bff5aa5108429717c35a4d/asan_heap-oob_1d99eca_3702_9ef60e80de79082a778d3d9ce8ef3b64.mp4
Affects no release

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mlz.c