diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/asn1/asn1_lib.c | 2 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/asn1/asn1_lib.c | 2 | 
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/asn1_lib.c b/src/lib/libcrypto/asn1/asn1_lib.c index fd8e77044e..46731b2438 100644 --- a/src/lib/libcrypto/asn1/asn1_lib.c +++ b/src/lib/libcrypto/asn1/asn1_lib.c  | |||
| @@ -123,7 +123,7 @@ int ASN1_get_object(unsigned char **pp, long *plength, int *ptag, int *pclass, | |||
| 123 | (int)(omax+ *pp)); | 123 | (int)(omax+ *pp)); | 
| 124 | 124 | ||
| 125 | #endif | 125 | #endif | 
| 126 | if (*plength > (omax - (*pp - p))) | 126 | if (*plength > (omax - (p - *pp))) | 
| 127 | { | 127 | { | 
| 128 | ASN1err(ASN1_F_ASN1_GET_OBJECT,ASN1_R_TOO_LONG); | 128 | ASN1err(ASN1_F_ASN1_GET_OBJECT,ASN1_R_TOO_LONG); | 
| 129 | /* Set this so that even if things are not long enough | 129 | /* Set this so that even if things are not long enough | 
diff --git a/src/lib/libssl/src/crypto/asn1/asn1_lib.c b/src/lib/libssl/src/crypto/asn1/asn1_lib.c index fd8e77044e..46731b2438 100644 --- a/src/lib/libssl/src/crypto/asn1/asn1_lib.c +++ b/src/lib/libssl/src/crypto/asn1/asn1_lib.c  | |||
| @@ -123,7 +123,7 @@ int ASN1_get_object(unsigned char **pp, long *plength, int *ptag, int *pclass, | |||
| 123 | (int)(omax+ *pp)); | 123 | (int)(omax+ *pp)); | 
| 124 | 124 | ||
| 125 | #endif | 125 | #endif | 
| 126 | if (*plength > (omax - (*pp - p))) | 126 | if (*plength > (omax - (p - *pp))) | 
| 127 | { | 127 | { | 
| 128 | ASN1err(ASN1_F_ASN1_GET_OBJECT,ASN1_R_TOO_LONG); | 128 | ASN1err(ASN1_F_ASN1_GET_OBJECT,ASN1_R_TOO_LONG); | 
| 129 | /* Set this so that even if things are not long enough | 129 | /* Set this so that even if things are not long enough | 
