Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-01-11 04:59:20 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-01-11 05:03:20 +0400
commitae3856dcaf9c5ef339969c95a72bcaf7c4bba9ec (patch)
treedfe03fa35701a8776d8935edf3449b782b83a346 /libavcodec/wmalosslessdec.c
parent03fff09b32171e0c76d104c02ebf578c7f4fe21d (diff)
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: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/wmalosslessdec.c')
-rw-r--r--libavcodec/wmalosslessdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/wmalosslessdec.c b/libavcodec/wmalosslessdec.c
index 6e5100d3c5..8a08f5a6d4 100644
--- a/libavcodec/wmalosslessdec.c
+++ b/libavcodec/wmalosslessdec.c
@@ -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;
}