summaryrefslogtreecommitdiffstats
path: root/ssl/ssl_local.h
diff options
context:
space:
mode:
authorJuergen Christ <jchrist@linux.ibm.com>2021-05-25 18:03:06 +0200
committerPauli <pauli@openssl.org>2021-05-27 20:31:13 +1000
commit4612eec35def0523192ee2c406f99ea5bbb184fb (patch)
tree2cb1cf00b69cdf3c0c07aae1acd388cea0c79273 /ssl/ssl_local.h
parent72f62f4408d2a4e75c58706d41775e4f8f7f0034 (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/ssl_local.h')
-rw-r--r--ssl/ssl_local.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/ssl_local.h b/ssl/ssl_local.h
index 8f3a2f93d6..28603a81ad 100644
--- a/ssl/ssl_local.h
+++ b/ssl/ssl_local.h
@@ -2770,7 +2770,7 @@ __owur char ssl3_cbc_record_digest_supported(const EVP_MD_CTX *ctx);
__owur 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,