diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2003-09-30 16:47:33 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2003-09-30 16:47:33 +0000 |
commit | 299024498004473a58e780cdf8ec83e85a04f807 (patch) | |
tree | e16796b7efe137a249f1816ac3befe076a96f483 /crypto/asn1/asn1_lib.c | |
parent | c798868d9669d4de7906e76814701b503da663ce (diff) |
ASN1 parse fix and release file changes.
Diffstat (limited to 'crypto/asn1/asn1_lib.c')
-rw-r--r-- | crypto/asn1/asn1_lib.c | 2 |
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 { |