mirror_corosync/cts/agents
Russell Bryant a609f79f1f Ensure that strings are null terminated after strncpy().
From the strcpy(3) man page, the following warning is given:
  The strncpy() function is similar, except that at most n bytes of src
  are  copied.  Warning: If there is no null byte among the first n bytes
  of src, the string placed in dest will not be null-terminated.

The current corosync code base does not take this warning into account
when using strncpy, potentially resulting in non-null terminated strings.

Signed-off-by: Russell Bryant <russell@russellbryant.net>
Reviewed-by: Steven Dake <sdake@redhat.com>
2011-03-07 08:30:03 -06:00
..
common_test_agent.c CTS: add votequorum test agent 2010-03-30 07:20:57 +00:00
common_test_agent.h CTS: add votequorum test agent 2010-03-30 07:20:57 +00:00
confdb_test_agent.c CTS: add context get/set tests. 2010-04-15 23:15:59 +00:00
cpg_test_agent.c Ensure that strings are null terminated after strncpy(). 2011-03-07 08:30:03 -06:00
Makefile.am SAM Confdb integration 2010-09-27 07:34:21 +00:00
mem_leak_test.sh CTS: get some more code to execute. 2010-03-24 22:22:40 +00:00
net_breaker.sh CTS: reproduce David's bug 2010-05-03 10:59:00 +00:00
sam_test_agent.c CTS: add sam/wd integration tests. 2010-09-27 21:14:59 +00:00
syncv2.c CTS: add context get/set tests. 2010-04-15 23:15:59 +00:00
votequorum_test_agent.c CTS: add sam/wd integration tests. 2010-09-27 21:14:59 +00:00