From 263105deebbd0a5737dfd1165668c7afb2cc870a Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 21 Dec 2013 12:52:23 +0100 Subject: [PATCH] avcodec/vqavideo: check destination size on all exit pathes Fixes part of msan_uninit-mem_7f841fe2ab3b_4608_cow2_1.vqa Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer --- libavcodec/vqavideo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/vqavideo.c b/libavcodec/vqavideo.c index 911e71339c..d544ad8db2 100644 --- a/libavcodec/vqavideo.c +++ b/libavcodec/vqavideo.c @@ -238,7 +238,7 @@ static int decode_format80(VqaContext *s, int src_size, /* 0x80 means that frame is finished */ if (opcode == 0x80) - return 0; + break; if (dest_index >= dest_size) { av_log(s->avctx, AV_LOG_ERROR, "decode_format80 problem: dest_index (%d) exceeded dest_size (%d)\n", -- 2.11.0