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 <michaelni@gmx.at>
This commit is contained in:
parent
d1b8e01ef1
commit
263105deeb
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user