mirror of https://github.com/FreeRDP/FreeRDP
Fixed oob read in ntlm_read_NegotiateMessage
This commit is contained in:
parent
b230ac98e9
commit
8fa3835963
|
@ -219,6 +219,11 @@ SECURITY_STATUS ntlm_read_NegotiateMessage(NTLM_CONTEXT* context, PSecBuffer buf
|
|||
return SEC_E_INVALID_TOKEN;
|
||||
}
|
||||
|
||||
if (Stream_GetRemainingLength(s) < 4)
|
||||
{
|
||||
Stream_Free(s, FALSE);
|
||||
return SEC_E_INVALID_TOKEN;
|
||||
}
|
||||
Stream_Read_UINT32(s, message->NegotiateFlags); /* NegotiateFlags (4 bytes) */
|
||||
|
||||
if (!((message->NegotiateFlags & NTLMSSP_REQUEST_TARGET) &&
|
||||
|
|
Loading…
Reference in New Issue