xmptag: fix invalid reads in GST_DEBUG statement
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 24 Apr 2015 12:59:21 +0000 (14:59 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 24 Apr 2015 16:32:51 +0000 (17:32 +0100)
Don't try to print a string that is not NUL-terminated. This
log line does not really seem useful so let's just drop it.

https://bugzilla.gnome.org/show_bug.cgi?id=748413

gst-libs/gst/tag/gstxmptag.c

index 57c104d..52112a0 100644 (file)
@@ -1237,7 +1237,6 @@ gst_tag_list_from_xmp_buffer (GstBuffer * buffer)
   if (len < max_ft_len)
     goto missing_footer;
 
-  GST_DEBUG ("checking footer: [%s]", &xps[len - max_ft_len]);
   xp2 = g_strstr_len (&xps[len - max_ft_len], max_ft_len, "<?xpacket ");
   if (!xp2)
     goto missing_footer;