correctly encode OIDs near 2^32

This commit is contained in:
Dr. Stephen Henson 2011-06-22 15:15:38 +00:00
parent 2bcd08e691
commit 69a8901eb1

View file

@ -139,7 +139,7 @@ int a2d_ASN1_OBJECT(unsigned char *out, int olen, const char *buf, int num)
ASN1err(ASN1_F_A2D_ASN1_OBJECT,ASN1_R_INVALID_DIGIT);
goto err;
}
if (!use_bn && l > (ULONG_MAX / 10L))
if (!use_bn && l >= (ULONG_MAX / 10L))
{
use_bn = 1;
if (!bl)