StarlingX Fault Management
Go to file
SidneyAn 816f45e94d replace strncpy by snprintf
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
2018-11-03 00:56:57 +08:00
api-ref/source Add api-ref and relnotes publish jobs 2018-10-11 08:06:43 -05:00
devstack Add DevStack support for FM dependencies 2018-10-09 11:19:02 -05:00
doc Add api-ref and relnotes publish jobs 2018-10-11 08:06:43 -05:00
fm-api Decouple Fault Management from stx-config 2018-08-16 13:23:33 -04:00
fm-common replace strncpy by snprintf 2018-11-03 00:56:57 +08:00
fm-doc Fix tox linters for zuul 2018-08-23 13:31:24 -05:00
fm-mgr Update the License in FM packages 2018-09-05 21:35:07 -04:00
fm-rest-api Update the License in FM packages 2018-09-05 21:35:07 -04:00
python-fmclient Remove version from fmclient setup.cfg 2018-09-12 16:35:28 -04:00
releasenotes Add api-ref and relnotes publish jobs 2018-10-11 08:06:43 -05:00
snmp-audittrail snmp-audittrail build failed due to missing dependency 2018-08-30 14:49:25 -04:00
snmp-ext StarlingX open source release updates 2018-05-31 07:36:00 -07:00
.gitignore [Doc] OpenStack API Reference Guide 2018-09-25 15:55:02 -07:00
.gitreview Add .gitreview 2018-05-31 07:36:00 -07:00
.zuul.yaml Add api-ref and relnotes publish jobs 2018-10-11 08:06:43 -05:00
centos_iso_image.inc Decouple Fault Management from stx-config 2018-08-17 15:25:35 -04:00
centos_pkg_dirs Decouple Fault Management from stx-config 2018-08-16 13:23:33 -04:00
CONTRIBUTORS.wrs StarlingX open source release updates 2018-05-31 07:36:00 -07:00
LICENSE StarlingX open source release updates 2018-05-31 07:36:00 -07:00
README.rst StarlingX open source release updates 2018-05-31 07:36:00 -07:00
test-requirements.txt add flake8 as pep8 codestyle check. 2018-08-10 11:39:57 +08:00
tox.ini Merge "fix tox python3 overrides" 2018-10-10 14:57:04 +00:00

stx-fault

StarlingX Fault Management