[FFmpeg-devel] [PATCH 4/7] avformat/argo_asf: Use 64bit in offset intermediate
Michael Niedermayer
michael at niedermayer.cc
Thu May 23 04:17:55 EEST 2024
Fixes: CID1467435 Unintentional integer overflow
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
libavformat/argo_asf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/argo_asf.c b/libavformat/argo_asf.c
index 61bfc6de1fc..e08f029f80c 100644
--- a/libavformat/argo_asf.c
+++ b/libavformat/argo_asf.c
@@ -259,7 +259,7 @@ static int argo_asf_seek(AVFormatContext *s, int stream_index,
return -1;
offset = asf->fhdr.chunk_offset + ASF_CHUNK_HEADER_SIZE +
- (block * st->codecpar->block_align);
+ block * (int64_t)st->codecpar->block_align;
if ((offset = avio_seek(s->pb, offset, SEEK_SET)) < 0)
return offset;
--
2.45.1
More information about the ffmpeg-devel
mailing list