[FFmpeg-cvslog] avcodec/vqavideo: check destination size on all exit pathes
Michael Niedermayer
git at videolan.org
Sat Dec 21 13:48:21 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Dec 21 12:52:23 2013 +0100| [263105deebbd0a5737dfd1165668c7afb2cc870a] | committer: 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: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=263105deebbd0a5737dfd1165668c7afb2cc870a
---
libavcodec/vqavideo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/vqavideo.c b/libavcodec/vqavideo.c
index 911e713..d544ad8 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",
More information about the ffmpeg-cvslog
mailing list