Hans Leidekker : msv1_0: Use RtlAllocateHeap to allocate output buffers.
Module: wine Branch: master Commit: 179e214dca29a654f834b546acfe809034c75a23 URL: https://source.winehq.org/git/wine.git/?a=commit;h=179e214dca29a654f834b546a... Author: Hans Leidekker <hans(a)codeweavers.com> Date: Fri Apr 30 11:59:34 2021 +0200 msv1_0: Use RtlAllocateHeap to allocate output buffers. Signed-off-by: Hans Leidekker <hans(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/msv1_0/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/msv1_0/main.c b/dlls/msv1_0/main.c index e07dcf6f352..4b0a636bd77 100644 --- a/dlls/msv1_0/main.c +++ b/dlls/msv1_0/main.c @@ -765,7 +765,8 @@ static NTSTATUS NTAPI ntlm_SpInitLsaModeContext( LSA_SEC_HANDLE cred_handle, LSA if (ctx_req & ISC_REQ_ALLOCATE_MEMORY) { - if (!(output->pBuffers[idx].pvBuffer = malloc( bin_len ))) + /* freed with secur32.FreeContextBuffer */ + if (!(output->pBuffers[idx].pvBuffer = RtlAllocateHeap( GetProcessHeap(), 0, bin_len ))) { status = SEC_E_INSUFFICIENT_MEMORY; goto done;
participants (1)
-
Alexandre Julliard