From a1af74feda8f4e5aeae97da2aebd43d2fe8432eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 19 Jan 2018 20:43:57 +0000 Subject: [PATCH] tag: id3v2: don't leak stack pointer outside of block where it's valid https://bugzilla.gnome.org/show_bug.cgi?id=788548 --- gst-libs/gst/tag/id3v2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst-libs/gst/tag/id3v2.c b/gst-libs/gst/tag/id3v2.c index 5b76f75639..4d9a11fa7d 100644 --- a/gst-libs/gst/tag/id3v2.c +++ b/gst-libs/gst/tag/id3v2.c @@ -582,7 +582,9 @@ id3v2_frames_to_tag_list (ID3TagsWorking * work, guint size) id3v2_add_id3v2_frame_blob_to_taglist (work, work->hdr.frame_data - frame_hdr_size, frame_hdr_size + frame_size); } + work->frame_id = NULL; /* clear ref to loop-local storage */ } + work->hdr.frame_data += frame_size; work->hdr.frame_data_size -= frame_size; }