This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 96994cbf55da07f3611152e51c6a237fa3e556d8 Author: Michael Niedermayer <[email protected]> AuthorDate: Tue Oct 6 06:54:36 2026 +0200 Commit: michaelni <[email protected]> CommitDate: Sun Oct 11 01:31:37 2026 +0000 avformat/whip: Only accept http resource urls from the Location header Fixes: local file truncation Fixes: NAqYLq2oM12K Fixes: AISLE-2026-0111-00068 Local file truncation Replicated through UnModified FFmpeg with a local WHIP test server Found-by: Joshua Rogers <[email protected]> --- libavformat/whip.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libavformat/whip.c b/libavformat/whip.c index cea9941878..d52b87976f 100644 --- a/libavformat/whip.c +++ b/libavformat/whip.c @@ -829,6 +829,12 @@ static int exchange_sdp(AVFormatContext *s) } if (ff_http_get_new_location(whip_uc)) { + proto_name = avio_find_protocol_name(ff_http_get_new_location(whip_uc)); + if (!proto_name || !av_strstart(proto_name, "http", NULL)) { + av_log(whip, AV_LOG_ERROR, "Unsupported resource url %s\n", ff_http_get_new_location(whip_uc)); + ret = AVERROR_INVALIDDATA; + goto end; + } whip->whip_resource_url = av_strdup(ff_http_get_new_location(whip_uc)); if (!whip->whip_resource_url) { ret = AVERROR(ENOMEM); -- 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]
