[gst-cvs] gstreamer: pluginloader: Fix valgrind warnings by zeroing padding bytes.
Jan Schmidt
thaytan at kemper.freedesktop.org
Thu Oct 8 15:13:50 PDT 2009
Module: gstreamer
Branch: master
Commit: e3ce7d3e35608103f574d02217400c1fae2adf28
URL: http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=e3ce7d3e35608103f574d02217400c1fae2adf28
Author: Jan Schmidt <thaytan at noraisin.net>
Date: Thu Oct 8 23:10:40 2009 +0100
pluginloader: Fix valgrind warnings by zeroing padding bytes.
---
gst/gstpluginloader.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/gst/gstpluginloader.c b/gst/gstpluginloader.c
index 842ea01..60dfe88 100644
--- 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;
More information about the Gstreamer-commits
mailing list