From 28e7be9f39feb59e90f27a3806794de843bc4575 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 30 Sep 2024 14:47:03 +0200 Subject: [PATCH] cov: annotate --- lib/log/log.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/log/log.c b/lib/log/log.c index 920e480d5..3eda7d343 100644 --- a/lib/log/log.c +++ b/lib/log/log.c @@ -591,6 +591,7 @@ static void _vprint_log(int level, const char *file, int line, int dm_errno_or_c (_log_report.report && !log_bypass_report && (use_stderr || (level <=_LOG_WARN))) || log_once) { va_copy(ap, orig_ap); + /* coverity[format_string_injection] our code expectes this behavior. */ n = vsnprintf(message, sizeof(message), trformat, ap); va_end(ap);