From 62081fe5836cfeaa99ed75f94d1db552e123a7ac Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Thu, 2 Nov 2017 08:18:26 +0100 Subject: [PATCH] vorbistag: Check whether tag name is valid In the same way we check before whether the content of the tag is UTF-8 --- gst-libs/gst/tag/gstvorbistag.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/tag/gstvorbistag.c b/gst-libs/gst/tag/gstvorbistag.c index 7ec4fb26c2..041fe9870d 100644 --- a/gst-libs/gst/tag/gstvorbistag.c +++ b/gst-libs/gst/tag/gstvorbistag.c @@ -480,7 +480,7 @@ gst_tag_list_from_vorbiscomment (const guint8 * data, gsize size, gst_vorbis_tag_add_coverart (list, value, value_len); } else if (g_ascii_strcasecmp (cur, "METADATA_BLOCK_PICTURE") == 0) { gst_vorbis_tag_add_metadata_block_picture (list, value, value_len); - } else { + } else if (g_utf8_validate (cur, cur_size, NULL)) { gst_vorbis_tag_add (list, cur, value); } g_free (cur);