mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 03:59:43 +00:00
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>
This commit is contained in:
parent
21b25537fb
commit
b0517467c0
@ -119,7 +119,7 @@ static int webvtt_read_header(AVFormatContext *s)
|
|||||||
break;
|
break;
|
||||||
if (!(p = strstr(p, "-->")))
|
if (!(p = strstr(p, "-->")))
|
||||||
break;
|
break;
|
||||||
p += 3;
|
p += 2;
|
||||||
do p++; while (*p == ' ' || *p == '\t');
|
do p++; while (*p == ' ' || *p == '\t');
|
||||||
if ((ts_end = read_ts(p)) == AV_NOPTS_VALUE)
|
if ((ts_end = read_ts(p)) == AV_NOPTS_VALUE)
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user