[FFmpeg-trac] #11498(ffmpeg:new): HLS upload corrupted hostname any.tld -> any0.ts
FFmpeg
trac at avcodec.org
Sat Mar 8 19:00:34 EET 2025
#11498: HLS upload corrupted hostname any.tld -> any0.ts
-------------------------------------+----------------------------------
Reporter: Chad | Owner: (none)
Type: defect | Status: new
Priority: important | Component: ffmpeg
Version: unspecified | Resolution:
Keywords: security | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+----------------------------------
Comment (by Chad):
The problem is probably around line 3067 of libavformat/hlsenc.c
in hls_init(), line 2948, set pattern to "%d.ts"
{{{
pattern = hls->segment_type == SEGMENT_TYPE_FMP4 ? "%d.m4s" :
"%d.ts";
}}}
and later on 3067,
{{{
vs->basename = av_asprintf("%s%s", vs->m3u8_name, pattern);
}}}
so basename contains an unformatted "%d.ts". Basename sounds like
something that could be truncated from some larger name.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/11498#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list