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:
55fa898
)
avformat/iff: check avio_read() return in get_metadata()
author
Michael Niedermayer
<michaelni@gmx.at>
Sat, 28 Dec 2013 23:57:15 +0000
(
00:57
+0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sat, 28 Dec 2013 23:58:13 +0000
(
00:58
+0100)
Fixes: msan_uninit-mem_7f9539ba8461_4760_dasboot_in_compressed
Fixes use of uninitialized memory
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/iff.c
patch
|
blob
|
history
diff --git
a/libavformat/iff.c
b/libavformat/iff.c
index
b5751c5
..
3838db1
100644
(file)
--- a/
libavformat/iff.c
+++ b/
libavformat/iff.c
@@
-118,7
+118,7
@@
static int get_metadata(AVFormatContext *s,
if (!buf)
return AVERROR(ENOMEM);
- if (avio_read(s->pb, buf, data_size)
< 0
) {
+ if (avio_read(s->pb, buf, data_size)
!= data_size
) {
av_free(buf);
return AVERROR(EIO);
}