This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/8.0 in repository ffmpeg.
commit 9bec746fe08748285de4b002dc0f93e9a6668fed Author: Michael Niedermayer <[email protected]> AuthorDate: Tue Aug 11 03:56:22 2026 +0200 Commit: Michael Niedermayer <[email protected]> CommitDate: Wed Oct 14 23:49:49 2026 +0200 avformat/hlsproto: reject out of range EXT-X-TARGETDURATION Fixes: signed integer overflow: 2148 * 1000000 cannot be represented in type 'int' --- libavformat/hlsproto.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libavformat/hlsproto.c b/libavformat/hlsproto.c index 0ab2b52520..d0cd9e9fa4 100644 --- a/libavformat/hlsproto.c +++ b/libavformat/hlsproto.c @@ -130,7 +130,12 @@ static int parse_playlist(URLContext *h, const char *url) &info); bandwidth = atoi(info.bandwidth); } else if (av_strstart(line, "#EXT-X-TARGETDURATION:", &ptr)) { - s->target_duration = atoi(ptr) * AV_TIME_BASE; + int64_t t = strtoll(ptr, NULL, 10); + if (t < 0 || t >= INT64_MAX / AV_TIME_BASE) { + ret = AVERROR_INVALIDDATA; + goto fail; + } + s->target_duration = t * AV_TIME_BASE; s->target_duration = FFMAX(s->target_duration, 0.001 * AV_TIME_BASE); } else if (av_strstart(line, "#EXT-X-MEDIA-SEQUENCE:", &ptr)) { s->start_seq_no = atoi(ptr); -- To stop receiving notification emails like this one, please contact [email protected]. _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
