diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2024-07-11 20:03:45 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2024-07-21 16:41:35 +0200 |
commit | 046d069552f5c2824f36fcf95d409670208dc94b (patch) | |
tree | 930eec997bad86d2c1a0b413829aa6f52b7b2988 /libavformat/mov.c | |
parent | 139bf412464e62a83984cd49093936dcaa7a0865 (diff) | |
download | ffmpeg-046d069552f5c2824f36fcf95d409670208dc94b.tar.gz |
avformat/mov: Use 64bit for str_size
We assign a 64bit variable to it before checking
Fixes: CID1604544 Overflowed integer argument
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r-- | libavformat/mov.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index a29283effa..dfe056660a 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -333,7 +333,8 @@ static int mov_read_udta_string(MOVContext *c, AVIOContext *pb, MOVAtom atom) char *str = NULL; const char *key = NULL; uint16_t langcode = 0; - uint32_t data_type = 0, str_size, str_size_alloc; + uint32_t data_type = 0, str_size_alloc; + uint64_t str_size; int (*parse)(MOVContext*, AVIOContext*, unsigned, const char*) = NULL; int raw = 0; int num = 0; |