mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avformat/mov: Clear array to prevent potential out of array read from av_dlog()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
145a84717b
commit
62eafb6a0d
@ -380,7 +380,7 @@ static int mov_read_udta_string(MOVContext *c, AVIOContext *pb, MOVAtom atom)
|
||||
|
||||
// worst-case requirement for output string in case of utf8 coded input
|
||||
str_size_alloc = (raw ? str_size : str_size * 2) + 1;
|
||||
str = av_malloc(str_size_alloc);
|
||||
str = av_mallocz(str_size_alloc);
|
||||
if (!str)
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user