Projects
Essentials
A_tw-ffmpeg-4
fix-CVE-2026-90816-part02.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-CVE-2026-90816-part02.patch of Package A_tw-ffmpeg-4
From 9bec746fe08748285de4b002dc0f93e9a6668fed Mon Sep 17 00:00:00 2001 From: Michael Niedermayer <michael@niedermayer.cc> Date: Tue, 11 Aug 2026 03:56:22 +0200 Subject: [PATCH] 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); -- 2.51.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.