OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec73bd1
)
avcodec/wnv1: clear padding area of rbuf
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 23 Dec 2013 17:09:58 +0000
(18:09 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Thu, 26 Dec 2013 12:53:15 +0000
(13:53 +0100)
Fixes use of uninitialized memory
Fixes: msan_uninit-mem_7faa48586020_2145_MAILTEST.AVI
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/wnv1.c
patch
|
blob
|
history
diff --git
a/libavcodec/wnv1.c
b/libavcodec/wnv1.c
index
d8532e4
..
99aee3c
100644
(file)
--- a/
libavcodec/wnv1.c
+++ b/
libavcodec/wnv1.c
@@
-78,6
+78,7
@@
static int decode_frame(AVCodecContext *avctx,
av_log(avctx, AV_LOG_ERROR, "Cannot allocate temporary buffer\n");
return AVERROR(ENOMEM);
}
+ memset(rbuf + buf_size, 0, FF_INPUT_BUFFER_PADDING_SIZE);
if ((ret = ff_get_buffer(avctx, p, 0)) < 0) {
av_free(rbuf);