Commit 263105de authored by Michael Niedermayer's avatar Michael Niedermayer

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: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent d1b8e01e
...@@ -238,7 +238,7 @@ static int decode_format80(VqaContext *s, int src_size, ...@@ -238,7 +238,7 @@ static int decode_format80(VqaContext *s, int src_size,
/* 0x80 means that frame is finished */ /* 0x80 means that frame is finished */
if (opcode == 0x80) if (opcode == 0x80)
return 0; break;
if (dest_index >= dest_size) { if (dest_index >= dest_size) {
av_log(s->avctx, AV_LOG_ERROR, "decode_format80 problem: dest_index (%d) exceeded dest_size (%d)\n", av_log(s->avctx, AV_LOG_ERROR, "decode_format80 problem: dest_index (%d) exceeded dest_size (%d)\n",
......
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