projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14f817d
)
pluginloader: Don't call memcpy() with NULL src and 0 length
author
Sebastian Dröge
<slomo@circular-chaos.org>
Tue, 20 Aug 2013 11:58:24 +0000
(13:58 +0200)
committer
Sebastian Dröge
<slomo@circular-chaos.org>
Tue, 20 Aug 2013 11:58:24 +0000
(13:58 +0200)
gst/gstpluginloader.c
patch
|
blob
|
history
diff --git
a/gst/gstpluginloader.c
b/gst/gstpluginloader.c
index
3a98943
..
b1bdcea
100644
(file)
--- a/
gst/gstpluginloader.c
+++ b/
gst/gstpluginloader.c
@@
-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);