mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
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:
parent
df08f5eabe
commit
2b0b08b74c
1 changed files with 0 additions and 1 deletions
|
@ -1237,7 +1237,6 @@ gst_tag_list_from_xmp_buffer (GstBuffer * buffer)
|
||||||
if (len < max_ft_len)
|
if (len < max_ft_len)
|
||||||
goto missing_footer;
|
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 ");
|
xp2 = g_strstr_len (&xps[len - max_ft_len], max_ft_len, "<?xpacket ");
|
||||||
if (!xp2)
|
if (!xp2)
|
||||||
goto missing_footer;
|
goto missing_footer;
|
||||||
|
|
Loading…
Reference in a new issue