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:
1935173
)
avcodec/nuv: zero buffer padding
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 18 Dec 2013 17:14:24 +0000
(18:14 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 18 Dec 2013 17:15:15 +0000
(18:15 +0100)
Fixes use of uninitialized memory
Fixes msan_uninit-mem_7f4a141261de_7405_nirvana.nuv
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/nuv.c
patch
|
blob
|
history
diff --git
a/libavcodec/nuv.c
b/libavcodec/nuv.c
index
d4d9318
..
358bf05
100644
(file)
--- a/
libavcodec/nuv.c
+++ b/
libavcodec/nuv.c
@@
-218,6
+218,7
@@
retry:
}
buf = c->decomp_buf;
buf_size = c->decomp_size - FFMAX(FF_INPUT_BUFFER_PADDING_SIZE, AV_LZO_OUTPUT_PADDING) - outlen;
+ memset(c->decomp_buf + buf_size, 0, FF_INPUT_BUFFER_PADDING_SIZE);
}
if (c->codec_frameheader) {
int w, h, q;