You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-16 22:42:38 +02:00
tiff: in add_string_metadata() check the count more completely
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@ -308,7 +308,7 @@ static int add_string_metadata(int count, const char *name,
|
||||
{
|
||||
char *value;
|
||||
|
||||
if (bytestream2_get_bytes_left(&s->gb) < count)
|
||||
if (bytestream2_get_bytes_left(&s->gb) < count || count < 0)
|
||||
return AVERROR_INVALIDDATA;
|
||||
|
||||
value = av_malloc(count + 1);
|
||||
|
Reference in New Issue
Block a user