Commit b0517467 authored by Michael Niedermayer's avatar 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: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 21b25537
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment