Browse Source

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>
tags/n2.2-rc1
Michael Niedermayer 12 years ago
parent
commit
263105deeb
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/vqavideo.c

+ 1
- 1
libavcodec/vqavideo.c View File

@@ -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…
Cancel
Save