diff options
author | Juergen Christ <jchrist@linux.ibm.com> | 2021-05-25 18:03:06 +0200 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2021-05-27 20:31:13 +1000 |
commit | 4612eec35def0523192ee2c406f99ea5bbb184fb (patch) | |
tree | 2cb1cf00b69cdf3c0c07aae1acd388cea0c79273 /ssl/s3_cbc.c | |
parent | 72f62f4408d2a4e75c58706d41775e4f8f7f0034 (diff) |
Fix compilation warning with GCC11.
Parameter "header" of ssl3_cbc_digest_record was fixed to a 13 bytes header
but used as a pointer. This caused a warning about out-of-bounds array access
with GCC 11.
Fixes #15462.
Signed-off-by: Juergen Christ <jchrist@linux.ibm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15463)
Diffstat (limited to 'ssl/s3_cbc.c')
-rw-r--r-- | ssl/s3_cbc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/s3_cbc.c b/ssl/s3_cbc.c index f5db247e92..8e1c779ddb 100644 --- a/ssl/s3_cbc.c +++ b/ssl/s3_cbc.c @@ -34,7 +34,7 @@ char ssl3_cbc_record_digest_supported(const EVP_MD_CTX *ctx); int ssl3_cbc_digest_record(const EVP_MD *md, unsigned char *md_out, size_t *md_out_size, - const unsigned char header[13], + const unsigned char *header, const unsigned char *data, size_t data_size, size_t data_plus_mac_plus_padding_size, @@ -156,7 +156,7 @@ static void tls1_sha512_final_raw(void *ctx, unsigned char *md_out) int ssl3_cbc_digest_record(const EVP_MD *md, unsigned char *md_out, size_t *md_out_size, - const unsigned char header[13], + const unsigned char *header, const unsigned char *data, size_t data_size, size_t data_plus_mac_plus_padding_size, |