Projects
Essentials
A_tw-ffmpeg-4
fix-CVE-2026-90816-part01.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-CVE-2026-90816-part01.patch of Package A_tw-ffmpeg-4
From 06b9b57beef852cab1b3f9b6ba7bed7e9e8d38c1 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer <michael@niedermayer.cc> Date: Tue, 11 Aug 2026 02:58:47 +0200 Subject: [PATCH] avformat/hlsproto: clamp EXTINF and target duration to a 1ms minimum Fixes: infinite loop Fixes: https://code.ffmpeg.org/FFmpeg/FFmpeg/issues/21492 Found-by: Kery --- libavformat/hlsproto.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/hlsproto.c b/libavformat/hlsproto.c index 1c63a191cb..0ab2b52520 100644 --- a/libavformat/hlsproto.c +++ b/libavformat/hlsproto.c @@ -131,6 +131,7 @@ static int parse_playlist(URLContext *h, const char *url) bandwidth = atoi(info.bandwidth); } else if (av_strstart(line, "#EXT-X-TARGETDURATION:", &ptr)) { s->target_duration = atoi(ptr) * 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); } else if (av_strstart(line, "#EXT-X-ENDLIST", &ptr)) { @@ -138,6 +139,7 @@ static int parse_playlist(URLContext *h, const char *url) } else if (av_strstart(line, "#EXTINF:", &ptr)) { is_segment = 1; duration = atof(ptr) * AV_TIME_BASE; + duration = FFMAX(duration, 0.001 * AV_TIME_BASE); } else if (av_strstart(line, "#", NULL)) { continue; } else if (line[0]) { -- 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
.