From fbd5d84d4b50e3e0db99529ccf781adcc7832640 Mon Sep 17 00:00:00 2001 From: Eugene Syromiatnikov Date: Mon, 15 Sep 2025 04:44:36 +0200 Subject: [PATCH] crypto/bio/bss_file.c: add missing cast in format arg in ERR_raise_data() "%s" conversion specifier requires a "char *" argument, so ptr needs to be cast to it there, as Coverity has noted. Fixes: ff988500c2f39 "Replace FUNCerr with ERR_raise_data" Resolves: https://scan5.scan.coverity.com/#/project-view/65248/10222?selectedIssue=1665423 References: https://github.com/openssl/project/issues/1432 Signed-off-by: Eugene Syromiatnikov Reviewed-by: Paul Dale Reviewed-by: Matt Caswell Reviewed-by: Neil Horman (Merged from https://github.com/openssl/openssl/pull/28546) --- crypto/bio/bss_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/bio/bss_file.c b/crypto/bio/bss_file.c index 26b63f5c55d..88cb0eda862 100644 --- a/crypto/bio/bss_file.c +++ b/crypto/bio/bss_file.c @@ -287,7 +287,7 @@ static long file_ctrl(BIO *b, int cmd, long num, void *ptr) if (fp == NULL) { ERR_raise_data(ERR_LIB_SYS, get_last_sys_error(), "calling fopen(%s, %s)", - ptr, p); + (const char *)ptr, p); ERR_raise(ERR_LIB_BIO, ERR_R_SYS_LIB); ret = 0; break; -- 2.47.3