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/audit-3.0~alpha9/src/auditctl.c
Examining data/audit-3.0~alpha9/src/ausearch-report.c
Examining data/audit-3.0~alpha9/src/aureport-output.c
Examining data/audit-3.0~alpha9/src/ausearch-time.h
Examining data/audit-3.0~alpha9/src/auditd-event.h
Examining data/audit-3.0~alpha9/src/ausearch-int.h
Examining data/audit-3.0~alpha9/src/auditd-dispatch.c
Examining data/audit-3.0~alpha9/src/ausearch-nvpair.c
Examining data/audit-3.0~alpha9/src/ausearch-int.c
Examining data/audit-3.0~alpha9/src/auditctl-llist.h
Examining data/audit-3.0~alpha9/src/ausearch-string.h
Examining data/audit-3.0~alpha9/src/ausearch-options.c
Examining data/audit-3.0~alpha9/src/aureport.c
Examining data/audit-3.0~alpha9/src/auditd-config.c
Examining data/audit-3.0~alpha9/src/ausearch-avc.c
Examining data/audit-3.0~alpha9/src/ausearch-nvpair.h
Examining data/audit-3.0~alpha9/src/aureport-scan.c
Examining data/audit-3.0~alpha9/src/test/ilist_test.c
Examining data/audit-3.0~alpha9/src/test/slist_test.c
Examining data/audit-3.0~alpha9/src/aureport-options.h
Examining data/audit-3.0~alpha9/src/delete_all.c
Examining data/audit-3.0~alpha9/src/auditd-sendmail.c
Examining data/audit-3.0~alpha9/src/ausearch-parse.c
Examining data/audit-3.0~alpha9/src/aureport-options.c
Examining data/audit-3.0~alpha9/src/autrace.c
Examining data/audit-3.0~alpha9/src/ausearch-options.h
Examining data/audit-3.0~alpha9/src/auditd-listen.h
Examining data/audit-3.0~alpha9/src/auditd-dispatch.h
Examining data/audit-3.0~alpha9/src/ausearch-lookup.c
Examining data/audit-3.0~alpha9/src/ausearch-lol.h
Examining data/audit-3.0~alpha9/src/libev/ev.h
Examining data/audit-3.0~alpha9/src/libev/ev_poll.c
Examining data/audit-3.0~alpha9/src/libev/ev_vars.h
Examining data/audit-3.0~alpha9/src/libev/ev.c
Examining data/audit-3.0~alpha9/src/libev/ev_epoll.c
Examining data/audit-3.0~alpha9/src/libev/event.h
Examining data/audit-3.0~alpha9/src/libev/ev_wrap.h
Examining data/audit-3.0~alpha9/src/libev/ev_select.c
Examining data/audit-3.0~alpha9/src/libev/event.c
Examining data/audit-3.0~alpha9/src/ausearch-avc.h
Examining data/audit-3.0~alpha9/src/ausearch-lol.c
Examining data/audit-3.0~alpha9/src/auditd-config.h
Examining data/audit-3.0~alpha9/src/auditctl-listing.h
Examining data/audit-3.0~alpha9/src/ausearch-checkpt.h
Examining data/audit-3.0~alpha9/src/auditctl-listing.c
Examining data/audit-3.0~alpha9/src/ausearch-llist.h
Examining data/audit-3.0~alpha9/src/ausearch-checkpt.c
Examining data/audit-3.0~alpha9/src/aureport-scan.h
Examining data/audit-3.0~alpha9/src/ausearch-parse.h
Examining data/audit-3.0~alpha9/src/auditd-reconfig.c
Examining data/audit-3.0~alpha9/src/ausearch-time.c
Examining data/audit-3.0~alpha9/src/auditd-event.c
Examining data/audit-3.0~alpha9/src/ausearch-llist.c
Examining data/audit-3.0~alpha9/src/auditctl-llist.c
Examining data/audit-3.0~alpha9/src/ausearch-common.h
Examining data/audit-3.0~alpha9/src/ausearch.c
Examining data/audit-3.0~alpha9/src/ausearch-match.c
Examining data/audit-3.0~alpha9/src/ausearch-lookup.h
Examining data/audit-3.0~alpha9/src/auditd.c
Examining data/audit-3.0~alpha9/src/ausearch-string.c
Examining data/audit-3.0~alpha9/src/auditd-listen.c
Examining data/audit-3.0~alpha9/auparse/tcpoptnametab.h
Examining data/audit-3.0~alpha9/auparse/internal.h
Examining data/audit-3.0~alpha9/auparse/persontab.h
Examining data/audit-3.0~alpha9/auparse/signaltab.h
Examining data/audit-3.0~alpha9/auparse/expression.h
Examining data/audit-3.0~alpha9/auparse/shm_modetab.h
Examining data/audit-3.0~alpha9/auparse/interpret.h
Examining data/audit-3.0~alpha9/auparse/data_buf.h
Examining data/audit-3.0~alpha9/auparse/flagtab.h
Examining data/audit-3.0~alpha9/auparse/prctl-opt-tab.h
Examining data/audit-3.0~alpha9/auparse/ipctab.h
Examining data/audit-3.0~alpha9/auparse/prottab.h
Examining data/audit-3.0~alpha9/auparse/private.h
Examining data/audit-3.0~alpha9/auparse/seccomptab.h
Examining data/audit-3.0~alpha9/auparse/nvlist.h
Examining data/audit-3.0~alpha9/auparse/fcntl-cmdtab.h
Examining data/audit-3.0~alpha9/auparse/seektab.h
Examining data/audit-3.0~alpha9/auparse/captab.h
Examining data/audit-3.0~alpha9/auparse/ioctlreqtab.h
Examining data/audit-3.0~alpha9/auparse/auparse.c
Examining data/audit-3.0~alpha9/auparse/auditd-config.c
Examining data/audit-3.0~alpha9/auparse/icmptypetab.h
Examining data/audit-3.0~alpha9/auparse/recvtab.h
Examining data/audit-3.0~alpha9/auparse/normalize-llist.h
Examining data/audit-3.0~alpha9/auparse/test/auparselol_test.c
Examining data/audit-3.0~alpha9/auparse/test/lookup_test.c
Examining data/audit-3.0~alpha9/auparse/test/auparse_test.c
Examining data/audit-3.0~alpha9/auparse/nfprototab.h
Examining data/audit-3.0~alpha9/auparse/socktypetab.h
Examining data/audit-3.0~alpha9/auparse/famtab.h
Examining data/audit-3.0~alpha9/auparse/schedtab.h
Examining data/audit-3.0~alpha9/auparse/clone-flagtab.h
Examining data/audit-3.0~alpha9/auparse/data_buf.c
Examining data/audit-3.0~alpha9/auparse/message.c
Examining data/audit-3.0~alpha9/auparse/auparse-defs.h
Examining data/audit-3.0~alpha9/auparse/socktab.h
Examining data/audit-3.0~alpha9/auparse/umounttab.h
Examining data/audit-3.0~alpha9/auparse/pktoptnametab.h
Examining data/audit-3.0~alpha9/auparse/expression.c
Examining data/audit-3.0~alpha9/auparse/ipoptnametab.h
Examining data/audit-3.0~alpha9/auparse/mmaptab.h
Examining data/audit-3.0~alpha9/auparse/normalize_record_map.h
Examining data/audit-3.0~alpha9/auparse/ip6optnametab.h
Examining data/audit-3.0~alpha9/auparse/ellist.c
Examining data/audit-3.0~alpha9/auparse/netactiontab.h
Examining data/audit-3.0~alpha9/auparse/rnode.h
Examining data/audit-3.0~alpha9/auparse/normalize-llist.c
Examining data/audit-3.0~alpha9/auparse/sockoptnametab.h
Examining data/audit-3.0~alpha9/auparse/lru.h
Examining data/audit-3.0~alpha9/auparse/open-flagtab.h
Examining data/audit-3.0~alpha9/auparse/clocktab.h
Examining data/audit-3.0~alpha9/auparse/auparse-idata.h
Examining data/audit-3.0~alpha9/auparse/tty_named_keys.h
Examining data/audit-3.0~alpha9/auparse/normalize_syscall_map.h
Examining data/audit-3.0~alpha9/auparse/ipccmdtab.h
Examining data/audit-3.0~alpha9/auparse/bpftab.h
Examining data/audit-3.0~alpha9/auparse/rlimittab.h
Examining data/audit-3.0~alpha9/auparse/accesstab.h
Examining data/audit-3.0~alpha9/auparse/inethooktab.h
Examining data/audit-3.0~alpha9/auparse/typetab.h
Examining data/audit-3.0~alpha9/auparse/epoll_ctl.h
Examining data/audit-3.0~alpha9/auparse/normalize-internal.h
Examining data/audit-3.0~alpha9/auparse/nvlist.c
Examining data/audit-3.0~alpha9/auparse/ellist.h
Examining data/audit-3.0~alpha9/auparse/ptracetab.h
Examining data/audit-3.0~alpha9/auparse/normalize.c
Examining data/audit-3.0~alpha9/auparse/normalize_obj_kind_map.h
Examining data/audit-3.0~alpha9/auparse/sockleveltab.h
Examining data/audit-3.0~alpha9/auparse/interpret.c
Examining data/audit-3.0~alpha9/auparse/lru.c
Examining data/audit-3.0~alpha9/auparse/mounttab.h
Examining data/audit-3.0~alpha9/auparse/normalize_evtypetab.h
Examining data/audit-3.0~alpha9/auparse/auparse.h
Examining data/audit-3.0~alpha9/audisp/audispd-pconfig.c
Examining data/audit-3.0~alpha9/audisp/audispd-llist.h
Examining data/audit-3.0~alpha9/audisp/audispd.c
Examining data/audit-3.0~alpha9/audisp/audispd-builtins.c
Examining data/audit-3.0~alpha9/audisp/audispd-config.h
Examining data/audit-3.0~alpha9/audisp/audispd-pconfig.h
Examining data/audit-3.0~alpha9/audisp/libdisp.h
Examining data/audit-3.0~alpha9/audisp/queue.h
Examining data/audit-3.0~alpha9/audisp/plugins/zos-remote/zos-remote-log.c
Examining data/audit-3.0~alpha9/audisp/plugins/zos-remote/zos-remote-log.h
Examining data/audit-3.0~alpha9/audisp/plugins/zos-remote/zos-remote-plugin.c
Examining data/audit-3.0~alpha9/audisp/plugins/zos-remote/zos-remote-ldap.c
Examining data/audit-3.0~alpha9/audisp/plugins/zos-remote/zos-remote-queue.c
Examining data/audit-3.0~alpha9/audisp/plugins/zos-remote/zos-remote-ldap.h
Examining data/audit-3.0~alpha9/audisp/plugins/zos-remote/zos-remote-config.c
Examining data/audit-3.0~alpha9/audisp/plugins/zos-remote/zos-remote-config.h
Examining data/audit-3.0~alpha9/audisp/plugins/zos-remote/zos-remote-queue.h
Examining data/audit-3.0~alpha9/audisp/plugins/syslog/audisp-syslog.c
Examining data/audit-3.0~alpha9/audisp/plugins/remote/remote-config.h
Examining data/audit-3.0~alpha9/audisp/plugins/remote/queue.h
Examining data/audit-3.0~alpha9/audisp/plugins/remote/remote-config.c
Examining data/audit-3.0~alpha9/audisp/plugins/remote/audisp-remote.c
Examining data/audit-3.0~alpha9/audisp/plugins/remote/queue.c
Examining data/audit-3.0~alpha9/audisp/plugins/remote/test-queue.c
Examining data/audit-3.0~alpha9/audisp/audispd-builtins.h
Examining data/audit-3.0~alpha9/audisp/audispd-llist.c
Examining data/audit-3.0~alpha9/audisp/queue.c
Examining data/audit-3.0~alpha9/lib/i386_table.h
Examining data/audit-3.0~alpha9/lib/flagtab.h
Examining data/audit-3.0~alpha9/lib/libaudit.c
Examining data/audit-3.0~alpha9/lib/private.h
Examining data/audit-3.0~alpha9/lib/x86_64_table.h
Examining data/audit-3.0~alpha9/lib/gen_tables.h
Examining data/audit-3.0~alpha9/lib/fieldtab.h
Examining data/audit-3.0~alpha9/lib/fstypetab.h
Examining data/audit-3.0~alpha9/lib/s390x_table.h
Examining data/audit-3.0~alpha9/lib/errormsg.h
Examining data/audit-3.0~alpha9/lib/test/lookup_test.c
Examining data/audit-3.0~alpha9/lib/optab.h
Examining data/audit-3.0~alpha9/lib/audit_logging.c
Examining data/audit-3.0~alpha9/lib/aarch64_table.h
Examining data/audit-3.0~alpha9/lib/message.c
Examining data/audit-3.0~alpha9/lib/machinetab.h
Examining data/audit-3.0~alpha9/lib/actiontab.h
Examining data/audit-3.0~alpha9/lib/lookup_table.c
Examining data/audit-3.0~alpha9/lib/msg_typetab.h
Examining data/audit-3.0~alpha9/lib/dso.h
Examining data/audit-3.0~alpha9/lib/errtab.h
Examining data/audit-3.0~alpha9/lib/arm_table.h
Examining data/audit-3.0~alpha9/lib/gen_tables.c
Examining data/audit-3.0~alpha9/lib/libaudit.h
Examining data/audit-3.0~alpha9/lib/deprecated.c
Examining data/audit-3.0~alpha9/lib/s390_table.h
Examining data/audit-3.0~alpha9/lib/ftypetab.h
Examining data/audit-3.0~alpha9/lib/ppc_table.h
Examining data/audit-3.0~alpha9/lib/netlink.c
Examining data/audit-3.0~alpha9/bindings/python/auparse_python.c
Examining data/audit-3.0~alpha9/tools/aulast/aulast-llist.h
Examining data/audit-3.0~alpha9/tools/aulast/aulast.c
Examining data/audit-3.0~alpha9/tools/aulast/aulast-llist.c
Examining data/audit-3.0~alpha9/tools/ausyscall/ausyscall.c
Examining data/audit-3.0~alpha9/tools/auvirt/auvirt-list.c
Examining data/audit-3.0~alpha9/tools/auvirt/auvirt.c
Examining data/audit-3.0~alpha9/tools/auvirt/auvirt-list.h
Examining data/audit-3.0~alpha9/tools/aulastlog/aulastlog-llist.h
Examining data/audit-3.0~alpha9/tools/aulastlog/aulastlog-llist.c
Examining data/audit-3.0~alpha9/tools/aulastlog/aulastlog.c
Examining data/audit-3.0~alpha9/contrib/plugin/audisp-example.c
Examining data/audit-3.0~alpha9/common/common.h
Examining data/audit-3.0~alpha9/common/strsplit.c
Examining data/audit-3.0~alpha9/common/audit-fgets.c

FINAL RESULTS:

data/audit-3.0~alpha9/audisp/audispd-builtins.c:126:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		rc = chmod(path, mode);
data/audit-3.0~alpha9/audisp/audispd-builtins.c:178:10:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
				rc = chmod(path, mode);
data/audit-3.0~alpha9/lib/audit_logging.c:157:13:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	if ((res = readlink("/proc/self/exe", tmp, PATH_MAX)) == -1) {
data/audit-3.0~alpha9/lib/audit_logging.c:298:3:  [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(addrbuf, addr, sizeof(addrbuf)-1);
data/audit-3.0~alpha9/lib/audit_logging.c:376:3:  [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(addrbuf, addr, sizeof(addrbuf)-1);
data/audit-3.0~alpha9/lib/audit_logging.c:459:3:  [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(addrbuf, addr, sizeof(addrbuf)-1);
data/audit-3.0~alpha9/lib/audit_logging.c:486:3:  [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(user, name, MAX_USER-1);
data/audit-3.0~alpha9/lib/audit_logging.c:556:3:  [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(addrbuf, addr, sizeof(addrbuf)-1);
data/audit-3.0~alpha9/lib/audit_logging.c:641:3:  [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(addrbuf, addr, sizeof(addrbuf)-1);
data/audit-3.0~alpha9/lib/audit_logging.c:660:3:  [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(user, name, MAX_USER-1);
data/audit-3.0~alpha9/src/auditd-event.c:994:2:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	chmod(dir, config->log_group ? S_IRWXU|S_IRGRP|S_IXGRP : S_IRWXU);
data/audit-3.0~alpha9/src/auditd-event.c:995:2:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
	chown(dir, 0, config->log_group ? config->log_group : 0);
data/audit-3.0~alpha9/src/auditd-event.c:1001:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		rc = chmod(path, config->log_group ? S_IRUSR|S_IRGRP : S_IRUSR);
data/audit-3.0~alpha9/src/auditd-event.c:1007:2:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	chmod(config->log_file, config->log_group ? S_IWUSR|S_IRUSR|S_IRGRP :
data/audit-3.0~alpha9/src/auditd-event.c:1106:3:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		chmod(config->log_file, 
data/audit-3.0~alpha9/src/ausearch-time.c:319: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(tmp_t, ti, sizeof(tmp_t)-1);
data/audit-3.0~alpha9/src/ausearch-time.c:399: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(tmp_t, ti, sizeof(tmp_t)-1);
data/audit-3.0~alpha9/audisp/plugins/remote/audisp-remote.c:892:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf((char *)config.krb5_principal, "%s@%s",
data/audit-3.0~alpha9/audisp/plugins/remote/test-queue.c:46:36:  [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.
static void __attribute__((format (printf, 2, 3)))
data/audit-3.0~alpha9/audisp/plugins/remote/test-queue.c:53:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, message, ap);
data/audit-3.0~alpha9/audisp/plugins/remote/test-queue.c:60:36:  [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.
static void __attribute__((format (printf, 2, 3)))
data/audit-3.0~alpha9/audisp/plugins/remote/test-queue.c:69:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, message, ap);
data/audit-3.0~alpha9/audisp/plugins/zos-remote/zos-remote-log.c:102:25:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                        strcat(out, octet);
data/audit-3.0~alpha9/audisp/plugins/zos-remote/zos-remote-plugin.c:228:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(logString, "Linux (%s): type: %s", node, orig_type);
data/audit-3.0~alpha9/auparse/auparse.c:82:7:  [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(filename, R_OK) != 0)
data/audit-3.0~alpha9/auparse/auparse.c:449:8:  [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(b, R_OK))
data/audit-3.0~alpha9/auparse/auparse.c:461:9:  [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(bb[n], R_OK))
data/audit-3.0~alpha9/auparse/data_buf.c:140:9:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        vprintf(fmt, ap);
data/audit-3.0~alpha9/auparse/data_buf.h:72:33:  [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, 4)));
data/audit-3.0~alpha9/auparse/interpret.c:363: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(str, buf);
data/audit-3.0~alpha9/auparse/interpret.c:958:3:  [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(buf, name);
data/audit-3.0~alpha9/auparse/interpret.c:1259:33:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                strcat(buf,
data/audit-3.0~alpha9/auparse/interpret.c:1264:33:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                strcat(buf,
data/audit-3.0~alpha9/auparse/interpret.c:1395:33:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                strcat(buf,
data/audit-3.0~alpha9/auparse/interpret.c:1400:33:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                strcat(buf,
data/audit-3.0~alpha9/auparse/interpret.c:1428:33:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                strcat(buf,
data/audit-3.0~alpha9/auparse/interpret.c:1433:33:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                strcat(buf,
data/audit-3.0~alpha9/auparse/interpret.c:1444:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat(buf, s);
data/audit-3.0~alpha9/auparse/interpret.c:1546:33:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                strcat(buf,
data/audit-3.0~alpha9/auparse/interpret.c:1551:33:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                strcat(buf,
data/audit-3.0~alpha9/auparse/interpret.c:1584:33:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                strcat(buf,
data/audit-3.0~alpha9/auparse/interpret.c:1589:33:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                strcat(buf,
data/audit-3.0~alpha9/auparse/interpret.c:1690:33:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                strcat(buf,
data/audit-3.0~alpha9/auparse/interpret.c:1695:33:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                strcat(buf,
data/audit-3.0~alpha9/auparse/interpret.c:1745:33:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                strcat(buf,
data/audit-3.0~alpha9/auparse/interpret.c:1750:33:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                strcat(buf,
data/audit-3.0~alpha9/auparse/interpret.c:1781:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
				strcat(buf,
data/audit-3.0~alpha9/auparse/interpret.c:1786:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
				strcat(buf,
data/audit-3.0~alpha9/auparse/interpret.c:1831:3:  [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(buf, s);
data/audit-3.0~alpha9/auparse/interpret.c:2025:33:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                strcat(buf,
data/audit-3.0~alpha9/auparse/interpret.c:2030:33:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                strcat(buf,
data/audit-3.0~alpha9/auparse/interpret.c:2040:33:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                strcat(buf,
data/audit-3.0~alpha9/auparse/interpret.c:2045:33:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                strcat(buf,
data/audit-3.0~alpha9/auparse/interpret.c:2056:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(buf, tmode);
data/audit-3.0~alpha9/auparse/interpret.c:2105:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
				strcat(buf,
data/audit-3.0~alpha9/auparse/interpret.c:2110:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
				strcat(buf,
data/audit-3.0~alpha9/auparse/message.c:53:17:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                vfprintf(stderr, fmt, ap);
data/audit-3.0~alpha9/auparse/private.h:36:33:  [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, 4)));
data/audit-3.0~alpha9/auparse/test/lookup_test.c:83:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
				fprintf(stderr,				\
data/audit-3.0~alpha9/auparse/test/lookup_test.c:89:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
				fprintf(stderr,				\
data/audit-3.0~alpha9/auparse/test/lookup_test.c:122:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
				fprintf(stderr,				\
data/audit-3.0~alpha9/bindings/python/auparse_python.c:166: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(buf2, sizeof(buf2), buf1, milli, serial, host, sizeof(buf2));
data/audit-3.0~alpha9/lib/audit_logging.c:497:3:  [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(buf, sizeof(buf), format,
data/audit-3.0~alpha9/lib/audit_logging.c:668:3:  [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(buf, sizeof(buf), format, op, user, 
data/audit-3.0~alpha9/lib/audit_logging.c:765:3:  [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(cwdname, commname);
data/audit-3.0~alpha9/lib/audit_logging.c:783:3:  [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(commname, cmd);
data/audit-3.0~alpha9/lib/audit_logging.c:800: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(buf, sizeof(buf), format,
data/audit-3.0~alpha9/lib/message.c:54:17:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                vfprintf(stderr, fmt, ap);
data/audit-3.0~alpha9/lib/private.h:118: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, 2, 3)));
data/audit-3.0~alpha9/lib/test/lookup_test.c:75:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
				fprintf(stderr,				\
data/audit-3.0~alpha9/lib/test/lookup_test.c:81:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
				fprintf(stderr,				\
data/audit-3.0~alpha9/lib/test/lookup_test.c:113:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
				fprintf(stderr,				\
data/audit-3.0~alpha9/src/auditctl.c:102:5:  [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(
data/audit-3.0~alpha9/src/auditctl.c:907:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
				strcat(key, key_sep);
data/audit-3.0~alpha9/src/auditd-config.c:1032:9:  [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(email_command, X_OK)) {
data/audit-3.0~alpha9/src/auditd-config.c:1218:9:  [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(email_command, X_OK)) {
data/audit-3.0~alpha9/src/auditd-config.c:1836:4:  [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(config->plugin_dir, nv->value);
data/audit-3.0~alpha9/src/auditd-event.c:992: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(path, config->log_file);
data/audit-3.0~alpha9/src/auditd-event.c:1143:7:  [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(name, R_OK) != 0)
data/audit-3.0~alpha9/src/auditd-event.c:1156:8:  [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(name, R_OK) != 0)
data/audit-3.0~alpha9/src/auditd-sendmail.c:42: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(email_command, 01) == 0)
data/audit-3.0~alpha9/src/aureport.c:148:3:  [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(dirname, user_file);
data/audit-3.0~alpha9/src/aureport.c:173:7:  [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(filename, R_OK) != 0)
data/audit-3.0~alpha9/src/ausearch.c:210:3:  [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(dirname, user_file);
data/audit-3.0~alpha9/src/ausearch.c:238:7:  [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(filename, R_OK) != 0)
data/audit-3.0~alpha9/src/autrace.c:181: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(argv[cmd], X_OK)) {
data/audit-3.0~alpha9/src/autrace.c:225:4:  [4] (shell) execvp:
  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.
			execvp(argv[cmd], &argv[cmd]);
data/audit-3.0~alpha9/src/libev/ev.c:4316:11:  [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 (path, w->path);
data/audit-3.0~alpha9/auparse/interpret.c:853:9:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
		out = realpath(str3, NULL);
data/audit-3.0~alpha9/auparse/test/auparselol_test.c:152:13:  [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.
        c = getopt_long(argc, argv, "cvf:e:s", long_options,
data/audit-3.0~alpha9/auparse/test/lookup_test.c:562: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(3);
data/audit-3.0~alpha9/lib/test/lookup_test.c:386: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(3);
data/audit-3.0~alpha9/src/auditctl.c:479:34:  [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 ((retval >= 0) && (c = getopt_long(count, vars,
data/audit-3.0~alpha9/src/auditd-event.c:1568: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/audit-3.0~alpha9/src/auditd.c:314:3:  [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/audit-3.0~alpha9/src/auditd.c:616:14:  [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 ((c = getopt_long(argc, argv, "flns:c:", opts, NULL)) != -1) {
data/audit-3.0~alpha9/src/libev/ev.c:2899:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
          && getenv ("LIBEV_FLAGS"))
data/audit-3.0~alpha9/src/libev/ev.c:2900:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        flags = atoi (getenv ("LIBEV_FLAGS"));
data/audit-3.0~alpha9/audisp/audispd-llist.c:81: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(pp, p, sizeof(struct plugin_conf));
data/audit-3.0~alpha9/audisp/audispd-pconfig.c:142: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[160];
data/audit-3.0~alpha9/audisp/audispd-pconfig.c:148: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).
	rc = open(file, mode);
data/audit-3.0~alpha9/audisp/audispd-pconfig.h: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 *args[MAX_PLUGIN_ARGS+2];	/* args to be passed to plugin */
data/audit-3.0~alpha9/audisp/audispd.c:110: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 fname[PATH_MAX];
data/audit-3.0~alpha9/audisp/audispd.c:396: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 *argv[MAX_PLUGIN_ARGS+2];
data/audit-3.0~alpha9/audisp/audispd.c:478: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 *v, *ptr, unknown[32];
data/audit-3.0~alpha9/audisp/libdisp.h:11: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[MAX_AUDIT_MESSAGE_LENGTH];
data/audit-3.0~alpha9/audisp/plugins/remote/audisp-remote.c:110: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 verify__[(E) ? 1 : -1];	\
data/audit-3.0~alpha9/audisp/plugins/remote/audisp-remote.c:202: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 *argv[3];
data/audit-3.0~alpha9/audisp/plugins/remote/audisp-remote.c:225: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 *argv[3];
data/audit-3.0~alpha9/audisp/plugins/remote/audisp-remote.c:438: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[MAX_AUDIT_MESSAGE_LENGTH];
data/audit-3.0~alpha9/audisp/plugins/remote/audisp-remote.c:512: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 event[MAX_AUDIT_MESSAGE_LENGTH];
data/audit-3.0~alpha9/audisp/plugins/remote/audisp-remote.c:648: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 lenbuf[4];
data/audit-3.0~alpha9/audisp/plugins/remote/audisp-remote.c:698: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 lenbuf[4];
data/audit-3.0~alpha9/audisp/plugins/remote/audisp-remote.c:793: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_name[255];
data/audit-3.0~alpha9/audisp/plugins/remote/audisp-remote.c:1033: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 remote[BUF_SIZE];
data/audit-3.0~alpha9/audisp/plugins/remote/audisp-remote.c:1081: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 local[BUF_SIZE];
data/audit-3.0~alpha9/audisp/plugins/remote/audisp-remote.c:1271: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 (utok.value, header, AUDIT_RMW_HEADER_SIZE);
data/audit-3.0~alpha9/audisp/plugins/remote/audisp-remote.c:1274: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 (utok.value+AUDIT_RMW_HEADER_SIZE, msg, mlen);
data/audit-3.0~alpha9/audisp/plugins/remote/audisp-remote.c:1322: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 (header, utok.value, AUDIT_RMW_HEADER_SIZE);
data/audit-3.0~alpha9/audisp/plugins/remote/audisp-remote.c:1340: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, utok.value+AUDIT_RMW_HEADER_SIZE, rlen);
data/audit-3.0~alpha9/audisp/plugins/remote/audisp-remote.c:1412: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 header[AUDIT_RMW_HEADER_SIZE];
data/audit-3.0~alpha9/audisp/plugins/remote/audisp-remote.c:1415: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 msg[MAX_AUDIT_MESSAGE_LENGTH+1];
data/audit-3.0~alpha9/audisp/plugins/remote/audisp-remote.c:1474: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 header[AUDIT_RMW_HEADER_SIZE];
data/audit-3.0~alpha9/audisp/plugins/remote/audisp-remote.c:1477: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 msg[MAX_AUDIT_MESSAGE_LENGTH+1];
data/audit-3.0~alpha9/audisp/plugins/remote/queue.c:56: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 verify__[(E) ? 1 : -1];	\
data/audit-3.0~alpha9/audisp/plugins/remote/queue.c:183:10:  [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).
	q->fd = open(path, open_flags, S_IRUSR | S_IWUSR);
data/audit-3.0~alpha9/audisp/plugins/remote/queue.c:355: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(copy, data, data_size);
data/audit-3.0~alpha9/audisp/plugins/remote/queue.c:424: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(copy, data, data_size);
data/audit-3.0~alpha9/audisp/plugins/remote/queue.c:437: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(buf, data, data_size);
data/audit-3.0~alpha9/audisp/plugins/remote/queue.c:511: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(tmp_path, path, path_len);
data/audit-3.0~alpha9/audisp/plugins/remote/queue.c:512: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(tmp_path + path_len, "XXXXXX", 7);
data/audit-3.0~alpha9/audisp/plugins/remote/queue.c:515:7:  [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).
	fd = mkstemp(tmp_path);
data/audit-3.0~alpha9/audisp/plugins/remote/remote-config.c:239: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[128];
data/audit-3.0~alpha9/audisp/plugins/remote/remote-config.c:245: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).
	rc = open(file, mode);
data/audit-3.0~alpha9/audisp/plugins/remote/test-queue.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 *sample_entries[NUM_ENTRIES - 1];
data/audit-3.0~alpha9/audisp/plugins/remote/test-queue.c:145: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[ENTRY_SIZE];
data/audit-3.0~alpha9/audisp/plugins/remote/test-queue.c:162: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[ENTRY_SIZE + 1];
data/audit-3.0~alpha9/audisp/plugins/remote/test-queue.c:226: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[ENTRY_SIZE + 1];
data/audit-3.0~alpha9/audisp/plugins/remote/test-queue.c:351:7:  [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).
	fd = mkstemp(filename);
data/audit-3.0~alpha9/audisp/plugins/syslog/audisp-syslog.c:138: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 *mptr, tbuf[64];
data/audit-3.0~alpha9/audisp/plugins/syslog/audisp-syslog.c:212: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[MAX_AUDIT_MESSAGE_LENGTH+1];
data/audit-3.0~alpha9/audisp/plugins/zos-remote/zos-remote-config.c:100: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.
        char buf[128];
data/audit-3.0~alpha9/audisp/plugins/zos-remote/zos-remote-config.c:106:14:  [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).
        rc = open(file, mode);
data/audit-3.0~alpha9/audisp/plugins/zos-remote/zos-remote-ldap.c:267: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.
        char bindusr[255];
data/audit-3.0~alpha9/audisp/plugins/zos-remote/zos-remote-log.c:89: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.
        char octet[4];
data/audit-3.0~alpha9/audisp/plugins/zos-remote/zos-remote-plugin.c:158: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.
        char timestamp[26];
data/audit-3.0~alpha9/audisp/plugins/zos-remote/zos-remote-plugin.c:159: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.
        char linkValue[ZOS_REMOTE_LINK_VALUE_SIZE];
data/audit-3.0~alpha9/audisp/plugins/zos-remote/zos-remote-plugin.c:160: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.
        char logString[ZOS_REMOTE_LOGSTRING_SIZE];
data/audit-3.0~alpha9/audisp/plugins/zos-remote/zos-remote-plugin.c:221:9:  [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(&linkValue, &linkValue_tmp, sizeof(unsigned long));        
data/audit-3.0~alpha9/audisp/plugins/zos-remote/zos-remote-plugin.c:339:25:  [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[1024];
data/audit-3.0~alpha9/audisp/plugins/zos-remote/zos-remote-plugin.c:416: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.
        char buf[1024];
data/audit-3.0~alpha9/audisp/queue.c:74: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 *argv[3];
data/audit-3.0~alpha9/auparse/auditd-config.c:110: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[160];
data/audit-3.0~alpha9/auparse/auditd-config.c:116: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(CONFIG_FILE, O_RDONLY|O_NOFOLLOW);
data/audit-3.0~alpha9/auparse/auditd-config.c:311: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(val, mode);
data/audit-3.0~alpha9/auparse/auparse.c:801: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.
		const char name[3];
data/audit-3.0~alpha9/auparse/auparse.c:1119:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	return memcpy(tmp, old, len);
data/audit-3.0~alpha9/auparse/auparse.c:1239:14:  [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).
				au->in = fopen(au->source_list[au->list_idx],
data/audit-3.0~alpha9/auparse/auparse.c:1256:16:  [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).
						au->in = fopen(
data/audit-3.0~alpha9/auparse/ellist.c:33:14:  [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 key_sep[2] = { AUDIT_KEY_SEPARATOR, 0 };
data/audit-3.0~alpha9/auparse/ellist.c:256:6:  [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 tmpctx[256], *to;
data/audit-3.0~alpha9/auparse/expression.c:341: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(p->token_value, p->token_start, len);
data/audit-3.0~alpha9/auparse/interpret.c:139:22:  [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 AsciiArray[17] = "0123456789ABCDEF";
data/audit-3.0~alpha9/auparse/interpret.c:498:14:  [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 *success[3]= { "unset", "no", "yes" };
data/audit-3.0~alpha9/auparse/interpret.c:629: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.
        char name[64];
data/audit-3.0~alpha9/auparse/interpret.c:646: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.
        char name[64];
data/audit-3.0~alpha9/auparse/interpret.c:898: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[32];
data/audit-3.0~alpha9/auparse/interpret.c:915:17:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                strcat(buf, "read");
data/audit-3.0~alpha9/auparse/interpret.c:920:25:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                        strcat(buf, ",write");
data/audit-3.0~alpha9/auparse/interpret.c:922:25:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                        strcat(buf, "write");
data/audit-3.0~alpha9/auparse/interpret.c:927:25:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                        strcat(buf, ",exec");
data/audit-3.0~alpha9/auparse/interpret.c:929:25:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                        strcat(buf, "exec");
data/audit-3.0~alpha9/auparse/interpret.c:934:25:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                        strcat(buf, ",attr");
data/audit-3.0~alpha9/auparse/interpret.c:936:25:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                        strcat(buf, "attr");
data/audit-3.0~alpha9/auparse/interpret.c:944: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, buf[48];
data/audit-3.0~alpha9/auparse/interpret.c:964:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "%03o", (ival & S_IFMT) / first_ifmt_bit);
data/audit-3.0~alpha9/auparse/interpret.c:969:17:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                strcat(buf, ",suid");
data/audit-3.0~alpha9/auparse/interpret.c:971:17:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                strcat(buf, ",sgid");
data/audit-3.0~alpha9/auparse/interpret.c:973:17:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                strcat(buf, ",sticky");
data/audit-3.0~alpha9/auparse/interpret.c:984: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, buf[48];
data/audit-3.0~alpha9/auparse/interpret.c:989:17:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                strcat(buf, "suid");
data/audit-3.0~alpha9/auparse/interpret.c:993:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(buf, "sgid");
data/audit-3.0~alpha9/auparse/interpret.c:998:17:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                strcat(buf, "sticky");
data/audit-3.0~alpha9/auparse/interpret.c:1099: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.
        char name[NI_MAXHOST], serv[NI_MAXSERV];
data/audit-3.0~alpha9/auparse/interpret.c:1241: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, buf[80];
data/audit-3.0~alpha9/auparse/interpret.c:1322: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 *p, buf[600]; // 17 per cap * 33
data/audit-3.0~alpha9/auparse/interpret.c:1376: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, buf[sizeof(open_flag_strings)+8];
data/audit-3.0~alpha9/auparse/interpret.c:1389:17:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                strcat(buf, "O_RDONLY");
data/audit-3.0~alpha9/auparse/interpret.c:1414: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, buf[sizeof(clone_flag_strings)+16];// + 10 for signal name
data/audit-3.0~alpha9/auparse/interpret.c:1523: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[144];
data/audit-3.0~alpha9/auparse/interpret.c:1536:17:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                strcat(buf, "PROT_NONE");
data/audit-3.0~alpha9/auparse/interpret.c:1565: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[sizeof(mmap_strings)+8];
data/audit-3.0~alpha9/auparse/interpret.c:1578:17:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
                strcat(buf, "MAP_FILE");
data/audit-3.0~alpha9/auparse/interpret.c:1676: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[sizeof(mount_strings)+8];
data/audit-3.0~alpha9/auparse/interpret.c:1731: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[sizeof(recv_strings)+8];
data/audit-3.0~alpha9/auparse/interpret.c:1763: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[16];
data/audit-3.0~alpha9/auparse/interpret.c:1829: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[48];
data/audit-3.0~alpha9/auparse/interpret.c:1833:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(buf, "|SCHED_RESET_ON_FORK");
data/audit-3.0~alpha9/auparse/interpret.c:2010: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, buf[sizeof(shm_mode_strings)+sizeof(ipccmd_strings)+8];
data/audit-3.0~alpha9/auparse/interpret.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 buf[sizeof(umount_strings)+8];
data/audit-3.0~alpha9/auparse/interpret.c:2142:14:  [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 *fanotify[3]= { "unknown", "allow", "deny" };
data/audit-3.0~alpha9/auparse/test/auparse_test.c:269: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 *files[3] = { "test.log", "test2.log", NULL };
data/audit-3.0~alpha9/auparse/test/auparse_test.c:444: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[4];
data/audit-3.0~alpha9/auparse/test/auparse_test.c:450:13:  [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).
		if ((fp = fopen(filename, "r")) == NULL) {
data/audit-3.0~alpha9/auparse/test/auparselol_test.c:135:5:  [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[BUFSZ];
data/audit-3.0~alpha9/auparse/test/auparselol_test.c:227:19:  [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).
        if ((fd = fopen(filename, "r")) == NULL) {
data/audit-3.0~alpha9/auparse/test/lookup_test.c:113: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[S_LEN];					\
data/audit-3.0~alpha9/bindings/python/auparse_python.c:151:12:  [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 buf1[200], buf2[200];
data/audit-3.0~alpha9/bindings/python/auparse_python.c:157:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf2, "localtime error");
data/audit-3.0~alpha9/bindings/python/auparse_python.c:162:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf2, "strftime returned 0");
data/audit-3.0~alpha9/common/audit-fgets.c:31: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[2*BUF_SIZE+1] = { 0 };
data/audit-3.0~alpha9/common/audit-fgets.c:109: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(buf, buffer, line_len);
data/audit-3.0~alpha9/contrib/plugin/audisp-example.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 tmp[MAX_AUDIT_MESSAGE_LENGTH];
data/audit-3.0~alpha9/lib/audit_logging.c:154: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[PATH_MAX+1];
data/audit-3.0~alpha9/lib/audit_logging.c:158:3:  [2] (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). Risk is low because the source is a constant string.
		strcpy(exename, "\"?\"");
data/audit-3.0~alpha9/lib/audit_logging.c:176: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_comm[20];
data/audit-3.0~alpha9/lib/audit_logging.c:180:12:  [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("/proc/self/comm", O_RDONLY);
data/audit-3.0~alpha9/lib/audit_logging.c:182:4:  [2] (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). Risk is low because the source is a constant string.
			strcpy(commname, "\"?\"");
data/audit-3.0~alpha9/lib/audit_logging.c:190:4:  [2] (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). Risk is low because the source is a constant string.
			strcpy(commname, "\"?\"");
data/audit-3.0~alpha9/lib/audit_logging.c:241: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 _host[HOSTLEN] = "";
data/audit-3.0~alpha9/lib/audit_logging.c:274: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_AUDIT_MESSAGE_LENGTH];
data/audit-3.0~alpha9/lib/audit_logging.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 addrbuf[INET6_ADDRSTRLEN];
data/audit-3.0~alpha9/lib/audit_logging.c:276: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 exename[PATH_MAX*2]="";
data/audit-3.0~alpha9/lib/audit_logging.c:277: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 ttyname[TTY_PATH];
data/audit-3.0~alpha9/lib/audit_logging.c:351: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_AUDIT_MESSAGE_LENGTH];
data/audit-3.0~alpha9/lib/audit_logging.c:352: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 addrbuf[INET6_ADDRSTRLEN];
data/audit-3.0~alpha9/lib/audit_logging.c:353: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 exename[PATH_MAX*2]="";
data/audit-3.0~alpha9/lib/audit_logging.c:354: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 commname[PATH_MAX*2];
data/audit-3.0~alpha9/lib/audit_logging.c:355: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 ttyname[TTY_PATH];
data/audit-3.0~alpha9/lib/audit_logging.c:436: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_AUDIT_MESSAGE_LENGTH];
data/audit-3.0~alpha9/lib/audit_logging.c:437: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 addrbuf[INET6_ADDRSTRLEN];
data/audit-3.0~alpha9/lib/audit_logging.c:438: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 exename[PATH_MAX*2] = "";
data/audit-3.0~alpha9/lib/audit_logging.c:439: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 ttyname[TTY_PATH];
data/audit-3.0~alpha9/lib/audit_logging.c:481: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 user[MAX_USER];
data/audit-3.0~alpha9/lib/audit_logging.c:539: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_AUDIT_MESSAGE_LENGTH];
data/audit-3.0~alpha9/lib/audit_logging.c:540: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 addrbuf[INET6_ADDRSTRLEN];
data/audit-3.0~alpha9/lib/audit_logging.c:541: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 exename[PATH_MAX*2] = "";
data/audit-3.0~alpha9/lib/audit_logging.c:542: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 ttyname[TTY_PATH];
data/audit-3.0~alpha9/lib/audit_logging.c:620: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_AUDIT_MESSAGE_LENGTH];
data/audit-3.0~alpha9/lib/audit_logging.c:621: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 addrbuf[INET6_ADDRSTRLEN];
data/audit-3.0~alpha9/lib/audit_logging.c:622: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 exename[PATH_MAX*2] = "";
data/audit-3.0~alpha9/lib/audit_logging.c:623: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 ttyname[TTY_PATH];
data/audit-3.0~alpha9/lib/audit_logging.c:657: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 user[MAX_USER];
data/audit-3.0~alpha9/lib/audit_logging.c:722: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_AUDIT_MESSAGE_LENGTH];
data/audit-3.0~alpha9/lib/audit_logging.c:723: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 commname[PATH_MAX*2];
data/audit-3.0~alpha9/lib/audit_logging.c:724: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 cwdname[PATH_MAX*2];
data/audit-3.0~alpha9/lib/audit_logging.c:725: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 ttyname[TTY_PATH];
data/audit-3.0~alpha9/lib/audit_logging.c:726: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 exename[PATH_MAX*2] = "";
data/audit-3.0~alpha9/lib/audit_logging.c:727: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 format[64];
data/audit-3.0~alpha9/lib/audit_logging.c:797:2:  [2] (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). Risk is low because the source is a constant string.
	strcpy(p, "exe=%s terminal=%s res=%s");
data/audit-3.0~alpha9/lib/libaudit.c:216: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[128];
data/audit-3.0~alpha9/lib/libaudit.c:219: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).
	rc = open(path, O_NOFOLLOW|O_RDONLY);
data/audit-3.0~alpha9/lib/libaudit.c:760: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(&rule->buf[0], path, len);
data/audit-3.0~alpha9/lib/libaudit.c:842: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(&cmd->buf[0], mount_point, len1);
data/audit-3.0~alpha9/lib/libaudit.c:843: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(&cmd->buf[len1], subtree, len2);
data/audit-3.0~alpha9/lib/libaudit.c:862: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[16];
data/audit-3.0~alpha9/lib/libaudit.c:865: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).
	in = open("/proc/self/loginuid", O_NOFOLLOW|O_RDONLY);
data/audit-3.0~alpha9/lib/libaudit.c:888: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 loginuid[16];
data/audit-3.0~alpha9/lib/libaudit.c:893:6:  [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).
	o = open("/proc/self/loginuid", O_NOFOLLOW|O_WRONLY|O_TRUNC);
data/audit-3.0~alpha9/lib/libaudit.c:926: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[16];
data/audit-3.0~alpha9/lib/libaudit.c:929: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).
	in = open("/proc/self/sessionid", O_NOFOLLOW|O_RDONLY);
data/audit-3.0~alpha9/lib/libaudit.h:475: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		ctx[0];
data/audit-3.0~alpha9/lib/libaudit.h:482: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[MAX_AUDIT_MESSAGE_LENGTH];
data/audit-3.0~alpha9/lib/lookup_table.c:214: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[8];
data/audit-3.0~alpha9/lib/netlink.c:235: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(NLMSG_DATA(&req.nlh), data, size);
data/audit-3.0~alpha9/lib/test/lookup_test.c:104: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[S_LEN];					\
data/audit-3.0~alpha9/src/auditctl-listing.c:37: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 key[AUDIT_MAX_KEY_LEN+1];
data/audit-3.0~alpha9/src/auditctl-listing.c:38:14:  [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 const char key_sep[2];
data/audit-3.0~alpha9/src/auditctl-listing.c:384:5:  [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 perms[5];
data/audit-3.0~alpha9/src/auditctl-listing.c:420:6:  [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 val[32];
data/audit-3.0~alpha9/src/auditctl-llist.c:71: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(rr, r, sz);
data/audit-3.0~alpha9/src/auditctl.c:60: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 key[AUDIT_MAX_KEY_LEN+1];
data/audit-3.0~alpha9/src/auditctl.c:61:7:  [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.
const char key_sep[2] = { AUDIT_KEY_SEPARATOR, 0 };
data/audit-3.0~alpha9/src/auditctl.c:1130: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.
        char buf[LINE_SIZE];
data/audit-3.0~alpha9/src/auditctl.c:1133: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).
	rc = open(file, O_RDONLY);
data/audit-3.0~alpha9/src/auditd-config.c:360: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[160];
data/audit-3.0~alpha9/src/auditd-config.c:371: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).
	rc = open(config_file, mode);
data/audit-3.0~alpha9/src/auditd-config.c:654: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(nv->value, mode);
data/audit-3.0~alpha9/src/auditd-config.c:1938: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(val, O_CREAT|O_EXCL|O_APPEND, S_IRUSR|S_IWUSR|S_IRGRP);
data/audit-3.0~alpha9/src/auditd-config.c:1967: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_name[255];
data/audit-3.0~alpha9/src/auditd-dispatch.c:85: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(e->data, (void*)rep->msg.data, e->hdr.size);
data/audit-3.0~alpha9/src/auditd-dispatch.c:88: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(e->data, (void*)rep->message, e->hdr.size);
data/audit-3.0~alpha9/src/auditd-event.c:270: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 unknown[32];
data/audit-3.0~alpha9/src/auditd-event.c:326: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 *ptr, field_name[NAME_SIZE];
data/audit-3.0~alpha9/src/auditd-event.c:592:12:  [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 header[AUDIT_RMW_HEADER_SIZE];
data/audit-3.0~alpha9/src/auditd-event.c:889: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 text[128];
data/audit-3.0~alpha9/src/auditd-event.c:1188:8:  [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).
	lfd = open(config->log_file, flags);
data/audit-3.0~alpha9/src/auditd-event.c:1200:10:  [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).
			lfd = open(config->log_file, flags);
data/audit-3.0~alpha9/src/auditd-event.c:1261: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 *argv[3];
data/audit-3.0~alpha9/src/auditd-event.c:1288: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 *argv[2];
data/audit-3.0~alpha9/src/auditd-event.c:1325: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 txt[MAX_AUDIT_MESSAGE_LENGTH];
data/audit-3.0~alpha9/src/auditd-event.c:1326: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 date[40];
data/audit-3.0~alpha9/src/auditd-listen.c:74: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 buffer [MAX_AUDIT_MESSAGE_LENGTH + 17];
data/audit-3.0~alpha9/src/auditd-listen.c:85: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 msgbuf[MAX_AUDIT_MESSAGE_LENGTH + 1];
data/audit-3.0~alpha9/src/auditd-listen.c:96: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[INET6_ADDRSTRLEN];
data/audit-3.0~alpha9/src/auditd-listen.c:122: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[40];
data/audit-3.0~alpha9/src/auditd-listen.c:141: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 emsg[DEFAULT_BUF_SZ];
data/audit-3.0~alpha9/src/auditd-listen.c:214: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 lenbuf[4];
data/audit-3.0~alpha9/src/auditd-listen.c:263: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 lenbuf[4];
data/audit-3.0~alpha9/src/auditd-listen.c:506: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(utok.value, header, AUDIT_RMW_HEADER_SIZE);
data/audit-3.0~alpha9/src/auditd-listen.c:507: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(utok.value+AUDIT_RMW_HEADER_SIZE, msg, mlen);
data/audit-3.0~alpha9/src/auditd-listen.c:556:13:  [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 ack[AUDIT_RMW_HEADER_SIZE];
data/audit-3.0~alpha9/src/auditd-listen.c:664: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(msgbuf, utok.value, utok.length);
data/audit-3.0~alpha9/src/auditd-listen.c:812: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 emsg[DEFAULT_BUF_SZ];
data/audit-3.0~alpha9/src/auditd-listen.c:895: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(&client->addr, &aaddr, sizeof (struct sockaddr_storage));
data/audit-3.0~alpha9/src/auditd-listen.c:960: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 local[16];
data/audit-3.0~alpha9/src/auditd-listen.c:1142:12:  [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 ack[AUDIT_RMW_HEADER_SIZE];
data/audit-3.0~alpha9/src/auditd-reconfig.c:111: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(e->reply.msg.data, &new_config, sizeof(new_config));
data/audit-3.0~alpha9/src/auditd-reconfig.c:117: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 txt[MAX_AUDIT_MESSAGE_LENGTH];
data/audit-3.0~alpha9/src/auditd-sendmail.c:74: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 *argv[4];
data/audit-3.0~alpha9/src/auditd-sendmail.c:75: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 acct[256];
data/audit-3.0~alpha9/src/auditd.c:77: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 subj[SUBJ_LEN];
data/audit-3.0~alpha9/src/auditd.c:196: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[64];
data/audit-3.0~alpha9/src/auditd.c:198: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).
	FILE *f = fopen(state_file, "w");
data/audit-3.0~alpha9/src/auditd.c:340: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 val[16];
data/audit-3.0~alpha9/src/auditd.c:348:10:  [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).
	pidfd = open(pidfile, O_CREAT | O_TRUNC | O_NOFOLLOW | O_WRONLY, 0644);
data/audit-3.0~alpha9/src/auditd.c:372:15:  [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 ((oomfd = open("/proc/self/oom_score_adj",
data/audit-3.0~alpha9/src/auditd.c:375:22:  [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).
	} else if ((oomfd = open("/proc/self/oom_adj",
data/audit-3.0~alpha9/src/auditd.c:423: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).
			fd = open("/dev/null", O_RDWR);
data/audit-3.0~alpha9/src/auditd.c:486: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 emsg[DEFAULT_BUF_SZ];
data/audit-3.0~alpha9/src/auditd.c:520:5:  [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 hup[MAX_AUDIT_MESSAGE_LENGTH];
data/audit-3.0~alpha9/src/auditd.c:534:5:  [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 usr1[MAX_AUDIT_MESSAGE_LENGTH];
data/audit-3.0~alpha9/src/auditd.c:542:5:  [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 usr2[MAX_AUDIT_MESSAGE_LENGTH];
data/audit-3.0~alpha9/src/auditd.c:568: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[16];
data/audit-3.0~alpha9/src/auditd.c:797: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 start[DEFAULT_BUF_SZ];
data/audit-3.0~alpha9/src/auditd.c:850: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 emsg[DEFAULT_BUF_SZ];
data/audit-3.0~alpha9/src/auditd.c:881: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 emsg[DEFAULT_BUF_SZ];
data/audit-3.0~alpha9/src/auditd.c:936: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 emsg[DEFAULT_BUF_SZ];
data/audit-3.0~alpha9/src/auditd.c:985: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 txt[MAX_AUDIT_MESSAGE_LENGTH];
data/audit-3.0~alpha9/src/auditd.c:1095: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[48];
data/audit-3.0~alpha9/src/auditd.c:1100: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(filename, O_RDONLY);
data/audit-3.0~alpha9/src/aureport-output.c:487: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[128];
data/audit-3.0~alpha9/src/aureport-output.c:488: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[64];
data/audit-3.0~alpha9/src/aureport-output.c:489: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 date[32];
data/audit-3.0~alpha9/src/aureport-output.c:863: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 tmp[48];
data/audit-3.0~alpha9/src/aureport-output.c:881: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 tmp[48];
data/audit-3.0~alpha9/src/aureport-output.c:977: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 name[64];
data/audit-3.0~alpha9/src/aureport-scan.c:339:6:  [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[64];
data/audit-3.0~alpha9/src/aureport-scan.c:354:7:  [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[64];
data/audit-3.0~alpha9/src/aureport-scan.c:371:6:  [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[64];
data/audit-3.0~alpha9/src/aureport-scan.c:424:5:  [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[32];
data/audit-3.0~alpha9/src/aureport-scan.c:435:5:  [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[32];
data/audit-3.0~alpha9/src/aureport-scan.c:875: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 tmp[32];
data/audit-3.0~alpha9/src/aureport.c:145: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 dirname[MAXPATHLEN];
data/audit-3.0~alpha9/src/aureport.c:151:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat (dirname, "audit.log");
data/audit-3.0~alpha9/src/aureport.c:268: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 tmp[32];
data/audit-3.0~alpha9/src/aureport.c:298:11:  [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).
	log_fd = fopen(filename, "rm");
data/audit-3.0~alpha9/src/ausearch-checkpt.c:125: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).
	if ((fd = fopen(fn, "w")) == NULL) {
data/audit-3.0~alpha9/src/ausearch-checkpt.c:198: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 lbuf[MAX_LN];
data/audit-3.0~alpha9/src/ausearch-checkpt.c:200: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).
	if ((fd = fopen(fn, "r")) == NULL) {
data/audit-3.0~alpha9/src/ausearch-lol.c:161:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	return memcpy(tmp, old, len);
data/audit-3.0~alpha9/src/ausearch-lookup.c:46:14:  [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 *results[3]= { "unset", "denied", "granted" };
data/audit-3.0~alpha9/src/ausearch-lookup.c:47:14:  [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 *success[3]= { "unset", "no", "yes" };
data/audit-3.0~alpha9/src/ausearch-lookup.c:271: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 AsciiArray[17] = "0123456789ABCDEF";
data/audit-3.0~alpha9/src/ausearch-parse.c:44:14:  [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 key_sep[2] = { AUDIT_KEY_SEPARATOR, 0 };
data/audit-3.0~alpha9/src/ausearch-parse.c:1631: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 name[NI_MAXHOST];
data/audit-3.0~alpha9/src/ausearch-report.c:181: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[32];
data/audit-3.0~alpha9/src/ausearch-report.c:427: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[20];
data/audit-3.0~alpha9/src/ausearch-report.c:675: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[20];
data/audit-3.0~alpha9/src/ausearch-time.c:129: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[128];
data/audit-3.0~alpha9/src/ausearch-time.c:131:15:  [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 rc, fd = open("/proc/uptime", O_RDONLY);
data/audit-3.0~alpha9/src/ausearch-time.c:313: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 tmp_t[64];
data/audit-3.0~alpha9/src/ausearch-time.c:393: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 tmp_t[64];
data/audit-3.0~alpha9/src/ausearch.c:207: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 dirname[MAXPATHLEN];
data/audit-3.0~alpha9/src/ausearch.c:213:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat (dirname, "audit.log");
data/audit-3.0~alpha9/src/ausearch.c:515:11:  [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).
	log_fd = fopen(filename, "rm");
data/audit-3.0~alpha9/src/autrace.c:123: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 pair[32];
data/audit-3.0~alpha9/src/autrace.c:162: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[2];
data/audit-3.0~alpha9/src/autrace.c:232:5:  [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 field[16];
data/audit-3.0~alpha9/src/libev/ev.c:468: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 pad[128 - sizeof (uint32_t)];
data/audit-3.0~alpha9/src/libev/ev.c:1357:7:  [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, &x, 4);
data/audit-3.0~alpha9/src/libev/ev.c:1397:7:  [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, &x, 4);
data/audit-3.0~alpha9/src/libev/ev.c:1427:7:  [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, &x, 8);
data/audit-3.0~alpha9/src/libev/ev.c:1467:7:  [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, &x, 8);
data/audit-3.0~alpha9/src/libev/ev.c:2523: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.
          char dummy[4];
data/audit-3.0~alpha9/src/libev/ev.c:2900:17:  [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).
        flags = atoi (getenv ("LIBEV_FLAGS"));
data/audit-3.0~alpha9/src/libev/ev.c:4315: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.
          char path [4096];
data/audit-3.0~alpha9/src/libev/ev.c:4397: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 [EV_INOTIFY_BUFSIZE];
data/audit-3.0~alpha9/src/libev/ev.c:5087:34:  [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.
            cb (EV_A_ EV_STAT, ((char *)ANHE_w (timers [i])) - offsetof (struct ev_stat, timer));
data/audit-3.0~alpha9/src/libev/ev_select.c:155: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 (vec_ro, vec_ri, fd_setsize);
data/audit-3.0~alpha9/src/libev/ev_select.c:156: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 (vec_wo, vec_wi, fd_setsize);
data/audit-3.0~alpha9/src/libev/ev_select.c:164: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 (vec_eo, vec_wi, fd_setsize);
data/audit-3.0~alpha9/tools/aulast/aulast.c:115: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 start[32], end[32];
data/audit-3.0~alpha9/tools/aulast/aulast.c:499: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).
			f = fopen("aulast.log", "wt");
data/audit-3.0~alpha9/tools/aulastlog/aulastlog.c:141: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 tmp[48];
data/audit-3.0~alpha9/tools/auvirt/auvirt.c:732: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 field[64];
data/audit-3.0~alpha9/tools/auvirt/auvirt.c:1238: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[16];
data/audit-3.0~alpha9/tools/auvirt/auvirt.c:1265: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[128];
data/audit-3.0~alpha9/tools/auvirt/auvirt.c:1267:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	i += sprintf(buf + i, "%-16.16s", ctime(&event->start));
data/audit-3.0~alpha9/tools/auvirt/auvirt.c:1271:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		i += sprintf(buf + i, " - %-7.5s", ctime(&event->end) + 11);
data/audit-3.0~alpha9/tools/auvirt/auvirt.c:1276:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(buf + i, "(%d+%02d:%02d)", days, hours,
data/audit-3.0~alpha9/tools/auvirt/auvirt.c:1279:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(buf + i, "(%02d:%02d)", hours, mins);
data/audit-3.0~alpha9/tools/auvirt/auvirt.c:1285:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(buf + i, " - failed");
data/audit-3.0~alpha9/tools/auvirt/auvirt.c:1372: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 start_buf[32], end_buf[32];
data/audit-3.0~alpha9/tools/auvirt/auvirt.c:1428:3:  [2] (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). Risk is low because the source is a constant string.
		strcpy(start_buf, "undef");
data/audit-3.0~alpha9/tools/auvirt/auvirt.c:1432:3:  [2] (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). Risk is low because the source is a constant string.
		strcpy(end_buf, "undef");
data/audit-3.0~alpha9/audisp/audispd-pconfig.c:401:21:  [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 (dir == NULL || strlen(dir) < 4) { //  '/var' is shortest dirname
data/audit-3.0~alpha9/audisp/audispd.c:254:7:  [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); // 50 msecs
data/audit-3.0~alpha9/audisp/plugins/remote/audisp-remote.c:486:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	(void) umask( umask( 077 ) | 027 );
data/audit-3.0~alpha9/audisp/plugins/remote/audisp-remote.c:486:16:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	(void) umask( umask( 077 ) | 027 );
data/audit-3.0~alpha9/audisp/plugins/remote/audisp-remote.c:847: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).
				       strlen(realm_name), realm_name,
data/audit-3.0~alpha9/audisp/plugins/remote/audisp-remote.c:890:44:  [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).
		config.krb5_principal = (char *) malloc (strlen (name) + 1
data/audit-3.0~alpha9/audisp/plugins/remote/audisp-remote.c:891: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 (config.remote_server) + 1);
data/audit-3.0~alpha9/audisp/plugins/remote/audisp-remote.c:900:20:  [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).
	name_buf.length = strlen(name_buf.value) + 1;
data/audit-3.0~alpha9/audisp/plugins/remote/audisp-remote.c:1211:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			r = read(sk, buf, len);
data/audit-3.0~alpha9/audisp/plugins/remote/queue.c:340: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).
	data_size = strlen(data) + 1;
data/audit-3.0~alpha9/audisp/plugins/remote/queue.c:403: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).
		data_size = strlen((char *)data) + 1;
data/audit-3.0~alpha9/audisp/plugins/remote/queue.c:505: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).
	path_len = strlen(path);
data/audit-3.0~alpha9/audisp/plugins/syslog/audisp-syslog.c:193:6:  [1] (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). Risk is low because the source is a constant character.
					strcpy(tbuf, "?");
data/audit-3.0~alpha9/audisp/plugins/zos-remote/zos-remote-ldap.c:275: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).
        cred.bv_len = strlen(zos_remote->password);
data/audit-3.0~alpha9/audisp/plugins/zos-remote/zos-remote-plugin.c:546:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                                len = read(0, buf, 1024);
data/audit-3.0~alpha9/auparse/auditd-config.c:282:21:  [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 (dir == NULL || strlen(dir) < 4) { //  '/var' is shortest dirname
data/audit-3.0~alpha9/auparse/auditd-config.c:291: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).
	if (base == 0 || strlen(base) == 0) {
data/audit-3.0~alpha9/auparse/auparse.c:72: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).
	len = strlen(config.log_file) + 16;
data/audit-3.0~alpha9/auparse/auparse.c:474:10:  [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).
			len = strlen(buf);
data/audit-3.0~alpha9/auparse/auparse.c:486:11:  [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).
				len = strlen(bb[n]);
data/audit-3.0~alpha9/auparse/auparse.c:497:11:  [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).
				len = strlen(buf);
data/audit-3.0~alpha9/auparse/auparse.c:1068:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(au->cur_buf, databuf_beg(&au->databuf), line_len);
data/audit-3.0~alpha9/auparse/auparse.c:2081:11:  [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).
			val += strlen(field);
data/audit-3.0~alpha9/auparse/data_buf.c:255: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).
    str_len = strlen(str) + 1;
data/audit-3.0~alpha9/auparse/ellist.c:90: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).
			int len = strlen(tmp);
data/audit-3.0~alpha9/auparse/ellist.c:153:10:  [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).
			len = strlen(n.val);
data/audit-3.0~alpha9/auparse/ellist.c:261: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).
						len = strlen(ptr);
data/audit-3.0~alpha9/auparse/interpret.c:358: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).
	olen = strlen(buf);
data/audit-3.0~alpha9/auparse/interpret.c:373: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).
        len = strlen(str);
data/audit-3.0~alpha9/auparse/interpret.c:879: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).
		size_t len = strlen(val) / 2;
data/audit-3.0~alpha9/auparse/interpret.c:992:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
			strcat(buf, ",");
data/audit-3.0~alpha9/auparse/interpret.c:997:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
			strcat(buf, ",");
data/audit-3.0~alpha9/auparse/interpret.c:1104: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).
        slen = strlen(val)/2;
data/audit-3.0~alpha9/auparse/interpret.c:1263:33:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                                strcat(buf, ",");
data/audit-3.0~alpha9/auparse/interpret.c:1399:33:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                                strcat(buf, "|");
data/audit-3.0~alpha9/auparse/interpret.c:1432:33:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                                strcat(buf, "|");
data/audit-3.0~alpha9/auparse/interpret.c:1443:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
				strcat(buf, "|");
data/audit-3.0~alpha9/auparse/interpret.c:1550:33:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                                strcat(buf, "|");
data/audit-3.0~alpha9/auparse/interpret.c:1588:33:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                                strcat(buf, "|");
data/audit-3.0~alpha9/auparse/interpret.c:1694:33:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                                strcat(buf, "|");
data/audit-3.0~alpha9/auparse/interpret.c:1749:33:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                                strcat(buf, "|");
data/audit-3.0~alpha9/auparse/interpret.c:1785:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
				strcat(buf, "|");
data/audit-3.0~alpha9/auparse/interpret.c:2029:33:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                                strcat(buf, "|");
data/audit-3.0~alpha9/auparse/interpret.c:2044:33:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                                strcat(buf, "|");
data/audit-3.0~alpha9/auparse/interpret.c:2055:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
			strcat(buf, "|");
data/audit-3.0~alpha9/auparse/interpret.c:2109:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
				strcat(buf, "|");
data/audit-3.0~alpha9/auparse/interpret.c:2772:20:  [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_end = data + strlen(raw_data) / 2;
data/audit-3.0~alpha9/auparse/interpret.c:3094: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).
		unsigned int len = strlen(out);
data/audit-3.0~alpha9/auparse/test/auparse_test.c:417:10:  [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).
			len = strlen(p_beg);
data/audit-3.0~alpha9/common/audit-fgets.c:74:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			len = read(fd, current, eptr - current);
data/audit-3.0~alpha9/contrib/plugin/audisp-example.c:129:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			while ((read_size = read(0, tmp, MAX_AUDIT_MESSAGE_LENGTH)) > 0) {
data/audit-3.0~alpha9/lib/audit_logging.c:131:10:  [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).
		vlen = strlen(value);
data/audit-3.0~alpha9/lib/audit_logging.c:185:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		len = read(fd, tmp_comm, sizeof(tmp_comm));
data/audit-3.0~alpha9/lib/audit_logging.c:196: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).
	len = strlen(comm);
data/audit-3.0~alpha9/lib/audit_logging.c:295: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).
	if (addr == NULL || strlen(addr) == 0)
data/audit-3.0~alpha9/lib/audit_logging.c:373: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).
	if (addr == NULL || strlen(addr) == 0)
data/audit-3.0~alpha9/lib/audit_logging.c:456: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).
	if (addr == NULL || strlen(addr) == 0)
data/audit-3.0~alpha9/lib/audit_logging.c:553: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).
	if (addr == NULL || strlen(addr) == 0)
data/audit-3.0~alpha9/lib/audit_logging.c:638: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).
	if (addr == NULL || strlen(addr) == 0)
data/audit-3.0~alpha9/lib/audit_logging.c:643:24:  [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 (pgname == NULL || strlen(pgname) == 0) {
data/audit-3.0~alpha9/lib/audit_logging.c:649:21:  [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 (tty == NULL || strlen(tty) == 0) 
data/audit-3.0~alpha9/lib/audit_logging.c:654: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).
	if (name && strlen(name) > 0) {
data/audit-3.0~alpha9/lib/audit_logging.c:669: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).
			old_seuser && strlen(old_seuser) ? old_seuser : "?",
data/audit-3.0~alpha9/lib/audit_logging.c:670: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).
			old_role && strlen(old_role) ? old_role : "?",
data/audit-3.0~alpha9/lib/audit_logging.c:671: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).
			old_range && strlen(old_range) ? old_range : "?",
data/audit-3.0~alpha9/lib/audit_logging.c:672: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).
			new_seuser && strlen(new_seuser) ? new_seuser : "?",
data/audit-3.0~alpha9/lib/audit_logging.c:673: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).
			new_role && strlen(new_role) ? new_role : "?",
data/audit-3.0~alpha9/lib/audit_logging.c:674: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).
			new_range && strlen(new_range) ? new_range : "?",
data/audit-3.0~alpha9/lib/audit_logging.c:676: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).
			host && strlen(host) ? host : "?",
data/audit-3.0~alpha9/lib/audit_logging.c:678:11:  [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).
			tty && strlen(tty) ? tty : "?",
data/audit-3.0~alpha9/lib/audit_logging.c:685: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).
			old_seuser && strlen(old_seuser) ? old_seuser : "?",
data/audit-3.0~alpha9/lib/audit_logging.c:686: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).
			old_role && strlen(old_role) ? old_role : "?",
data/audit-3.0~alpha9/lib/audit_logging.c:687: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).
			old_range && strlen(old_range) ? old_range : "?",
data/audit-3.0~alpha9/lib/audit_logging.c:688: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).
			new_seuser && strlen(new_seuser) ? new_seuser : "?",
data/audit-3.0~alpha9/lib/audit_logging.c:689: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).
			new_role && strlen(new_role) ? new_role : "?",
data/audit-3.0~alpha9/lib/audit_logging.c:690: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).
			new_range && strlen(new_range) ? new_range : "?",
data/audit-3.0~alpha9/lib/audit_logging.c:692: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).
			host && strlen(host) ? host : "?",
data/audit-3.0~alpha9/lib/audit_logging.c:694:11:  [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).
			tty && strlen(tty) ? tty : "?",
data/audit-3.0~alpha9/lib/audit_logging.c:759:3:  [1] (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). Risk is low because the source is a constant character.
		strcpy(commname, "?");
data/audit-3.0~alpha9/lib/audit_logging.c:760: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).
	len = strlen(commname);
data/audit-3.0~alpha9/lib/audit_logging.c:767: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).
	len = strlen(cmd);
data/audit-3.0~alpha9/lib/deprecated.c:47:37:  [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).
	rc = audit_send(fd, type, message, strlen(message)+1);
data/audit-3.0~alpha9/lib/gen_tables.c:152: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).
		offset += strlen(values[i].s) + 1;
data/audit-3.0~alpha9/lib/libaudit.c:731: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(path);
data/audit-3.0~alpha9/lib/libaudit.c:831: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).
	size_t len1 = strlen(mount_point);
data/audit-3.0~alpha9/lib/libaudit.c:832: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).
	size_t len2 = strlen(subtree);
data/audit-3.0~alpha9/lib/libaudit.c:869:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		len = read(in, buf, sizeof(buf));
data/audit-3.0~alpha9/lib/libaudit.c:933:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		len = read(in, buf, sizeof(buf));
data/audit-3.0~alpha9/lib/libaudit.c:1505:11:  [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).
			vlen = strlen(v);
data/audit-3.0~alpha9/lib/libaudit.c:1545:11:  [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).
			vlen = strlen(v);
data/audit-3.0~alpha9/lib/libaudit.c:1611:11:  [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).
			vlen = strlen(v);
data/audit-3.0~alpha9/lib/libaudit.c:1628:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(&rule->buf[offset], v, vlen);
data/audit-3.0~alpha9/lib/libaudit.c:1672:11:  [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).
				len = strlen(v);
data/audit-3.0~alpha9/lib/libaudit.c:1723:11:  [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).
			vlen = strlen(v);
data/audit-3.0~alpha9/lib/libaudit.c:1743:11:  [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).
			vlen = strlen(v);
data/audit-3.0~alpha9/lib/libaudit.c:1820:29:  [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).
	memset(pw->pw_passwd, ' ', strlen(pw->pw_passwd));
data/audit-3.0~alpha9/lib/lookup_table.c:223:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(buf, msg_type + 8, len);
data/audit-3.0~alpha9/src/auditctl-listing.c:388:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
					strcat(perms, "r");
data/audit-3.0~alpha9/src/auditctl-listing.c:390:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
					strcat(perms, "w");
data/audit-3.0~alpha9/src/auditctl-listing.c:392:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
					strcat(perms, "x");
data/audit-3.0~alpha9/src/auditctl-listing.c:394:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
					strcat(perms, "a");
data/audit-3.0~alpha9/src/auditctl.c:235: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).
	size_t plen = strlen(path);
data/audit-3.0~alpha9/src/auditctl.c:246: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).
	nlen = strlen(base);
data/audit-3.0~alpha9/src/auditctl.c:280: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).
	len = strlen(path);
data/audit-3.0~alpha9/src/auditctl.c:306: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).
	len = strlen(opt);
data/audit-3.0~alpha9/src/auditctl.c:603:5:  [1] (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.
				strncat(key, vars[3], keylen);
data/audit-3.0~alpha9/src/auditctl.c:840:5:  [1] (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.
				strncat(key, vars[3], keylen);
data/audit-3.0~alpha9/src/auditctl.c:898: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(optarg)+strlen(key)+(!!key[0])) >
data/audit-3.0~alpha9/src/auditctl.c:898: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).
		if ((strlen(optarg)+strlen(key)+(!!key[0])) >
data/audit-3.0~alpha9/src/auditctl.c:910:4:  [1] (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.
			strncat(key, optarg, keylen);
data/audit-3.0~alpha9/src/auditctl.c:911:33:  [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).
			keylen = AUDIT_MAX_KEY_LEN - strlen(key);
data/audit-3.0~alpha9/src/auditctl.c:1179:20:  [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 idx=0, nf = (strlen(buf)/3) + 3;
data/audit-3.0~alpha9/src/auditd-config.c:628:21:  [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 (dir == NULL || strlen(dir) < 4) { //  '/var' is shortest dirname
data/audit-3.0~alpha9/src/auditd-config.c:1059: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).
	len = strlen(acct);
data/audit-3.0~alpha9/src/auditd-config.c:1832: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).
		size_t len = strlen(nv->value);
data/audit-3.0~alpha9/src/auditd-config.c:1937:6:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	u = umask(S_IRWXO);
data/audit-3.0~alpha9/src/auditd-config.c:1942:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(u);
data/audit-3.0~alpha9/src/auditd-event.c:234: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).
		size_t len = strlen(buf);
data/audit-3.0~alpha9/src/auditd-event.c:346: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).
	vlen = strlen(value);
data/audit-3.0~alpha9/src/auditd-event.c:352: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).
		tlen = 1 + strlen(enc) + 1;
data/audit-3.0~alpha9/src/auditd-event.c:406:10:  [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).
		mlen = strlen(format_buf);
data/audit-3.0~alpha9/src/auditd-event.c:594:46:  [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).
		AUDIT_RMW_PACK_HEADER(header, 0, ack_type, strlen(msg),
data/audit-3.0~alpha9/src/auditd-event.c:956: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).
	len = strlen(config->log_file) + 16;
data/audit-3.0~alpha9/src/auditd-event.c:985: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).
	len = strlen(config->log_file) + 16;
data/audit-3.0~alpha9/src/auditd-event.c:1044: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).
	len = strlen(config->log_file) + 16;
data/audit-3.0~alpha9/src/auditd-event.c:1131: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).
	len = strlen(config->log_file) + 16;
data/audit-3.0~alpha9/src/auditd-listen.c:191:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			r = read(sock, buf, len);
data/audit-3.0~alpha9/src/auditd-listen.c:344:20:  [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).
	name_buf.length = strlen(name_buf.value) + 1;
data/audit-3.0~alpha9/src/auditd-listen.c:460:24:  [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).
	io->remote_name_len = strlen(recv_tok.value);
data/audit-3.0~alpha9/src/auditd-listen.c:502:10:  [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).
		mlen = strlen(msg);
data/audit-3.0~alpha9/src/auditd-listen.c:537:28:  [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).
		ar_write(io->io.fd, msg, strlen(msg));
data/audit-3.0~alpha9/src/auditd-listen.c:586:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	r = read (io->io.fd,
data/audit-3.0~alpha9/src/auditd.c:197:13:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	mode_t u = umask(0137);	// allow 0640
data/audit-3.0~alpha9/src/auditd.c:199:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(u);
data/audit-3.0~alpha9/src/auditd.c:383: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).
	len = strlen(score);
data/audit-3.0~alpha9/src/auditd.c:454:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				rc = read(init_pipe[0], &status,sizeof(status));
data/audit-3.0~alpha9/src/auditd.c:571:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(pipefds[0], buf, sizeof(buf));
data/audit-3.0~alpha9/src/auditd.c:579: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).
	write(pipefds[1], msg, strlen(msg));
data/audit-3.0~alpha9/src/auditd.c:630: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).
					strlen(optarg)) == 0) {
data/audit-3.0~alpha9/src/auditd.c:666:10:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		(void) umask( umask( 077 ) | 022 );
data/audit-3.0~alpha9/src/auditd.c:666:17:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		(void) umask( umask( 077 ) | 022 );
data/audit-3.0~alpha9/src/auditd.c:1004: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); // 10 milliseconds
data/audit-3.0~alpha9/src/auditd.c:1006: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); // 20 milliseconds
data/audit-3.0~alpha9/src/auditd.c:1106:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		num_read = read(fd, subj, SUBJ_LEN-1);
data/audit-3.0~alpha9/src/aureport-options.c:264: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).
				if (strlen(optarg) >= PATH_MAX) {
data/audit-3.0~alpha9/src/aureport-output.c:497:3:  [1] (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). Risk is low because the source is a constant character.
		strcpy(date, "?");
data/audit-3.0~alpha9/src/aureport-output.c:869:4:  [1] (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). Risk is low because the source is a constant character.
			strcpy(tmp, "?");
data/audit-3.0~alpha9/src/aureport-output.c:875:4:  [1] (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). Risk is low because the source is a constant character.
			strcpy(tmp, "?");
data/audit-3.0~alpha9/src/aureport-output.c:890:4:  [1] (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). Risk is low because the source is a constant character.
			strcpy(tmp, "?");
data/audit-3.0~alpha9/src/aureport-output.c:899:4:  [1] (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). Risk is low because the source is a constant character.
			strcpy(tmp, "?");
data/audit-3.0~alpha9/src/aureport.c:92:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	(void) umask( umask( 077 ) | 027 );
data/audit-3.0~alpha9/src/aureport.c:92:16:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	(void) umask( umask( 077 ) | 027 );
data/audit-3.0~alpha9/src/aureport.c:149: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).
		if (dirname[strlen(dirname)-1] != '/')
data/audit-3.0~alpha9/src/aureport.c:150:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
			strcat(dirname, "/");
data/audit-3.0~alpha9/src/aureport.c:163: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).
	len = strlen(config.log_file) + 16;
data/audit-3.0~alpha9/src/aureport.c:275:5:  [1] (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). Risk is low because the source is a constant character.
				strcpy(tmp, "?");
data/audit-3.0~alpha9/src/aureport.c:281:5:  [1] (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). Risk is low because the source is a constant character.
				strcpy(tmp, "?");
data/audit-3.0~alpha9/src/ausearch-checkpt.c:209: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).
		size_t len = strlen(lbuf);
data/audit-3.0~alpha9/src/ausearch-lol.c:306: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).
			n.mlen = strlen(n.message);
data/audit-3.0~alpha9/src/ausearch-lookup.c:311: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).
	len = strlen(str);
data/audit-3.0~alpha9/src/ausearch-lookup.c:466:26:  [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).
		safe_print_string_n(s, strlen(s), ret);
data/audit-3.0~alpha9/src/ausearch-lookup.c:535:20:  [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_end = data + strlen(val) / 2;
data/audit-3.0~alpha9/src/ausearch-options.c:404: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).
				if (strlen(optarg) >= PATH_MAX) {
data/audit-3.0~alpha9/src/ausearch-options.c:860: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).
			size_t len = strlen(optarg);
data/audit-3.0~alpha9/src/ausearch-options.c:898: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).
			size_t len = strlen(optarg);
data/audit-3.0~alpha9/src/ausearch-options.c:1149: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).
			size_t len = strlen(optarg);
data/audit-3.0~alpha9/src/ausearch-parse.c:1634:10:  [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).
			len = strlen(str)/2;
data/audit-3.0~alpha9/src/ausearch-parse.c:1657: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).
					len = strlen(un->sun_path);
data/audit-3.0~alpha9/src/ausearch-parse.c:1659: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).
					len = strlen(&un->sun_path[1]);
data/audit-3.0~alpha9/src/ausearch-report.c:231:3:  [1] (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). Risk is low because the source is a constant character.
		strcpy(tmp, "?");
data/audit-3.0~alpha9/src/ausearch-report.c:338: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).
		int len = strlen(val);
data/audit-3.0~alpha9/src/ausearch-report.c:684:3:  [1] (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). Risk is low because the source is a constant character.
		strcpy(tmp, "?");
data/audit-3.0~alpha9/src/ausearch-time.c:139:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rc = read(fd, buf, sizeof(buf)-1);
data/audit-3.0~alpha9/src/ausearch-time.c:315: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(ti) <= 5) {
data/audit-3.0~alpha9/src/ausearch-time.c:395: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(ti) <= 5) {
data/audit-3.0~alpha9/src/ausearch.c:100:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	(void) umask( umask( 077 ) | 027 );
data/audit-3.0~alpha9/src/ausearch.c:100:16:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	(void) umask( umask( 077 ) | 027 );
data/audit-3.0~alpha9/src/ausearch.c:211: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).
		if (dirname[strlen(dirname)-1] != '/')
data/audit-3.0~alpha9/src/ausearch.c:212:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
				strcat(dirname, "/");
data/audit-3.0~alpha9/src/ausearch.c:228: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).
	len = strlen(config.log_file) + 16;
data/audit-3.0~alpha9/src/autrace.c:222:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			while (read(fd[0], buf, 1) == -1 && errno == EINTR)
data/audit-3.0~alpha9/src/libev/ev.c:1683:37:  [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).
    rc = write (STDERR_FILENO, msg, strlen (msg));
data/audit-3.0~alpha9/src/libev/ev.c:2517:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            rc = read (evpipe [1], &counter, sizeof (uint64_t));
data/audit-3.0~alpha9/src/libev/ev.c:2533:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            rc = read (evpipe [0], &dummy, sizeof (dummy));
data/audit-3.0~alpha9/src/libev/ev.c:2636:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      ssize_t res = read (sigfd, si, sizeof (si));
data/audit-3.0~alpha9/src/libev/ev.c:4313:51:  [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 ((errno == ENOENT || errno == EACCES) && strlen (w->path) < 4096)
data/audit-3.0~alpha9/src/libev/ev.c:4399:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  int len = read (fs_fd, buf, sizeof (buf));
data/audit-3.0~alpha9/tools/auvirt/auvirt.c:1002:35:  [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).
	const char *basename = profile + strlen(profile);
data/audit-3.0~alpha9/tools/auvirt/auvirt.c:1011:32:  [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 (strncmp(prefix, basename, strlen(prefix)) != 0) {
data/audit-3.0~alpha9/tools/auvirt/auvirt.c:1020:32:  [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).
	const char *uuid = basename + strlen(prefix);

ANALYSIS SUMMARY:

Hits = 586
Lines analyzed = 67897 in approximately 1.96 seconds (34701 lines/second)
Physical Source Lines of Code (SLOC) = 51403
Hits@level = [0] 1231 [1] 190 [2] 298 [3]  10 [4]  71 [5]  17
Hits@level+ = [0+] 1817 [1+] 586 [2+] 396 [3+]  98 [4+]  88 [5+]  17
Hits/KSLOC@level+ = [0+] 35.3481 [1+] 11.4001 [2+] 7.70383 [3+] 1.9065 [4+] 1.71196 [5+] 0.33072
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.