mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
rsaenh: Ensure a PKCS1 data block has at least minimum length.
This commit is contained in:
parent
ed04a730f9
commit
373e472db9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user