This is an automated email from the ASF dual-hosted git repository. bcall pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push: new 9a9172e6a7 Coverity 1518587: Buffer not null terminated in healthchecks plugin (#10842) 9a9172e6a7 is described below commit 9a9172e6a7b73d5ea6640db0c105ffda1b4a44e3 Author: Bryan Call <bc...@apache.org> AuthorDate: Mon Nov 27 12:49:51 2023 -0800 Coverity 1518587: Buffer not null terminated in healthchecks plugin (#10842) --- plugins/healthchecks/healthchecks.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/healthchecks/healthchecks.cc b/plugins/healthchecks/healthchecks.cc index e7f0764056..b64cb250ca 100644 --- a/plugins/healthchecks/healthchecks.cc +++ b/plugins/healthchecks/healthchecks.cc @@ -139,7 +139,7 @@ setup_watchers(int fd) while (conf) { conf->wd = inotify_add_watch(fd, conf->fname, IN_DELETE_SELF | IN_CLOSE_WRITE | IN_ATTRIB); Dbg(dbg_ctl, "Setting up a watcher for %s", conf->fname); - strncpy(fname, conf->fname, MAX_PATH_LEN); + TSstrlcpy(fname, conf->fname, MAX_PATH_LEN); char *dname = dirname(fname); /* Make sure to only watch each directory once */