mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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>
(cherry picked from commit 046d069552
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
37f05d29b6
commit
439ca028bb
@ -306,7 +306,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;
|
||||
|
Loading…
Reference in New Issue
Block a user