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
2018-10-11 08:06:43 -05:00
2018-11-03 00:56:57 +08:00
2018-08-23 13:31:24 -05:00
2018-09-05 21:35:07 -04:00
2018-09-25 15:55:02 -07:00
2018-05-31 07:36:00 -07:00
2018-05-31 07:36:00 -07:00
2018-10-10 14:57:04 +00:00

stx-fault

StarlingX Fault Management

Description
StarlingX Fault Management
Readme 5.7 MiB
Languages
Python 60.7%
C++ 31.8%
Shell 3.2%
C 3.1%
Makefile 1.1%