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/libnetfilter-cttimeout-1.0.0/include/linux/netfilter/nfnetlink_cttimeout.h
Examining data/libnetfilter-cttimeout-1.0.0/include/linux/netfilter/nfnetlink.h
Examining data/libnetfilter-cttimeout-1.0.0/include/linux/netfilter/nf_conntrack_tcp.h
Examining data/libnetfilter-cttimeout-1.0.0/include/libnetfilter_cttimeout/libnetfilter_cttimeout.h
Examining data/libnetfilter-cttimeout-1.0.0/src/libnetfilter_cttimeout.c
Examining data/libnetfilter-cttimeout-1.0.0/src/internal.h
Examining data/libnetfilter-cttimeout-1.0.0/examples/nfct-timeout-add.c
Examining data/libnetfilter-cttimeout-1.0.0/examples/nfct-timeout-get.c

FINAL RESULTS:

data/libnetfilter-cttimeout-1.0.0/examples/nfct-timeout-add.c:22: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[MNL_SOCKET_BUFFER_SIZE];
data/libnetfilter-cttimeout-1.0.0/examples/nfct-timeout-add.c:42:58:  [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).
	nfct_timeout_attr_set_u16(t, NFCT_TIMEOUT_ATTR_L3PROTO, atoi(argv[2]));
data/libnetfilter-cttimeout-1.0.0/examples/nfct-timeout-add.c:43:57:  [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).
	nfct_timeout_attr_set_u8(t, NFCT_TIMEOUT_ATTR_L4PROTO, atoi(argv[3]));
data/libnetfilter-cttimeout-1.0.0/examples/nfct-timeout-get.c:22:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[4096];
data/libnetfilter-cttimeout-1.0.0/examples/nfct-timeout-get.c:47: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[MNL_SOCKET_BUFFER_SIZE];
data/libnetfilter-cttimeout-1.0.0/src/libnetfilter_cttimeout.c:132:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char				name[32];	/* object name. */
data/libnetfilter-cttimeout-1.0.0/src/libnetfilter_cttimeout.c:225:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(t->name, data, sizeof(t->name));

ANALYSIS SUMMARY:

Hits = 7
Lines analyzed = 1270 in approximately 0.06 seconds (19959 lines/second)
Physical Source Lines of Code (SLOC) = 902
Hits@level = [0]  12 [1]   1 [2]   6 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  19 [1+]   7 [2+]   6 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 21.0643 [1+] 7.76053 [2+] 6.65188 [3+]   0 [4+]   0 [5+]   0
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.