Index: ipc/ipc_channel_posix.cc |
diff --git a/ipc/ipc_channel_posix.cc b/ipc/ipc_channel_posix.cc |
index 4ccf71215bf0f7e2684315c048af20f5444017c1..7aa04d2c65ed3534f3f46100641fa6c559495018 100644 |
--- a/ipc/ipc_channel_posix.cc |
+++ b/ipc/ipc_channel_posix.cc |
@@ -309,6 +309,8 @@ Channel::ChannelImpl::ChannelImpl(const IPC::ChannelHandle& channel_handle, |
pipe_name_(channel_handle.name), |
listener_(listener), |
must_unlink_(false) { |
+ memset(input_buf_, 0, sizeof(input_buf_)); |
+ memset(input_cmsg_buf_, 0, sizeof(input_cmsg_buf_)); |
if (!CreatePipe(channel_handle)) { |
// The pipe may have been closed already. |
const char *modestr = (mode_ & MODE_SERVER_FLAG) ? "server" : "client"; |