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:
21b2553
)
avformat/webvttdec: Dont skip over a never checked byte after -->
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 7 Jan 2014 03:08:18 +0000
(
04:08
+0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 7 Jan 2014 03:09:19 +0000
(
04:09
+0100)
Fixes use of uninitialized memory
Fixes: msan_uninit-mem_7f49667d83db_3396_WebVTT_capability_tester.vtt
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/webvttdec.c
patch
|
blob
|
history
diff --git
a/libavformat/webvttdec.c
b/libavformat/webvttdec.c
index
0654485
..
e457e8f
100644
(file)
--- a/
libavformat/webvttdec.c
+++ b/
libavformat/webvttdec.c
@@
-119,7
+119,7
@@
static int webvtt_read_header(AVFormatContext *s)
break;
if (!(p = strstr(p, "-->")))
break;
- p +=
3
;
+ p +=
2
;
do p++; while (*p == ' ' || *p == '\t');
if ((ts_end = read_ts(p)) == AV_NOPTS_VALUE)
break;