rpcrt4: Initialise the memory in test_simple_struct_marshal before passing it to NdrSimpleStructUnmarshall.
rob at codeweavers.com
Fri Nov 30 15:31:40 CST 2007
Otherwise, the unmarshalling code will read from unintialised memory
when trying to reuse the embedded pointers in the memory block.
Also fix a couple of memory leaks.
dlls/rpcrt4/tests/ndr_marshall.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
This also fixes running the tests in Windows under a debugger, since
Windows calls a break point when freeing an invalid pointer, which
happened because of this code.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1269 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20071130/be6c6361/attachment.bin
More information about the wine-patches