Commit 373e472d authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

rsaenh: Ensure a PKCS1 data block has at least minimum length.

parent ed04a730
......@@ -1697,6 +1697,11 @@ static BOOL unpad_data(CONST BYTE *abData, DWORD dwDataLen, BYTE *abBuffer, DWOR
{
DWORD i;
if (dwDataLen < 3)
{
SetLastError(NTE_BAD_DATA);
return FALSE;
}
for (i=2; i<dwDataLen; i++)
if (!abData[i])
break;
......
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