diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-12-21 12:52:23 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-12-21 13:16:00 +0100 |
commit | 263105deebbd0a5737dfd1165668c7afb2cc870a (patch) | |
tree | 749c676ed38aadc633197586edec85217487b504 /libavcodec/vqavideo.c | |
parent | d1b8e01ef1fe53281e91e0e89be626fc759a2524 (diff) | |
download | ffmpeg-263105deebbd0a5737dfd1165668c7afb2cc870a.tar.gz |
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>
Diffstat (limited to 'libavcodec/vqavideo.c')
-rw-r--r-- | libavcodec/vqavideo.c | 2 |
1 files changed, 1 insertions, 1 deletions
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", |