Commit 182a2ae3 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

rpcrt4: Reset the BufferLength to the used part of the buffer in NdrProxySendReceive.

This avoids sending uninitialised data on the wire.
parent d5a8875b
...@@ -385,6 +385,8 @@ void WINAPI NdrProxySendReceive(void *This, ...@@ -385,6 +385,8 @@ void WINAPI NdrProxySendReceive(void *This,
} }
pStubMsg->dwStubPhase = PROXY_SENDRECEIVE; pStubMsg->dwStubPhase = PROXY_SENDRECEIVE;
/* avoid sending uninitialised parts of the buffer on the wire */
pStubMsg->RpcMsg->BufferLength = pStubMsg->Buffer - (unsigned char *)pStubMsg->RpcMsg->Buffer;
hr = IRpcChannelBuffer_SendReceive(pStubMsg->pRpcChannelBuffer, hr = IRpcChannelBuffer_SendReceive(pStubMsg->pRpcChannelBuffer,
(RPCOLEMESSAGE*)pStubMsg->RpcMsg, (RPCOLEMESSAGE*)pStubMsg->RpcMsg,
&Status); &Status);
......
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