Commit 254f9b9c authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

crypt32: Check length of sequence before checking tag.

parent 3dbdb311
...@@ -475,6 +475,11 @@ static BOOL CRYPT_AsnDecodeSequence(struct AsnDecodeSequenceItem items[], ...@@ -475,6 +475,11 @@ static BOOL CRYPT_AsnDecodeSequence(struct AsnDecodeSequenceItem items[],
cbEncoded, dwFlags, pDecodePara, pvStructInfo, *pcbStructInfo, cbEncoded, dwFlags, pDecodePara, pvStructInfo, *pcbStructInfo,
startingPointer); startingPointer);
if (!cbEncoded)
{
SetLastError(CRYPT_E_ASN1_EOD);
return FALSE;
}
if (pbEncoded[0] == ASN_SEQUENCE) if (pbEncoded[0] == ASN_SEQUENCE)
{ {
DWORD dataLen; DWORD dataLen;
......
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