Commit 4ff40a67 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

rsaenh: Validate pbData in CPSetKeyParam().

parent 5f984f8c
......@@ -3822,6 +3822,12 @@ BOOL WINAPI RSAENH_CPSetKeyParam(HCRYPTPROV hProv, HCRYPTKEY hKey, DWORD dwParam
return FALSE;
}
if (!pbData)
{
SetLastError(ERROR_INVALID_PARAMETER);
return FALSE;
}
switch (dwParam) {
case KP_PADDING:
/* The MS providers only support PKCS5_PADDING */
......
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