1
0
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:
Michael Niedermayer
2025-09-13 13:53:53 +02:00
committed by Leo Izen
parent 742b0d4675
commit 88e04205b3

View File

@@ -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;