mirror_corosync/test
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
..
scripts Split openais and corosync tree into two seperate repositories. 2008-08-05 13:23:46 +00:00
.gitignore Add missing entries into .gitignore 2011-01-12 09:42:24 +11:00
cpgbench.c fix timersub warning on freebsd 2011-01-12 09:42:24 +11:00
cpgbenchzc.c fix timersub warning on freebsd 2011-01-12 09:42:24 +11:00
cpgbound.c Add test program that finds limits of cpg message size. 2009-08-17 18:22:51 +00:00
cpgverify.c Add -i <num-iterations> to cpgverify 2010-10-21 17:27:40 -07:00
evsbench.c Add ring id field to evs. 2009-07-01 20:57:37 +00:00
evsverify.c Add ring id field to evs. 2009-07-01 20:57:37 +00:00
logsys_s1.c remove all trailing blanks 2009-04-22 08:03:55 +00:00
logsys_s2.c remove all trailing blanks 2009-04-22 08:03:55 +00:00
logsys_s.c logsys: merge tags into rec_ident 2009-06-18 05:15:10 +00:00
logsys_t1.c logsys: merge tags into rec_ident 2009-06-18 05:15:10 +00:00
logsys_t2.c logsys: merge tags into rec_ident 2009-06-18 05:15:10 +00:00
logsysbench.c Remove timersub redefine. 2009-06-20 17:36:04 +00:00
logsysrec.c logsys rework to deal with memory corruption around debug:on configurations. 2010-05-13 04:36:42 +00:00
Makefile.am makefile: add -lquorum -lcoroipcc to sam test programs 2010-05-21 08:53:52 +00:00
sa_error.c Ensure that strings are null terminated after strncpy(). 2011-03-07 08:30:03 -06:00
sa_error.h cleanup the last of the SAF headers and types 2008-11-06 21:49:07 +00:00
stress_cpgcontext.c add stress_cpgcontext. 2009-07-10 12:54:56 +00:00
stress_cpgfdget.c Remove unused variable in stress_cpgfdget.c. 2009-09-25 06:03:50 +00:00
stress_cpgzc.c Add stress test case for cpg and coroipcc zero copy buffer alloc and free 2009-07-10 12:05:48 +00:00
testconfdb.c don't include <signal.h> when it's not used 2009-05-18 16:41:46 +00:00
testcpg2.c Remove const from delivery callback to allow inplace endian changes of 2009-04-26 02:38:46 +00:00
testcpg.c Make cpg_membership_get() functional. 2010-05-19 05:03:52 +00:00
testcpgzc.c add __attribute__((noreturn)) to functions that always exit. 2010-05-19 04:34:53 +00:00
testevs.c Add ring id field to evs. 2009-07-01 20:57:37 +00:00
testevsth.c remove all trailing blanks 2009-04-22 08:03:55 +00:00
testmake.sh remove all trailing blanks 2009-04-22 08:03:55 +00:00
testparse.c remove all trailing blanks 2009-04-22 08:03:55 +00:00
testquorum.c don't shadow file-scoped global, "handle" 2009-04-15 19:12:25 +00:00
testsam.c WD/SAM integration. 2010-09-27 21:13:15 +00:00
testtimer.c remove all trailing blanks 2009-04-22 08:03:55 +00:00
testvotequorum1.c testvotequorum1.c: don't shadow file-scoped global, "handle" 2009-04-15 19:12:56 +00:00
testvotequorum2.c - Every .c file should include "config.h" to get the right defines... 2009-03-19 12:58:53 +00:00
testzcgc.c add __attribute__((noreturn)) to functions that always exit. 2010-05-19 04:34:53 +00:00