This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 337b884a4ea56a84e269a40154328f99731f0d9c Author: Niklas Haas <[email protected]> AuthorDate: Mon Jun 29 16:57:34 2026 +0200 Commit: Kacper Michajłow <[email protected]> CommitDate: Mon Jul 27 17:05:20 2026 +0000 avformat/libcurl: guard against integer overflow on start_request() The failure mode here is to just request the rest of the file, which is explicitly safe. Sponsored-by: nxtedition AB Signed-off-by: Niklas Haas <[email protected]> --- libavformat/libcurl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/libcurl.c b/libavformat/libcurl.c index b6378cb8d5..2d625915ca 100644 --- a/libavformat/libcurl.c +++ b/libavformat/libcurl.c @@ -369,7 +369,7 @@ static void start_request(CurlContext *c) request_size = c->initial_request_size; if (request_size > 0 || c->end_off > 0) { int64_t end = INT64_MAX; - if (request_size > 0) + if (request_size > 0 && start <= INT64_MAX - request_size) end = start + request_size - 1; if (c->content_size > 0) end = FFMIN(end, c->content_size - 1); _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
