crypt32: Increase maximum object encode length.
E. g., DigiCert CRL file is currently 35MB. Signed-off-by: Paul Gofman <pgofman@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
dfae932d25
commit
861ae99683
|
@ -47,7 +47,7 @@
|
||||||
#include "crypt32_private.h"
|
#include "crypt32_private.h"
|
||||||
|
|
||||||
/* This is a bit arbitrary, but to set some limit: */
|
/* This is a bit arbitrary, but to set some limit: */
|
||||||
#define MAX_ENCODED_LEN 0x02000000
|
#define MAX_ENCODED_LEN 0x04000000
|
||||||
|
|
||||||
#define ASN_FLAGS_MASK 0xe0
|
#define ASN_FLAGS_MASK 0xe0
|
||||||
#define ASN_TYPE_MASK 0x1f
|
#define ASN_TYPE_MASK 0x1f
|
||||||
|
@ -6411,6 +6411,7 @@ BOOL WINAPI CryptDecodeObjectEx(DWORD dwCertEncodingType, LPCSTR lpszStructType,
|
||||||
}
|
}
|
||||||
if (cbEncoded > MAX_ENCODED_LEN)
|
if (cbEncoded > MAX_ENCODED_LEN)
|
||||||
{
|
{
|
||||||
|
FIXME_(crypt)("Returning CRYPT_E_ASN1_LARGE, cbEncoded %u.\n", cbEncoded);
|
||||||
SetLastError(CRYPT_E_ASN1_LARGE);
|
SetLastError(CRYPT_E_ASN1_LARGE);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue