secur32: We can't read more than expected_size - 5 in schan_DecryptMessage().
This commit is contained in:
parent
e2bd967a85
commit
8f39fb146a
|
@ -1067,7 +1067,7 @@ static SECURITY_STATUS SEC_ENTRY schan_DecryptMessage(PCtxtHandle context_handle
|
|||
return SEC_E_INCOMPLETE_MESSAGE;
|
||||
}
|
||||
|
||||
data_size = buffer->cbBuffer;
|
||||
data_size = expected_size - 5;
|
||||
data = HeapAlloc(GetProcessHeap(), 0, data_size);
|
||||
|
||||
transport.ctx = ctx;
|
||||
|
|
Loading…
Reference in New Issue