You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@trafficserver.apache.org by "maskit (via GitHub)" <gi...@apache.org> on 2023/09/05 21:24:30 UTC
[GitHub] [trafficserver] maskit commented on pull request #10371: Fix a couple of Coverity issues in health check plugin, around filenames
maskit commented on PR #10371:
URL: https://github.com/apache/trafficserver/pull/10371#issuecomment-1707328806
```
/home/jenkins/workspace/Github_Builds/cmake/src/plugins/healthchecks/healthchecks.cc
In function 'HCDirEntry* setup_watchers(int)',
inlined from 'void* hc_thread(void*)' at ../plugins/healthchecks/healthchecks.cc:177:17:
../plugins/healthchecks/healthchecks.cc:140:12: error: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 4095 bytes from a string of length 4095 [-Werror=stringop-truncation]
140 | strncpy(fname, conf->fname, MAX_PATH_LEN - 1);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../plugins/healthchecks/healthchecks.cc:140:12: error: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 4095 bytes from a string of length 4095 [-Werror=stringop-truncation]
cc1plus: all warnings being treated as errors
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org