xmptag: fix invalid reads in GST_DEBUG statement

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
This commit is contained in:
Guillaume Desmottes 2015-04-24 14:59:21 +02:00 committed by Tim-Philipp Müller
parent df08f5eabe
commit 2b0b08b74c

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