The branch master has been updated
via abded2ced44b94d96f08ea5cf01df6519b80f5d3 (commit)
from c38048e793e4cdf21759d4b068561d3bb0041ae6 (commit)
- Log -----------------------------------------------------------------
commit abded2ced44b94d96f08ea5cf01df6519b80f5d3
Author: Pauli <[email protected]>
Date: Fri Mar 19 08:22:43 2021 +1000
evp: fix coverity 1473380: copy into fixed size buffer
Reviewed-by: Tomas Mraz <[email protected]>
(Merged from https://github.com/openssl/openssl/pull/14614)
-----------------------------------------------------------------------
Summary of changes:
crypto/evp/ctrl_params_translate.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
}