diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-01-07 04:08:18 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-01-07 04:09:19 +0100 |
commit | b0517467c0b60b9e9e1a660859727e1f512c70d0 (patch) | |
tree | 7d3b2b4f1cb2aa91192aa86f867dc98588f92a67 /libavformat | |
parent | 21b25537fb8f77b098575e90d8b24556451badf3 (diff) | |
download | ffmpeg-streaming-b0517467c0b60b9e9e1a660859727e1f512c70d0.zip ffmpeg-streaming-b0517467c0b60b9e9e1a660859727e1f512c70d0.tar.gz |
avformat/webvttdec: Dont skip over a never checked byte after -->
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>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/webvttdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/webvttdec.c b/libavformat/webvttdec.c index 0654485..e457e8f 100644 --- 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; |