diff options
author | miod <> | 2014-05-31 19:05:07 +0000 |
---|---|---|
committer | miod <> | 2014-05-31 19:05:07 +0000 |
commit | a5757b535e4efefee62f47029a4e4e9cb16e6d32 (patch) | |
tree | e9fb4b4beeba095fee1021f6c598b19a44062ad7 | |
parent | d70bd5a62f66955d277b33d3f091f89b03118c59 (diff) | |
download | openbsd-a5757b535e4efefee62f47029a4e4e9cb16e6d32.tar.gz openbsd-a5757b535e4efefee62f47029a4e4e9cb16e6d32.tar.bz2 openbsd-a5757b535e4efefee62f47029a4e4e9cb16e6d32.zip |
Add a comment documenting where libssl depends upon the current (objectionable)
behaviour of this code, to prevent people from blindly changing it.
-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); |