diff options
author | Artem Smorodin <artem.smorodin@dacast.com> | 2025-07-26 19:09:54 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2025-07-28 17:27:51 +0200 |
commit | 0a108a37e15732ee61ee1f4be18553865f10bde4 (patch) | |
tree | ecbda022b5333715ad212cb3b92d156892ff981e /tools/target_dec_fuzzer.c | |
parent | 4b6f6af384a76b8ca1cbb4fdde734ffaf111a934 (diff) | |
download | ffmpeg-0a108a37e15732ee61ee1f4be18553865f10bde4.tar.gz |
avformat/hlsenc: limit segments count to search duplicated segments filenames
This linear search has a complexity of O(n). When ffmpeg attempts to parse a playlist containing approximately 100,000 segments, it effectively causes a hang for several minutes.
This patch limits the allowed size for duplicate searches to a reasonable value. Now it takes between 0.5 and a few seconds (tested on different devices) instead of several minutes.
Signed-off-by: Artem Smorodin <artem.smorodin@dacast.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'tools/target_dec_fuzzer.c')
0 files changed, 0 insertions, 0 deletions