Commit c3e2bf80 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

pluginloader: Don't call memcpy() with NULL src and 0 length

parent 14f817d7
......@@ -586,7 +586,8 @@ put_packet (GstPluginLoader * l, guint type, guint32 tag,
/* 4 bytes packet length */
GST_WRITE_UINT32_BE (out + 4, payload_len);
/* payload */
memcpy (out + HEADER_SIZE, payload, payload_len);
if (payload && payload_len)
memcpy (out + HEADER_SIZE, payload, payload_len);
/* Write magic into the header */
GST_WRITE_UINT32_BE (out + 8, HEADER_MAGIC);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment