rpcrt4: Use safe_copy_from_buffer instead of direct memory copy in NdrBaseTypeUnmarshall.
commit8e08b1dd7f2b0ff6f72c5bcdf3e2f67a8c1cf448
authorRob Shearman <rob@codeweavers.com>
Mon, 28 Apr 2008 09:21:33 +0000 (28 10:21 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 28 Apr 2008 11:28:16 +0000 (28 13:28 +0200)
tree8a2e334378c29bd9db0626ce6d34f875dc7dd70d
parentc871d9a81d266ec08404136fc901631cc7c61f13
rpcrt4: Use safe_copy_from_buffer instead of direct memory copy in NdrBaseTypeUnmarshall.

This makes the code check that the buffer is big enough to read from
before copying the data from it. The safe_buffer_increment call is still
needed for the case where we point the memory to the buffer, so move the
call there.
dlls/rpcrt4/ndr_marshall.c