You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-10-06 05:47:18 +02:00
avcodec/exif: Do not leave uninitialized pointers on errors in exif_clone_entry()
No testcase, but this looks like it could free garbage pointers Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
committed by
Leo Izen
parent
742b0d4675
commit
88e04205b3
@@ -950,6 +950,8 @@ static int exif_clone_entry(AVExifEntry *dst, const AVExifEntry *src)
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
memset(dst, 0, sizeof(*dst));
|
||||
|
||||
dst->count = src->count;
|
||||
dst->id = src->id;
|
||||
dst->type = src->type;
|
||||
|
Reference in New Issue
Block a user