StarlingX Fault Management
816f45e94d
as for strncpy does not guarantee null terminated of dest string, but snprintf does. so change code from strncpy(buffer, source, sizeof buffer); to int n = snprintf(buffer, sizeof buffer, "%s", source); assert(n >= 0 && n < sizeof buffer); test case: 1. a simple test about difference between strncpy and snprintf 2. use fmClientCli to create an alarm mock the init_tables() function so there is no need to connect to the server. add code to dump SFmAlarmDataT to check datas return. 3. one controller + one compute deploy (virtual) success deploy and create an instance. Closes-Bug: 1794701 Change-Id: I04b4c5c85782ff571e2957e12c47f2f628d2b772 |
||
---|---|---|
api-ref/source | ||
devstack | ||
doc | ||
fm-api | ||
fm-common | ||
fm-doc | ||
fm-mgr | ||
fm-rest-api | ||
python-fmclient | ||
releasenotes | ||
snmp-audittrail | ||
snmp-ext | ||
.gitignore | ||
.gitreview | ||
.zuul.yaml | ||
centos_iso_image.inc | ||
centos_pkg_dirs | ||
CONTRIBUTORS.wrs | ||
LICENSE | ||
README.rst | ||
test-requirements.txt | ||
tox.ini |
stx-fault
StarlingX Fault Management