[FFmpeg-cvslog] avformat/argo_asf: Use 64bit in offset intermediate

Michael Niedermayer git at videolan.org
Thu Jun 13 23:41:37 EEST 2024


ffmpeg | branch: release/5.1 | Michael Niedermayer <michael at niedermayer.cc> | Thu May 23 02:12:09 2024 +0200| [66e306b8e3a6da3f60f2714b57b177f930f993ca] | committer: Michael Niedermayer

avformat/argo_asf: Use 64bit in offset intermediate

Fixes: CID1467435 Unintentional integer overflow

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit d9d1f65308d40502015272a3d1cc9f805c77e075)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=66e306b8e3a6da3f60f2714b57b177f930f993ca
---

 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 39a60a0dde..f628cdaa23 100644
--- a/libavformat/argo_asf.c
+++ b/libavformat/argo_asf.c
@@ -257,7 +257,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;



More information about the ffmpeg-cvslog mailing list