Commit ae3856dc authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/wmalosslessdec: deallocate uninitialized frame on decode_tilehdr() failure

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: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 03fff09b
......@@ -1040,6 +1040,7 @@ static int decode_frame(WmallDecodeCtx *s)
/* decode tile information */
if ((ret = decode_tilehdr(s))) {
s->packet_loss = 1;
av_frame_unref(s->frame);
return ret;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment