[FFmpeg-cvslog] avformat/webvttdec: Dont skip over a never checked byte after -->

Michael Niedermayer git at videolan.org
Tue Jan 7 04:23:01 CET 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Jan  7 04:08:18 2014 +0100| [b0517467c0b60b9e9e1a660859727e1f512c70d0] | committer: Michael Niedermayer

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 at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b0517467c0b60b9e9e1a660859727e1f512c70d0
---

 libavformat/webvttdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;



More information about the ffmpeg-cvslog mailing list