secur32: [4/3]Test and fix DecryptMessage for multiple data buffers.

Dmitry Timoshkov dmitry at codeweavers.com
Sat Nov 4 04:49:16 CST 2006


"Kai Blin" <kai.blin at gmail.com> wrote:

> --- a/dlls/secur32/ntlm.c
> +++ b/dlls/secur32/ntlm.c
> @@ -1345,22 +1345,32 @@ static SECURITY_STATUS SEC_ENTRY ntlm_Ve
>     if(helper->neg_flags & NTLMSSP_NEGOTIATE_SIGN)
>     {
>         SecBufferDesc local_desc;
> -        SecBuffer     local_buff[2];
> +        SecBuffer     local_buff[pMessage->cBuffers];

This construct is not portable, you need to use HeapAlloc to dynamically
allocate buffers.

-- 
Dmitry.



More information about the wine-devel mailing list