diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/asn1/a_int.c | 1 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/asn1/a_int.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/libcrypto/asn1/a_int.c b/src/lib/libcrypto/asn1/a_int.c index 881f08a766..2c1e38ac1a 100644 --- a/src/lib/libcrypto/asn1/a_int.c +++ b/src/lib/libcrypto/asn1/a_int.c | |||
| @@ -347,6 +347,7 @@ ASN1_INTEGER_set(ASN1_INTEGER *a, long v) | |||
| 347 | long d; | 347 | long d; |
| 348 | 348 | ||
| 349 | a->type = V_ASN1_INTEGER; | 349 | a->type = V_ASN1_INTEGER; |
| 350 | /* XXX ssl/ssl_asn1.c:i2d_SSL_SESSION() depends upon this bound vae */ | ||
| 350 | if (a->length < (int)(sizeof(long) + 1)) { | 351 | if (a->length < (int)(sizeof(long) + 1)) { |
| 351 | free(a->data); | 352 | free(a->data); |
| 352 | a->data = calloc(1, sizeof(long) + 1); | 353 | a->data = calloc(1, sizeof(long) + 1); |
diff --git a/src/lib/libssl/src/crypto/asn1/a_int.c b/src/lib/libssl/src/crypto/asn1/a_int.c index 881f08a766..2c1e38ac1a 100644 --- a/src/lib/libssl/src/crypto/asn1/a_int.c +++ b/src/lib/libssl/src/crypto/asn1/a_int.c | |||
| @@ -347,6 +347,7 @@ ASN1_INTEGER_set(ASN1_INTEGER *a, long v) | |||
| 347 | long d; | 347 | long d; |
| 348 | 348 | ||
| 349 | a->type = V_ASN1_INTEGER; | 349 | a->type = V_ASN1_INTEGER; |
| 350 | /* XXX ssl/ssl_asn1.c:i2d_SSL_SESSION() depends upon this bound vae */ | ||
| 350 | if (a->length < (int)(sizeof(long) + 1)) { | 351 | if (a->length < (int)(sizeof(long) + 1)) { |
| 351 | free(a->data); | 352 | free(a->data); |
| 352 | a->data = calloc(1, sizeof(long) + 1); | 353 | a->data = calloc(1, sizeof(long) + 1); |
