[FFmpeg-cvslog] avformat/ty: rec_size seems to only need 32bit

Michael Niedermayer git at videolan.org
Wed Jul 24 17:51:01 EEST 2024


ffmpeg | branch: release/4.3 | Michael Niedermayer <michael at niedermayer.cc> | Thu Jul 11 21:53:58 2024 +0200| [c31d0108b1dac0cad964c0f8e6641b54580bfe2d] | committer: Michael Niedermayer

avformat/ty: rec_size seems to only need 32bit

May help CID1604560 Overflowed integer argument

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

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

 libavformat/ty.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/ty.c b/libavformat/ty.c
index 738a22e7de..0f165d90a3 100644
--- a/libavformat/ty.c
+++ b/libavformat/ty.c
@@ -47,7 +47,7 @@ static const uint8_t ty_AC3AudioPacket[]  = { 0x00, 0x00, 0x01, 0xbd };
 #define CHUNK_PEEK_COUNT  3      /* number of chunks to probe */
 
 typedef struct TyRecHdr {
-    int64_t   rec_size;
+    int32_t   rec_size;
     uint8_t   ex[2];
     uint8_t   rec_type;
     uint8_t   subrec_type;



More information about the ffmpeg-cvslog mailing list