Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler.
Number of rules (primarily dangerous function names) in C/C++ ruleset: 223
Examining data/libqb-2.0.1/tools/qb_blackbox.c
Examining data/libqb-2.0.1/docs/mainpage.h
Examining data/libqb-2.0.1/tests/_failure_injection.c
Examining data/libqb-2.0.1/tests/bmcpt.c
Examining data/libqb-2.0.1/tests/print_ver.c
Examining data/libqb-2.0.1/tests/format_compare_speed.c
Examining data/libqb-2.0.1/tests/rbwriter.c
Examining data/libqb-2.0.1/tests/bmc.c
Examining data/libqb-2.0.1/tests/loop.c
Examining data/libqb-2.0.1/tests/crash_test_dummy.c
Examining data/libqb-2.0.1/tests/check_loop.c
Examining data/libqb-2.0.1/tests/_failure_injection.h
Examining data/libqb-2.0.1/tests/rbreader.c
Examining data/libqb-2.0.1/tests/file_change_bytes.c
Examining data/libqb-2.0.1/tests/_syslog_override.c
Examining data/libqb-2.0.1/tests/check_array.c
Examining data/libqb-2.0.1/tests/bms.c
Examining data/libqb-2.0.1/tests/check_map.c
Examining data/libqb-2.0.1/tests/bench-log.c
Examining data/libqb-2.0.1/tests/check_list.c
Examining data/libqb-2.0.1/tests/check_util.c
Examining data/libqb-2.0.1/tests/check_log.c
Examining data/libqb-2.0.1/tests/check_rb.c
Examining data/libqb-2.0.1/tests/_syslog_override.h
Examining data/libqb-2.0.1/tests/check_common.h
Examining data/libqb-2.0.1/tests/check_ipc.c
Examining data/libqb-2.0.1/doxygen2man/doxygen2man.c
Examining data/libqb-2.0.1/include/qb/qbconfig.h
Examining data/libqb-2.0.1/include/qb/qbdefs.h
Examining data/libqb-2.0.1/include/qb/qbloop.h
Examining data/libqb-2.0.1/include/qb/qbutil.h
Examining data/libqb-2.0.1/include/qb/qblist.h
Examining data/libqb-2.0.1/include/qb/qbhdb.h
Examining data/libqb-2.0.1/include/qb/qbipcc.h
Examining data/libqb-2.0.1/include/qb/qbipcs.h
Examining data/libqb-2.0.1/include/qb/qbmap.h
Examining data/libqb-2.0.1/include/qb/qbarray.h
Examining data/libqb-2.0.1/include/qb/qblog.h
Examining data/libqb-2.0.1/include/qb/qbipc_common.h
Examining data/libqb-2.0.1/include/qb/qbatomic.h
Examining data/libqb-2.0.1/include/qb/qbrb.h
Examining data/libqb-2.0.1/include/os_base.h
Examining data/libqb-2.0.1/include/tlist.h
Examining data/libqb-2.0.1/lib/log_file.c
Examining data/libqb-2.0.1/lib/ipc_int.h
Examining data/libqb-2.0.1/lib/log_blackbox.c
Examining data/libqb-2.0.1/lib/strchrnul.c
Examining data/libqb-2.0.1/lib/ringbuffer_int.h
Examining data/libqb-2.0.1/lib/log_dcs.c
Examining data/libqb-2.0.1/lib/loop_timerlist.c
Examining data/libqb-2.0.1/lib/loop_poll_kqueue.c
Examining data/libqb-2.0.1/lib/ringbuffer_helper.c
Examining data/libqb-2.0.1/lib/loop.c
Examining data/libqb-2.0.1/lib/strlcat.c
Examining data/libqb-2.0.1/lib/ipcs.c
Examining data/libqb-2.0.1/lib/loop_poll_epoll.c
Examining data/libqb-2.0.1/lib/map.c
Examining data/libqb-2.0.1/lib/trie.c
Examining data/libqb-2.0.1/lib/log_format.c
Examining data/libqb-2.0.1/lib/loop_poll_int.h
Examining data/libqb-2.0.1/lib/log_int.h
Examining data/libqb-2.0.1/lib/map_int.h
Examining data/libqb-2.0.1/lib/log.c
Examining data/libqb-2.0.1/lib/hdb.c
Examining data/libqb-2.0.1/lib/hashtable.c
Examining data/libqb-2.0.1/lib/loop_int.h
Examining data/libqb-2.0.1/lib/rpl_sem.h
Examining data/libqb-2.0.1/lib/ringbuffer.c
Examining data/libqb-2.0.1/lib/atomic_int.h
Examining data/libqb-2.0.1/lib/skiplist.c
Examining data/libqb-2.0.1/lib/loop_poll.c
Examining data/libqb-2.0.1/lib/util.c
Examining data/libqb-2.0.1/lib/array.c
Examining data/libqb-2.0.1/lib/log_thread.c
Examining data/libqb-2.0.1/lib/ipc_socket.c
Examining data/libqb-2.0.1/lib/ipcc.c
Examining data/libqb-2.0.1/lib/util_int.h
Examining data/libqb-2.0.1/lib/strlcpy.c
Examining data/libqb-2.0.1/lib/ipc_shm.c
Examining data/libqb-2.0.1/lib/loop_job.c
Examining data/libqb-2.0.1/lib/loop_poll_poll.c
Examining data/libqb-2.0.1/lib/rpl_sem.c
Examining data/libqb-2.0.1/lib/log_syslog.c
Examining data/libqb-2.0.1/lib/ipc_setup.c
Examining data/libqb-2.0.1/lib/unix.c
Examining data/libqb-2.0.1/examples/ipcclient.c
Examining data/libqb-2.0.1/examples/mapnotify.c
Examining data/libqb-2.0.1/examples/tcpserver.c
Examining data/libqb-2.0.1/examples/ipcserver.c
Examining data/libqb-2.0.1/examples/simplelog.c
Examining data/libqb-2.0.1/examples/tcpclient.c

FINAL RESULTS:

data/libqb-2.0.1/doxygen2man/doxygen2man.c:125:6:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
					strncat(buffer, (char *)child->content, sizeof(buffer)-1);
data/libqb-2.0.1/doxygen2man/doxygen2man.c:130:7:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
						strncat(buffer,(char *)child->children->content, sizeof(buffer)-1);
data/libqb-2.0.1/doxygen2man/doxygen2man.c:219:5:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
				strncat(buffer, (char*)this_tag->content, sizeof(buffer)-1);
data/libqb-2.0.1/doxygen2man/doxygen2man.c:224:5:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
				strncat(buffer, "\\fB", sizeof(buffer)-1);
data/libqb-2.0.1/doxygen2man/doxygen2man.c:226:4:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
			strncat(buffer, (char*)this_tag->children->content, sizeof(buffer)-1);
data/libqb-2.0.1/doxygen2man/doxygen2man.c:228:5:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
				strncat(buffer, "\\fR", sizeof(buffer)-1);
data/libqb-2.0.1/doxygen2man/doxygen2man.c:234:5:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
				strncat(buffer, "\\fI", sizeof(buffer)-1);
data/libqb-2.0.1/doxygen2man/doxygen2man.c:236:4:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
			strncat(buffer, (char*)this_tag->children->content, sizeof(buffer)-1);
data/libqb-2.0.1/doxygen2man/doxygen2man.c:238:5:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
				strncat(buffer, "\\fR", sizeof(buffer)-1);
data/libqb-2.0.1/doxygen2man/doxygen2man.c:245:6:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
					strncat(buffer, (char*)sub_tag->children->children->content, sizeof(buffer)-1);
data/libqb-2.0.1/doxygen2man/doxygen2man.c:246:6:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
					strncat(buffer, "\n", sizeof(buffer)-1);
data/libqb-2.0.1/doxygen2man/doxygen2man.c:506:4:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
			strncat(buffer, tmp, sizeof(buffer)-1);
data/libqb-2.0.1/doxygen2man/doxygen2man.c:507:4:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
			strncat(buffer, "\n", sizeof(buffer)-1);
data/libqb-2.0.1/lib/ipc_setup.c:572:16:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	        res = chmod(un_addr.sun_path, S_IRWXU | S_IRWXG | S_IRWXO);
data/libqb-2.0.1/lib/ipc_setup.c:673:6:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	if (chmod(c->description, 0770)) {
data/libqb-2.0.1/lib/ipc_setup.c:678:8:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
	(void)chown(c->description, c->auth.uid, c->auth.gid);
data/libqb-2.0.1/lib/ipc_shm.c:331:9:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
		(void)chown(dirname, c->auth.uid, c->auth.gid);
data/libqb-2.0.1/lib/ipc_socket.c:111:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		(void)chmod(local_address.sun_path, 0660);
data/libqb-2.0.1/lib/ipc_socket.c:112:9:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
		(void)chown(local_address.sun_path, -1, gid);
data/libqb-2.0.1/lib/ipc_socket.c:810:8:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
	res = chown(r->request, c->auth.uid, c->auth.gid);
data/libqb-2.0.1/lib/ipc_socket.c:816:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	res = chmod(r->request, c->auth.mode);
data/libqb-2.0.1/lib/ringbuffer.c:907:8:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
	res = chown(rb->shared_hdr->data_path, owner, group);
data/libqb-2.0.1/lib/ringbuffer.c:911:8:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
	res = chown(rb->shared_hdr->hdr_path, owner, group);
data/libqb-2.0.1/lib/ringbuffer.c:926:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	res = chmod(rb->shared_hdr->data_path, mode);
data/libqb-2.0.1/lib/ringbuffer.c:930:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	res = chmod(rb->shared_hdr->hdr_path, mode);
data/libqb-2.0.1/include/qb/qblog.h:301:26:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	__attribute__ ((format (printf, 3, 7)));
data/libqb-2.0.1/include/qb/qblog.h:329:26:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	__attribute__ ((format (printf, 3, 0)));
data/libqb-2.0.1/lib/log.c:187:8:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	len = vsnprintf(str, maxlen, cs->format, ap_copy);
data/libqb-2.0.1/lib/log.c:951:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf(t->filename, PATH_MAX, "custom-%" PRIu32, t->pos);
data/libqb-2.0.1/lib/log_format.c:391:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
				snprintf(tmp_buf, 30, "%" PRIu32, cs->lineno);
data/libqb-2.0.1/lib/log_format.c:830:17:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
				location += snprintf(&string[location],
data/libqb-2.0.1/lib/log_format.c:842:17:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
				location += snprintf(&string[location],
data/libqb-2.0.1/lib/log_format.c:854:17:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
				location += snprintf(&string[location],
data/libqb-2.0.1/lib/log_format.c:875:16:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			location += snprintf(&string[location],
data/libqb-2.0.1/lib/log_format.c:889:16:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			location += snprintf(&string[location],
data/libqb-2.0.1/lib/log_format.c:900:10:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			len = snprintf(&string[location],
data/libqb-2.0.1/lib/log_format.c:916:16:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			location += snprintf(&string[location],
data/libqb-2.0.1/lib/ringbuffer.c:33:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(format, ##args);	\
data/libqb-2.0.1/tests/_syslog_override.c:45:6:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
void syslog(int priority, const char *format, ...);
data/libqb-2.0.1/tests/_syslog_override.c:48:1:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
syslog(int priority, const char *format, ...)
data/libqb-2.0.1/tests/check_ipc.c:1955:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(sockdir, conn->request.u.shm.rb->shared_hdr->hdr_path);
data/libqb-2.0.1/tests/check_ipc.c:2098:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(sock_file, "%s/%s", SOCKETDIR, ipc_name);
data/libqb-2.0.1/tests/check_ipc.c:2188:4:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			system("df -h | grep -e /shm >/tmp/_shm_usage");
data/libqb-2.0.1/tests/check_log.c:219:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(test_buf, msg);
data/libqb-2.0.1/tests/check_log.c:978:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(buf, "%5" PRIu32, tag);
data/libqb-2.0.1/tests/check_map.c:897:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access("/usr/share/dict/words", R_OK) != 0) {
data/libqb-2.0.1/tests/check_map.c:909:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access("/usr/share/dict/words", R_OK) != 0) {
data/libqb-2.0.1/tests/check_map.c:921:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access("/usr/share/dict/words", R_OK) != 0) {
data/libqb-2.0.1/tests/check_rb.c:57:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			    sprintf(str, "ID: %d (%s + i(%d)) -- %s-%s!",
data/libqb-2.0.1/tests/format_compare_speed.c:33:59:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
store_this_qb(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
data/libqb-2.0.1/tests/format_compare_speed.c:36:65:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
store_this_snprintf(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
data/libqb-2.0.1/tests/format_compare_speed.c:38:81:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
typedef void (*snprintf_like_func)(const char *fmt, ...)  __attribute__((format(printf, 1, 2)));
data/libqb-2.0.1/tests/format_compare_speed.c:59:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(buf, QB_LOG_MAX_LEN, fmt, ap);
data/libqb-2.0.1/doxygen2man/doxygen2man.c:1025:17:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ( (opt = getopt_long(argc, argv, "H:amqgPD:Y:s:S:d:o:p:f:I:i:C:h?", NULL, NULL)) != EOF)
data/libqb-2.0.1/examples/ipcclient.c:198:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(argc, argv, options)) != -1) {
data/libqb-2.0.1/examples/ipcserver.c:339:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(argc, argv, options)) != -1) {
data/libqb-2.0.1/examples/simplelog.c:148:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(argc, argv, options)) != -1) {
data/libqb-2.0.1/lib/hdb.c:109:11:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		check = random();
data/libqb-2.0.1/lib/loop_poll.c:69:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		pe->check = random();
data/libqb-2.0.1/lib/loop_timerlist.c:212:14:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		t->check = random();
data/libqb-2.0.1/lib/skiplist.c:84:21:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	while ((uint16_t) (random()) < P_CEIL)
data/libqb-2.0.1/lib/skiplist.c:600:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(time(NULL));
data/libqb-2.0.1/tests/bmc.c:152:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(argc, argv, options)) != -1) {
data/libqb-2.0.1/tests/bms.c:285:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(argc, argv, options)) != -1) {
data/libqb-2.0.1/tests/check_map.c:520:11:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	int kk = random() % 30;
data/libqb-2.0.1/tests/check_map.c:632:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(time(NULL));
data/libqb-2.0.1/tests/file_change_bytes.c:47:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(init_v);
data/libqb-2.0.1/tests/file_change_bytes.c:69:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "hi:o:n:")) != -1) {
data/libqb-2.0.1/tests/rbwriter.c:128:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(argc, argv, options)) != -1) {
data/libqb-2.0.1/doxygen2man/doxygen2man.c:112:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[1024] = {'\0'};
data/libqb-2.0.1/doxygen2man/doxygen2man.c:214:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[4096] = {'\0'};
data/libqb-2.0.1/doxygen2man/doxygen2man.c:332:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fullname[1024];
data/libqb-2.0.1/doxygen2man/doxygen2man.c:367:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fname[PATH_MAX];
data/libqb-2.0.1/doxygen2man/doxygen2man.c:411:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buffer[1024] = {'\0'};
data/libqb-2.0.1/doxygen2man/doxygen2man.c:500:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[4096] = {'\0'};
data/libqb-2.0.1/doxygen2man/doxygen2man.c:579:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char manfilename[PATH_MAX];
data/libqb-2.0.1/doxygen2man/doxygen2man.c:580:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char gendate[64];
data/libqb-2.0.1/doxygen2man/doxygen2man.c:613:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	manfile = fopen(manfilename, "w+");
data/libqb-2.0.1/doxygen2man/doxygen2man.c:1023:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char xml_filename[PATH_MAX];
data/libqb-2.0.1/examples/ipcclient.c:38:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char message[256];
data/libqb-2.0.1/examples/ipcclient.c:43:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char message[256];
data/libqb-2.0.1/examples/ipcserver.c:100:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char message[256];
data/libqb-2.0.1/examples/ipcserver.c:111:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char resp[100];
data/libqb-2.0.1/examples/simplelog.c:46:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = fopen("/nothing.txt", "r+");
data/libqb-2.0.1/examples/simplelog.c:118:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char output_buffer[QB_LOG_MAX_LEN];
data/libqb-2.0.1/examples/tcpclient.c:41:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char send_data[1024];
data/libqb-2.0.1/examples/tcpclient.c:42:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char recv_data[1024];
data/libqb-2.0.1/examples/tcpserver.c:45:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char recv_data[1024];
data/libqb-2.0.1/examples/tcpserver.c:46:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char send_data[1024];
data/libqb-2.0.1/include/qb/qblog.h:381:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char _perr_buf_[QB_LOG_STRERROR_MAX_LEN];			\
data/libqb-2.0.1/lib/ipc_int.h:60:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char request[PATH_MAX];
data/libqb-2.0.1/lib/ipc_int.h:61:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char response[PATH_MAX];
data/libqb-2.0.1/lib/ipc_int.h:62:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char event[PATH_MAX];
data/libqb-2.0.1/lib/ipc_int.h:75:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char shared_file_name[NAME_MAX];
data/libqb-2.0.1/lib/ipc_int.h:92:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[NAME_MAX];
data/libqb-2.0.1/lib/ipc_int.h:137:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[NAME_MAX];
data/libqb-2.0.1/lib/ipc_int.h:190:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char description[CONNECTION_DESCRIPTION];
data/libqb-2.0.1/lib/ipc_setup.c:374:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&cred, CMSG_DATA(cmsg), sizeof(struct ucred));
data/libqb-2.0.1/lib/ipc_setup.c:493:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(r, &data->msg.res, sizeof(struct qb_ipc_connection_response));
data/libqb-2.0.1/lib/ipc_setup.c:681:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(c->description + desc_len, suffix, sizeof suffix);
data/libqb-2.0.1/lib/ipc_setup.c:920:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dirname[PATH_MAX];
data/libqb-2.0.1/lib/ipc_setup.c:924:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dirname, name, slash - name);
data/libqb-2.0.1/lib/ipc_shm.c:86:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(pt, iov[i].iov_base, iov[i].iov_len);
data/libqb-2.0.1/lib/ipc_shm.c:314:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dirname[PATH_MAX];
data/libqb-2.0.1/lib/ipc_socket.c:90:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char sock_path[PATH_MAX];
data/libqb-2.0.1/lib/ipc_socket.c:185:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[max_msg_size];
data/libqb-2.0.1/lib/ipc_socket.c:278:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char sock_path[PATH_MAX];
data/libqb-2.0.1/lib/ipc_socket.c:355:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char sock_name[PATH_MAX];
data/libqb-2.0.1/lib/ipc_socket.c:570:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/libqb-2.0.1/lib/ipc_socket.c:659:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[10];
data/libqb-2.0.1/lib/ipc_socket.c:742:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char sock_name[PATH_MAX];
data/libqb-2.0.1/lib/ipc_socket.c:783:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/libqb-2.0.1/lib/ipcs.c:748:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char bytes[MAX_RECV_MSGS];
data/libqb-2.0.1/lib/ipcs.c:886:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(stats, &c->stats, sizeof(struct qb_ipcs_connection_stats));
data/libqb-2.0.1/lib/ipcs.c:909:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(stats, &c->stats, sizeof(struct qb_ipcs_connection_stats_2));
data/libqb-2.0.1/lib/ipcs.c:930:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(stats, &s->stats, sizeof(struct qb_ipcs_stats));
data/libqb-2.0.1/lib/log.c:116:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char token[500];
data/libqb-2.0.1/lib/log.c:210:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[QB_LOG_MAX_LEN];
data/libqb-2.0.1/lib/log_blackbox.c:87:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(chunk, &cs->lineno, sizeof(uint32_t));
data/libqb-2.0.1/lib/log_blackbox.c:91:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(chunk, &cs->tags, sizeof(uint32_t));
data/libqb-2.0.1/lib/log_blackbox.c:95:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(chunk, &cs->priority, sizeof(uint8_t));
data/libqb-2.0.1/lib/log_blackbox.c:99:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(chunk, &fn_size, sizeof(uint32_t));
data/libqb-2.0.1/lib/log_blackbox.c:101:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(chunk, cs->function, fn_size);
data/libqb-2.0.1/lib/log_blackbox.c:105:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(chunk, timestamp, sizeof(struct timespec));
data/libqb-2.0.1/lib/log_blackbox.c:128:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(msg_len_pt, &msg_len, sizeof(uint32_t));
data/libqb-2.0.1/lib/log_blackbox.c:191:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int fd = open(filename, O_CREAT | O_RDWR, 0700);
data/libqb-2.0.1/lib/log_blackbox.c:232:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char time_buf[64];
data/libqb-2.0.1/lib/log_blackbox.c:234:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(bb_filename, 0);
data/libqb-2.0.1/lib/log_blackbox.c:280:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char message[QB_LOG_MAX_LEN];
data/libqb-2.0.1/lib/log_blackbox.c:297:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&lineno, ptr, sizeof(uint32_t));
data/libqb-2.0.1/lib/log_blackbox.c:301:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&tags, ptr, sizeof(uint32_t));
data/libqb-2.0.1/lib/log_blackbox.c:305:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&priority, ptr, sizeof(uint8_t));
data/libqb-2.0.1/lib/log_blackbox.c:309:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&fn_size, ptr, sizeof(uint32_t));
data/libqb-2.0.1/lib/log_blackbox.c:331:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&timestamp, ptr, sizeof(struct timespec));
data/libqb-2.0.1/lib/log_blackbox.c:335:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&time_sec, ptr, sizeof(time_t));
data/libqb-2.0.1/lib/log_blackbox.c:351:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&msg_len, ptr, sizeof(uint32_t));
data/libqb-2.0.1/lib/log_file.c:28:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[QB_LOG_MAX_LEN];
data/libqb-2.0.1/lib/log_file.c:80:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	newfile = fopen(filename, "a+");
data/libqb-2.0.1/lib/log_file.c:140:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(filename, "a+");
data/libqb-2.0.1/lib/log_format.c:120:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char modified_format[256];
data/libqb-2.0.1/lib/log_format.c:204:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dest + cutoff - len, src, len);
data/libqb-2.0.1/lib/log_format.c:206:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dest, src, len);
data/libqb-2.0.1/lib/log_format.c:229:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp_buf[255];
data/libqb-2.0.1/lib/log_format.c:259:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				cutoff = atoi(&format[format_buffer_idx]);
data/libqb-2.0.1/lib/log_format.c:324:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp_buf[128];
data/libqb-2.0.1/lib/log_format.c:357:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				cutoff = atoi(&t->format[format_buffer_idx]);
data/libqb-2.0.1/lib/log_format.c:549:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&serialize[location], &arg_int, sizeof (int));
data/libqb-2.0.1/lib/log_format.c:600:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(&serialize[location], &arg_int,
data/libqb-2.0.1/lib/log_format.c:612:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(&serialize[location], &arg_int,
data/libqb-2.0.1/lib/log_format.c:624:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(&serialize[location], &arg_int,
data/libqb-2.0.1/lib/log_format.c:645:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy (&serialize[location], &arg_double, sizeof (double));
data/libqb-2.0.1/lib/log_format.c:661:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy (&serialize[location], &arg_char, sizeof (unsigned char));
data/libqb-2.0.1/lib/log_format.c:694:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&serialize[location], &arg_pointer, sizeof(ptrdiff_t));
data/libqb-2.0.1/lib/log_format.c:719:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fmt[MINI_FORMAT_STR_LEN];
data/libqb-2.0.1/lib/log_format.c:739:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&string[location], format, len);
data/libqb-2.0.1/lib/log_format.c:772:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&arg_int, &buf[data_pos], sizeof(int));
data/libqb-2.0.1/lib/log_format.c:829:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(&arg_int, &buf[data_pos], sizeof(long int));
data/libqb-2.0.1/lib/log_format.c:841:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(&arg_int, &buf[data_pos], sizeof(long long int));
data/libqb-2.0.1/lib/log_format.c:853:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(&arg_int, &buf[data_pos], sizeof(int));
data/libqb-2.0.1/lib/log_format.c:874:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&arg_double, &buf[data_pos], sizeof(double));
data/libqb-2.0.1/lib/log_format.c:912:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&pt, &buf[data_pos],
data/libqb-2.0.1/lib/log_int.h:34:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[PATH_MAX];
data/libqb-2.0.1/lib/log_int.h:35:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char filename[PATH_MAX];
data/libqb-2.0.1/lib/log_syslog.c:37:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[QB_LOG_MAX_LEN];
data/libqb-2.0.1/lib/log_thread.c:238:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(rec->buffer, buffer, buf_size);
data/libqb-2.0.1/lib/log_thread.c:240:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&rec->timestamp, timestamp, sizeof(struct timespec));
data/libqb-2.0.1/lib/loop_poll.c:604:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(new_sig_job, sig, sizeof(struct qb_loop_sig));
data/libqb-2.0.1/lib/loop_poll_poll.c:65:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&s->ufds[i], &pe->ufd, sizeof(struct pollfd));
data/libqb-2.0.1/lib/ringbuffer.c:132:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/libqb-2.0.1/lib/ringbuffer.c:136:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char filename[PATH_MAX];
data/libqb-2.0.1/lib/ringbuffer.c:204:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&rb->notifier,
data/libqb-2.0.1/lib/ringbuffer.c:522:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dest, data, len);
data/libqb-2.0.1/lib/ringbuffer.c:683:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(data_out,
data/libqb-2.0.1/lib/ringbuffer_helper.c:351:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char dir_path[PATH_MAX];
data/libqb-2.0.1/lib/ringbuffer_helper.c:357:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			if ((dirfd = open(dir_path, RB_DIR_RO_FLAGS)) != -1) {
data/libqb-2.0.1/lib/ringbuffer_int.h:67:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hdr_path[PATH_MAX];
data/libqb-2.0.1/lib/ringbuffer_int.h:68:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char data_path[PATH_MAX];
data/libqb-2.0.1/lib/ringbuffer_int.h:71:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char user_data[1];
data/libqb-2.0.1/lib/unix.c:64:21:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
		int32_t temp_fd = mkstemp(path);
data/libqb-2.0.1/lib/unix.c:69:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	return open(path, file_flags, 0600);
data/libqb-2.0.1/lib/util_int.h:30:26:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define va_copy(_a, _b)  memcpy(&_a, &_b, sizeof(va_list))
data/libqb-2.0.1/lib/util_int.h:48:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char _perr_buf_[QB_LOG_STRERROR_MAX_LEN];			\
data/libqb-2.0.1/tests/_syslog_override.c:32:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char _syslog_ident[PATH_MAX] = "";
data/libqb-2.0.1/tests/_syslog_override.h:32:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char _syslog_ident[PATH_MAX];
data/libqb-2.0.1/tests/bmc.c:54:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char message[1024 * 1024];
data/libqb-2.0.1/tests/bmcpt.c:84:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char message[1024 * 1024];
data/libqb-2.0.1/tests/check_ipc.c:49:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char ipc_name[256];
data/libqb-2.0.1/tests/check_ipc.c:221:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char process_name[256];
data/libqb-2.0.1/tests/check_ipc.c:226:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen("ipc-test-name", "r");
data/libqb-2.0.1/tests/check_ipc.c:233:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		static char t_sec[3] = "";
data/libqb-2.0.1/tests/check_ipc.c:248:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static const char buf[8] = { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h' };
data/libqb-2.0.1/tests/check_ipc.c:275:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[4096] = { '\0' };
data/libqb-2.0.1/tests/check_ipc.c:380:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char data[GIANT_MSG_DATA_SIZE] __attribute__ ((aligned(8)));
data/libqb-2.0.1/tests/check_ipc.c:708:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(context, "test", 4);
data/libqb-2.0.1/tests/check_ipc.c:818:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char formatbuf[1024];
data/libqb-2.0.1/tests/check_ipc.c:947:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char message[1024 * 1024];
data/libqb-2.0.1/tests/check_ipc.c:1270:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char message[1024 * 1024];
data/libqb-2.0.1/tests/check_ipc.c:1356:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char data[GIANT_MSG_DATA_SIZE] __attribute__ ((aligned(8)));
data/libqb-2.0.1/tests/check_ipc.c:1524:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char data[GIANT_MSG_DATA_SIZE] __attribute__ ((aligned(8)));
data/libqb-2.0.1/tests/check_ipc.c:1954:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char sockdir[PATH_MAX];
data/libqb-2.0.1/tests/check_ipc.c:2091:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char sock_file[PATH_MAX];
data/libqb-2.0.1/tests/check_log.c:46:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[QB_LOG_MAX_LEN];
data/libqb-2.0.1/tests/check_log.c:58:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[QB_LOG_MAX_LEN];
data/libqb-2.0.1/tests/check_log.c:69:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[QB_LOG_MAX_LEN];
data/libqb-2.0.1/tests/check_log.c:70:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cmp_buf[QB_LOG_MAX_LEN];
data/libqb-2.0.1/tests/check_log.c:194:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char test_buf[4097];
data/libqb-2.0.1/tests/check_log.c:384:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char bigbuf[4097];
data/libqb-2.0.1/tests/check_log.c:617:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char host_str[256];
data/libqb-2.0.1/tests/check_log.c:618:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cmp_str[2 * sizeof(host_str)];
data/libqb-2.0.1/tests/check_log.c:977:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[32];
data/libqb-2.0.1/tests/check_map.c:184:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char c[2];
data/libqb-2.0.1/tests/check_map.c:651:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char word[1000];
data/libqb-2.0.1/tests/check_map.c:670:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen("/usr/share/dict/words", "r");
data/libqb-2.0.1/tests/check_map.c:688:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen("/usr/share/dict/words", "r");
data/libqb-2.0.1/tests/check_map.c:718:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen("/usr/share/dict/words", "r");
data/libqb-2.0.1/tests/check_rb.c:38:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char my_buf[512];
data/libqb-2.0.1/tests/check_rb.c:51:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&hdr, my_buf, sizeof(struct qb_ipc_request_header));
data/libqb-2.0.1/tests/check_rb.c:61:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(my_buf, &hdr, sizeof(struct qb_ipc_request_header));
data/libqb-2.0.1/tests/check_rb.c:73:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&hdr, my_buf, sizeof(struct qb_ipc_request_header));
data/libqb-2.0.1/tests/check_rb.c:82:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&hdr, my_buf, sizeof(struct qb_ipc_request_header));
data/libqb-2.0.1/tests/check_rb.c:140:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char out[32];
data/libqb-2.0.1/tests/crash_test_dummy.c:41:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = fopen("/nothing.txt", "r+");
data/libqb-2.0.1/tests/file_change_bytes.c:63:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[1024];
data/libqb-2.0.1/tests/file_change_bytes.c:95:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fi = fopen(input_file_name, "rb");
data/libqb-2.0.1/tests/file_change_bytes.c:112:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(data + data_pos, buf, input_data_size);
data/libqb-2.0.1/tests/file_change_bytes.c:132:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fo = fopen(output_file_name, "wb");
data/libqb-2.0.1/tests/format_compare_speed.c:44:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[QB_LOG_MAX_LEN];
data/libqb-2.0.1/tests/format_compare_speed.c:55:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[QB_LOG_MAX_LEN];
data/libqb-2.0.1/tests/loop.c:81:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[100];
data/libqb-2.0.1/tests/rbwriter.c:42:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char buffer[ONE_MEG * 3];
data/libqb-2.0.1/doxygen2man/doxygen2man.c:161:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	for (i=0; i<strlen(string); i++) {
data/libqb-2.0.1/doxygen2man/doxygen2man.c:414:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	for (i=0; i< strlen(name); i++) {
data/libqb-2.0.1/doxygen2man/doxygen2man.c:417:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	buffer[strlen(name)] = '\0';
data/libqb-2.0.1/doxygen2man/doxygen2man.c:425:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int typelength = strlen(type);
data/libqb-2.0.1/doxygen2man/doxygen2man.c:473:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(pi->paramtype) > max_param_length) {
data/libqb-2.0.1/doxygen2man/doxygen2man.c:474:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			max_param_length = strlen(pi->paramtype);
data/libqb-2.0.1/doxygen2man/doxygen2man.c:561:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(current)) {
data/libqb-2.0.1/doxygen2man/doxygen2man.c:571:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(current)) {
data/libqb-2.0.1/doxygen2man/doxygen2man.c:634:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ((strlen(pi->paramtype) < LINE_LENGTH) &&
data/libqb-2.0.1/doxygen2man/doxygen2man.c:635:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    (strlen(pi->paramtype) > max_param_type_len)) {
data/libqb-2.0.1/doxygen2man/doxygen2man.c:636:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			max_param_type_len = strlen(pi->paramtype);
data/libqb-2.0.1/doxygen2man/doxygen2man.c:638:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(pi->paramname) > max_param_name_len) {
data/libqb-2.0.1/doxygen2man/doxygen2man.c:639:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			max_param_name_len = strlen(pi->paramname);
data/libqb-2.0.1/examples/tcpclient.c:73:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		res = send(sock, send_data, strlen(send_data), 0);
data/libqb-2.0.1/examples/tcpserver.c:69:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (send(fd, send_data, strlen(send_data), 0) < 0) {
data/libqb-2.0.1/lib/hashtable.c:86:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return hash_fnv(key, strlen(str), order);
data/libqb-2.0.1/lib/ipc_shm.c:172:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(c->name) > (NAME_MAX - 20)) {
data/libqb-2.0.1/lib/ipc_socket.c:218:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			rc = read(sockets[0], buf, max_msg_size);
data/libqb-2.0.1/lib/ipc_socket.c:325:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(100000);
data/libqb-2.0.1/lib/ipc_socket.c:358:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			length = strlen(un_addr.sun_path);
data/libqb-2.0.1/lib/ipc_socket.c:745:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				length = strlen(un_addr.sun_path);
data/libqb-2.0.1/lib/log_blackbox.c:70:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	fn_size = strlen(cs->function) + 1;
data/libqb-2.0.1/lib/log_blackbox.c:243:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	err = read(fd, &header, sizeof(header));
data/libqb-2.0.1/lib/log_format.c:189:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len = strlen(src);
data/libqb-2.0.1/lib/log_format.c:672:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						   QB_MIN(strlen("(null)") + 1,
data/libqb-2.0.1/lib/log_format.c:682:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						   QB_MIN(strlen(arg_string) + 1,
data/libqb-2.0.1/lib/log_format.c:723:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	uint32_t data_pos = strlen(buf) + 1;
data/libqb-2.0.1/lib/log_format.c:905:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			data_pos += strlen(&buf[data_pos]) + 1;
data/libqb-2.0.1/lib/log_thread.c:92:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		logt_memory_used = logt_memory_used - strlen(rec->buffer) -
data/libqb-2.0.1/lib/log_thread.c:230:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	buf_size = strlen(buffer) + 1;
data/libqb-2.0.1/lib/log_thread.c:289:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					   strlen(rec->buffer) -
data/libqb-2.0.1/lib/loop_poll.c:589:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	res = read(pipe_fds[0], &the_signal, sizeof(int32_t));
data/libqb-2.0.1/lib/loop_poll_epoll.c:170:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(100000);
data/libqb-2.0.1/lib/ringbuffer.c:810:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n_read = read(fd, &word_size, n_required);
data/libqb-2.0.1/lib/ringbuffer.c:820:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n_read = read(fd, &write_pt, sizeof(uint32_t));
data/libqb-2.0.1/lib/ringbuffer.c:824:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n_read = read(fd, &read_pt, sizeof(uint32_t));
data/libqb-2.0.1/lib/ringbuffer.c:832:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n_read = read(fd, &version, n_required);
data/libqb-2.0.1/lib/ringbuffer.c:843:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n_read = read(fd, &hash, n_required);
data/libqb-2.0.1/lib/ringbuffer.c:876:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n_read = read(fd, rb->shared_data, n_required);
data/libqb-2.0.1/lib/ringbuffer_helper.c:355:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(dir_path, data_path, sep - data_path);
data/libqb-2.0.1/lib/strlcat.c:35:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t	curlen = strlen(dest);
data/libqb-2.0.1/lib/strlcat.c:36:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t	addlen = strlen(src);
data/libqb-2.0.1/lib/strlcpy.c:33:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t	srclen = strlen(src);
data/libqb-2.0.1/lib/strlcpy.c:37:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(dest, src, len2cpy+1);
data/libqb-2.0.1/lib/unix.c:63:21:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		mode_t old_mode = umask(077);
data/libqb-2.0.1/lib/unix.c:65:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		(void)umask(old_mode);
data/libqb-2.0.1/tests/_syslog_override.c:42:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(_syslog_ident, ident, sizeof(_syslog_ident)-1);
data/libqb-2.0.1/tests/bench-log.c:37:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen (operation) > 22) {
data/libqb-2.0.1/tests/check_ipc.c:236:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(t_sec, found ? found + 1 : "-", sizeof(t_sec) - 1);
data/libqb-2.0.1/tests/check_ipc.c:276:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((rbytes = read(fd, buf, sizeof(buf))) > 0 && rbytes < cnt) {
data/libqb-2.0.1/tests/check_ipc.c:369:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
				usleep(1000);
data/libqb-2.0.1/tests/check_ipc.c:407:6:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
					usleep(1000);
data/libqb-2.0.1/tests/check_log.c:40:61:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
extern size_t qb_vsnprintf_deserialize(char *string, size_t strlen, const char *buf);
data/libqb-2.0.1/tests/check_log.c:224:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	last_length = strlen(msg);
data/libqb-2.0.1/tests/check_rb.c:142:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len = strlen(v) + 1;
data/libqb-2.0.1/tests/check_rb.c:174:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		l = qb_rb_chunk_write(t, data, strlen(data));
data/libqb-2.0.1/tests/check_rb.c:175:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		ck_assert_int_eq(l, strlen(data));
data/libqb-2.0.1/tests/check_rb.c:186:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		ck_assert_int_eq(l, strlen(data));
data/libqb-2.0.1/tests/check_util.c:48:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(10000);
data/libqb-2.0.1/tests/check_util.c:52:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(20000);
data/libqb-2.0.1/tests/check_util.c:56:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(30000);
data/libqb-2.0.1/tests/check_util.c:60:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(40000);
data/libqb-2.0.1/tests/check_util.c:71:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(50000);
data/libqb-2.0.1/tests/check_util.c:81:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(25000);
data/libqb-2.0.1/tests/check_util.c:111:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(33000);
data/libqb-2.0.1/tests/check_util.c:118:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(10000);
data/libqb-2.0.1/tests/check_util.c:123:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(20000);
data/libqb-2.0.1/tests/loop.c:82:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ssize_t len = read(fd, buf, 100);
data/libqb-2.0.1/tests/rbreader.c:67:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(100000);

ANALYSIS SUMMARY:

Hits = 299
Lines analyzed = 30147 in approximately 0.80 seconds (37866 lines/second)
Physical Source Lines of Code (SLOC) = 21085
Hits@level = [0] 307 [1]  69 [2] 161 [3]  16 [4]  28 [5]  25
Hits@level+ = [0+] 606 [1+] 299 [2+] 230 [3+]  69 [4+]  53 [5+]  25
Hits/KSLOC@level+ = [0+] 28.7408 [1+] 14.1807 [2+] 10.9082 [3+] 3.27247 [4+] 2.51364 [5+] 1.18568
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.