Commit 8f39fb14 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

secur32: We can't read more than expected_size - 5 in schan_DecryptMessage().

parent e2bd967a
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment