From: James Jones Date: Fri, 15 Jul 2022 14:08:49 +0000 (-0500) Subject: Annotate strcpy() in make_vlog; log_keyword is always short (CID #1503899) (#4615) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=699917e25edfca81a694b2d0829c7a6c9172f329;p=thirdparty%2Ffreeradius-server.git Annotate strcpy() in make_vlog; log_keyword is always short (CID #1503899) (#4615) All calls to make_vlog are done via macros that pass one of "error", "warning", or "info" as log_keyword, all much shorter than the 256-byte buffer that accumulates the log entry. --- diff --git a/scripts/build/log.c b/scripts/build/log.c index 0325b98bb21..5afafad3c5d 100644 --- a/scripts/build/log.c +++ b/scripts/build/log.c @@ -38,6 +38,7 @@ void _make_vlog(char const *log_keyword, char const *file, int line, char const char buffer[256]; char *p = buffer, *end = (p + (sizeof(buffer) - 1)); + /* coverity[fixed_size_dest] */ strcpy(p, log_keyword); p += strlen(p); *p++ = ' ';