From: Dr. Stephen Henson Date: Wed, 22 Jun 2011 15:15:48 +0000 (+0000) Subject: correctly encode OIDs near 2^32 X-Git-Tag: OpenSSL_1_0_1-beta1~224 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=33c98a28acc0c9d356b550d8c3c26f18512b9b21;p=oweals%2Fopenssl.git correctly encode OIDs near 2^32 --- diff --git a/crypto/asn1/a_object.c b/crypto/asn1/a_object.c index e5fbe7cbb1..0ef0ac3e89 100644 --- a/crypto/asn1/a_object.c +++ b/crypto/asn1/a_object.c @@ -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)