Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
182a2ae3
Commit
182a2ae3
authored
Jul 01, 2008
by
Rob Shearman
Committed by
Alexandre Julliard
Jul 02, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Reset the BufferLength to the used part of the buffer in NdrProxySendReceive.
This avoids sending uninitialised data on the wire.
parent
d5a8875b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
cproxy.c
dlls/rpcrt4/cproxy.c
+2
-0
No files found.
dlls/rpcrt4/cproxy.c
View file @
182a2ae3
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment