Author: tfaber Date: Sat Oct 26 18:48:53 2013 New Revision: 60754
URL: http://svn.reactos.org/svn/reactos?rev=60754&view=rev Log: [SAMSRV] - Fix incorrect heap buffer size, CID 716678.
Modified: trunk/reactos/dll/win32/samsrv/samrpc.c
Modified: trunk/reactos/dll/win32/samsrv/samrpc.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/samsrv/samrpc.c?r... ============================================================================== --- trunk/reactos/dll/win32/samsrv/samrpc.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/samsrv/samrpc.c [iso-8859-1] Sat Oct 26 18:48:53 2013 @@ -3586,7 +3586,7 @@ }
/* Allocate the names array */ - Names->Element = midl_user_allocate(Count * sizeof(ULONG)); + Names->Element = midl_user_allocate(Count * sizeof(*Names->Element)); if (Names->Element == NULL) { Status = STATUS_INSUFFICIENT_RESOURCES; @@ -3594,7 +3594,7 @@ }
/* Allocate the use array */ - Use->Element = midl_user_allocate(Count * sizeof(ULONG)); + Use->Element = midl_user_allocate(Count * sizeof(*Use->Element)); if (Use->Element == NULL) { Status = STATUS_INSUFFICIENT_RESOURCES;