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:
5dbe63c
)
pluginloader: Fix valgrind warnings by zeroing padding bytes.
author
Jan Schmidt
<thaytan@noraisin.net>
Thu, 8 Oct 2009 22:10:40 +0000
(23:10 +0100)
committer
Jan Schmidt
<thaytan@noraisin.net>
Thu, 8 Oct 2009 22:10:40 +0000
(23:10 +0100)
gst/gstpluginloader.c
patch
|
blob
|
history
diff --git
a/gst/gstpluginloader.c
b/gst/gstpluginloader.c
index
842ea01
..
60dfe88
100644
(file)
--- a/
gst/gstpluginloader.c
+++ b/
gst/gstpluginloader.c
@@
-525,6
+525,9
@@
put_chunk (GstPluginLoader * l, GstRegistryChunk * chunk, guint * pos)
}
out = l->tx_buf + l->tx_buf_write;
+ /* Clear the padding */
+ if (padsize)
+ memset (out, 0, padsize);
memcpy (out + padsize, chunk->data, chunk->size);
l->tx_buf_write += len;