summaryrefslogtreecommitdiffstats
path: root/crypto/asn1/asn1_lib.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2003-09-30 16:47:33 +0000
committerDr. Stephen Henson <steve@openssl.org>2003-09-30 16:47:33 +0000
commit299024498004473a58e780cdf8ec83e85a04f807 (patch)
treee16796b7efe137a249f1816ac3befe076a96f483 /crypto/asn1/asn1_lib.c
parentc798868d9669d4de7906e76814701b503da663ce (diff)
ASN1 parse fix and release file changes.
Diffstat (limited to 'crypto/asn1/asn1_lib.c')
-rw-r--r--crypto/asn1/asn1_lib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/asn1/asn1_lib.c b/crypto/asn1/asn1_lib.c
index 3f7b3aad2a..e100e93bed 100644
--- a/crypto/asn1/asn1_lib.c
+++ b/crypto/asn1/asn1_lib.c
@@ -104,10 +104,12 @@ int ASN1_get_object(unsigned char **pp, long *plength, int *ptag, int *pclass,
l<<=7L;
l|= *(p++)&0x7f;
if (--max == 0) goto err;
+ if (l > (INT_MAX >> 7L)) goto err;
}
l<<=7L;
l|= *(p++)&0x7f;
tag=(int)l;
+ if (--max == 0) goto err;
}
else
{