aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacques Vidrine <nectar@FreeBSD.org>2002-08-05 16:25:17 +0000
committerJacques Vidrine <nectar@FreeBSD.org>2002-08-05 16:25:17 +0000
commitb1357e1cec95464ca388f5ea85e0b24cfac69efc (patch)
tree67201120a6ea4943c5b2057e2eaab2754263da96
parent4f20a5a274060dda2bff055829db303415e2dd57 (diff)
downloadsrc-b1357e1cec95464ca388f5ea85e0b24cfac69efc.tar.gz
src-b1357e1cec95464ca388f5ea85e0b24cfac69efc.zip
Correct a bug in the ASN.1 decoder which was introduced with the
recent OpenSSL update. Obtained from: OpenSSL CVS
Notes
Notes: svn path=/vendor-crypto/openssl/dist/; revision=101386
-rw-r--r--crypto/openssl/crypto/asn1/asn1_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/openssl/crypto/asn1/asn1_lib.c b/crypto/openssl/crypto/asn1/asn1_lib.c
index 1fe3fbc1fa78..a3681c0e23c7 100644
--- a/crypto/openssl/crypto/asn1/asn1_lib.c
+++ b/crypto/openssl/crypto/asn1/asn1_lib.c
@@ -124,7 +124,7 @@ int ASN1_get_object(unsigned char **pp, long *plength, int *ptag, int *pclass,
(int)(omax+ *pp));
#endif
- if (*plength > (omax - (*pp - p)))
+ if (*plength > (omax - (p - *pp)))
{
ASN1err(ASN1_F_ASN1_GET_OBJECT,ASN1_R_TOO_LONG);
/* Set this so that even if things are not long enough