[PATCH 1/2] rpcrt4: Unmarshalling functions should always set fMustAlloc when allocating memory.

Rob Shearman robertshearman at gmail.com
Sat Jan 10 16:17:15 CST 2009


The memory is uninitialised and so further unmarshalling shouldn't try
to reuse any memory. fMustAlloc is always set to TRUE when allocating
memory so that it is clear that the unmarshalling is safe and to avoid
future problems with change or the code being copied.
---
 dlls/rpcrt4/ndr_marshall.c |   43 +++++++++++++++++++++++++++++++++----------
 1 files changed, 33 insertions(+), 10 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0446df6d4823d2cd58f243e7a9fc84725f80e813.diff
Type: text/x-patch
Size: 4673 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20090110/d04e7aca/attachment-0001.bin 


More information about the wine-patches mailing list