This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/9.1 in repository ffmpeg.
commit c4f159ccd133f3cd9248908ae168e0eb45f408ff Author: Michael Niedermayer <[email protected]> AuthorDate: Mon Nov 16 06:56:38 2026 +0100 Commit: Michael Niedermayer <[email protected]> CommitDate: Thu Nov 19 14:55:53 2026 +0100 avformat/matroskadec: reject cue positions before the segment in the DASH manifest Signed integer overflow Replicated through API with UBSAN Fixes: signed integer overflow: 8872126588269895935 - -360550420148060339 cannot be represented in type 'int64_t' (aka 'long') Fixes: 575074290/clusterfuzz-testcase-minimized-ffmpeg_dem_WEBM_DASH_MANIFEST_fuzzer-6200621636845568 Fixes: a62kXgcPEXgR Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <[email protected]> (cherry picked from commit f3299781dfa5513eff172e8eaa07851129d23044) Signed-off-by: Michael Niedermayer <[email protected]> --- libavformat/matroskadec.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index d36cc5c345..1f6cb96b5c 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -4618,6 +4618,7 @@ static CueDesc get_cue_desc(AVFormatContext *s, int64_t ts, int64_t cues_start) AVIndexEntry *const index_entries = sti->index_entries; int nb_index_entries = sti->nb_index_entries; CueDesc cue_desc; + int64_t end_pos; int i; if (ts >= (int64_t)(matroska->duration * matroska->time_scale)) @@ -4631,6 +4632,9 @@ static CueDesc get_cue_desc(AVFormatContext *s, int64_t ts, int64_t cues_start) --i; if (index_entries[i].timestamp > matroska->duration) return (CueDesc) {-1, -1, -1, -1}; + end_pos = i != nb_index_entries - 1 ? index_entries[i + 1].pos : cues_start; + if (index_entries[i].pos < matroska->segment_start || end_pos < matroska->segment_start) + return (CueDesc) {-1, -1, -1, -1}; cue_desc.start_time_ns = index_entries[i].timestamp * matroska->time_scale; cue_desc.start_offset = index_entries[i].pos - matroska->segment_start; if (i != nb_index_entries - 1) { -- 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]
