diff options
author | Pauli <ppzgs1@gmail.com> | 2021-03-19 08:22:43 +1000 |
---|---|---|
committer | Pauli <ppzgs1@gmail.com> | 2021-03-21 11:13:39 +1000 |
commit | abded2ced44b94d96f08ea5cf01df6519b80f5d3 (patch) | |
tree | 2fc60be31fd16cf62373fd63d3a567453a8a99f5 /crypto | |
parent | c38048e793e4cdf21759d4b068561d3bb0041ae6 (diff) |
evp: fix coverity 1473380: copy into fixed size buffer
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14614)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/evp/ctrl_params_translate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/ctrl_params_translate.c b/crypto/evp/ctrl_params_translate.c index 808804ab3a..c13a40a95f 100644 --- a/crypto/evp/ctrl_params_translate.c +++ b/crypto/evp/ctrl_params_translate.c @@ -1344,7 +1344,7 @@ static int fix_rsa_pss_saltlen(enum state state, break; } if (i == OSSL_NELEM(str_value_map)) { - BIO_snprintf(ctx->name_buf, 5, "%d", ctx->p1); + BIO_snprintf(ctx->name_buf, sizeof(ctx->name_buf), "%d", ctx->p1); } else { strcpy(ctx->name_buf, str_value_map[i].ptr); } |