mirror_corosync/exec
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
..
.gitignore Add .gitignore files. 2010-10-21 07:43:46 -07:00
apidef.c add __attribute__((noreturn)) to functions that always exit. 2010-05-19 04:34:53 +00:00
apidef.h remove empty lines at end-of-file 2009-04-22 08:04:06 +00:00
coroipcs.c Add calls to pthread_attr_destroy(). 2011-02-21 12:14:07 -07:00
coroparse.c Remove checking of sub parameters in service.d files. 2010-08-24 18:45:43 +00:00
coropoll.c POLL: gracefully handle running out of file descriptors. 2010-08-25 01:07:37 +00:00
crypto.c cov 10413: crypto init a variable. 2010-05-16 21:36:51 +00:00
crypto.h remove all trailing blanks 2009-04-22 08:03:55 +00:00
evil.c pass transitional members into the sync_init() callbacks. 2010-02-04 00:18:51 +00:00
evil.h Follow synchronization model of event service so corosync without openais 2009-06-28 04:50:18 +00:00
fsm.h Add a Finite State Machine.(fsm.h) 2010-09-27 21:11:04 +00:00
logsys.c Ensure that strings are null terminated after strncpy(). 2011-03-07 08:30:03 -06:00
main.c STATS: fix key name length on "join_count" 2011-02-04 09:46:52 -07:00
main.h Export poll handle via coroapi.h. 2009-06-29 23:24:24 +00:00
mainconfig.c Fix logging_daemon config parser code. 2010-07-19 06:36:48 +00:00
mainconfig.h Add compatability option in config file. Defaults to whitetank. 2009-06-26 00:25:52 +00:00
Makefile.am Add the UDPU transport 2010-11-18 14:21:30 -07:00
objdb.c objdb: destroy all handles in _clear_object 2011-02-24 12:15:01 +01:00
quorum.c don't include <signal.h> when it's not used 2009-05-18 16:41:46 +00:00
quorum.h quorum.h (quorum_set_quorate_fn_t): make first param const 2009-04-08 06:43:03 +00:00
schedwrk.c Add schedwrk_create_nolock function 2010-01-22 09:45:29 +00:00
schedwrk.h Add schedwrk_create_nolock function 2010-01-22 09:45:29 +00:00
service.c Add monitoring and watchdog services. 2010-09-27 21:12:03 +00:00
service.h Fix corosync shutdown process 2010-02-16 11:29:14 +00:00
sync.c SYNC: always call sync_aborted() in sync_confchg_fn(). 2010-07-17 04:59:40 +00:00
sync.h pass transitional members into the sync_init() callbacks. 2010-02-04 00:18:51 +00:00
syncv2.c SYNCV2: add debug when messages are discarded 2010-07-16 02:11:25 +00:00
syncv2.h pass transitional members into the sync_init() callbacks. 2010-02-04 00:18:51 +00:00
timer.c Add calls to pthread_attr_destroy(). 2011-02-21 12:14:07 -07:00
timer.h Support for monotime timer 2009-07-27 10:12:55 +00:00
tlist.h Support for systems where clock_gettime is not available 2009-08-03 08:11:53 +00:00
totemconfig.c Handle delayed multicast packets that occur with switches 2011-01-11 10:34:46 -07:00
totemconfig.h remove all trailing blanks 2009-04-22 08:03:55 +00:00
totemiba.c Totem IBA implementation. 2009-09-25 06:23:04 +00:00
totemiba.h Totem IBA implementation. 2009-09-25 06:23:04 +00:00
totemip.c Check for a properly configured multicast address. 2010-09-27 22:41:26 +00:00
totemmrp.c Add the UDPU transport 2010-11-18 14:21:30 -07:00
totemmrp.h Add the UDPU transport 2010-11-18 14:21:30 -07:00
totemnet.c Add the UDPU transport 2010-11-18 14:21:30 -07:00
totemnet.h Add the UDPU transport 2010-11-18 14:21:30 -07:00
totempg.c Add the UDPU transport 2010-11-18 14:21:30 -07:00
totemrrp.c Add the UDPU transport 2010-11-18 14:21:30 -07:00
totemrrp.h Add the UDPU transport 2010-11-18 14:21:30 -07:00
totemsrp.c Don't assert when ring id file is less then 8 bytes 2011-02-24 15:34:39 -07:00
totemsrp.h Add the UDPU transport 2010-11-18 14:21:30 -07:00
totemudp.c Add totem/interface/ttl config option. 2010-11-24 14:35:56 +11:00
totemudp.h Totem IBA implementation. 2009-09-25 06:23:04 +00:00
totemudpu.c Set the max buffer size for sockets 2010-12-01 09:45:30 -07:00
totemudpu.h Add the UDPU transport 2010-11-18 14:21:30 -07:00
tsafe.c Fix few xopen tsafe issues. 2010-08-31 20:16:20 +00:00
tsafe.h Add tsafe (thread safe) file to catch unsafe function calls. 2010-03-03 01:27:37 +00:00
util.c Ensure that strings are null terminated after strncpy(). 2011-03-07 08:30:03 -06:00
util.h IPC: return CS_ERR_NO_RESOURCES to library when low on fds. 2010-08-25 01:13:14 +00:00
vsf_quorum.c Reduce the number of times the quorum message is displayed. 2010-02-26 15:30:38 +00:00
vsf_ykd.c Fix a crash in YKD 2010-04-20 07:27:14 +00:00
vsf.h remove all trailing blanks 2009-04-22 08:03:55 +00:00
wthread.c Rename queue datastructure to cs_queue data structure because some fail 2009-06-07 00:47:56 +00:00
wthread.h remove all trailing blanks 2009-04-22 08:03:55 +00:00