summaryrefslogtreecommitdiff
path: root/libavformat/webvttdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-01-07 04:08:18 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-01-07 04:09:19 +0100
commitb0517467c0b60b9e9e1a660859727e1f512c70d0 (patch)
tree7d3b2b4f1cb2aa91192aa86f867dc98588f92a67 /libavformat/webvttdec.c
parent21b25537fb8f77b098575e90d8b24556451badf3 (diff)
downloadffmpeg-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/webvttdec.c')
-rw-r--r--libavformat/webvttdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/webvttdec.c b/libavformat/webvttdec.c
index 065448532d..e457e8f6d2 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;