[NDR] Fix Overflow Check

Robert Shearman rob at codeweavers.com
Mon Nov 28 14:34:18 CST 2005


ChangeLog:
Fix the overflow check to not depend on pStubMsg->BufferStart and
pStubMsg->BufferEnd being valid, because they aren't filled in when
using MIDL-generated server stubs.

Don't set the pointer to NULL on unmarshaling because we may want to
unmarshal the value to an existing pointer instead of allocating a new one.

   dlls/rpcrt4/ndr_marshall.c |    7 +++----
   1 files changed, 3 insertions(+), 4 deletions(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 261093c236fcd5ee7c61bcffe26b39d7c63e47f7.diff
Type: text/x-patch
Size: 1194 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20051128/67ea9a8b/261093c236fcd5ee7c61bcffe26b39d7c63e47f7.diff


More information about the wine-patches mailing list