From 5de49f09d801ef6bdfa7af125afb641358d0cfcf Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 2 May 2026 12:57:48 +0200 Subject: [PATCH] libavformat/xwma: fix overflow in seek position Fixes: signed integer overflow Found-by: Marius Momeu Signed-off-by: Michael Niedermayer (cherry picked from commit 2d4ec463459cdf993b454ede0dabcbc581d0a90e) Signed-off-by: Michael Niedermayer --- libavformat/xwma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/xwma.c b/libavformat/xwma.c index 61372b08cb..f386d510a6 100644 --- a/libavformat/xwma.c +++ b/libavformat/xwma.c @@ -267,7 +267,7 @@ static int xwma_read_header(AVFormatContext *s) * an offset / timestamp pair. */ av_add_index_entry(st, - cur_pos + (i+1) * st->codecpar->block_align, /* pos */ + cur_pos + (i+1LL) * st->codecpar->block_align, /* pos */ dpds_table[i] / bytes_per_sample, /* timestamp */ st->codecpar->block_align, /* size */ 0, /* duration */