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-queue-1.0.3/examples/nf-queue.c
Examining data/libnetfilter-queue-1.0.3/utils/nfqnl_test.c
Examining data/libnetfilter-queue-1.0.3/src/internal.h
Examining data/libnetfilter-queue-1.0.3/src/libnetfilter_queue.c
Examining data/libnetfilter-queue-1.0.3/src/extra/ipv4.c
Examining data/libnetfilter-queue-1.0.3/src/extra/pktbuff.c
Examining data/libnetfilter-queue-1.0.3/src/extra/ipv6.c
Examining data/libnetfilter-queue-1.0.3/src/extra/checksum.c
Examining data/libnetfilter-queue-1.0.3/src/extra/tcp.c
Examining data/libnetfilter-queue-1.0.3/src/extra/udp.c
Examining data/libnetfilter-queue-1.0.3/src/nlmsg.c
Examining data/libnetfilter-queue-1.0.3/include/linux/netfilter/nfnetlink_queue.h
Examining data/libnetfilter-queue-1.0.3/include/libnetfilter_queue/libnetfilter_queue.h
Examining data/libnetfilter-queue-1.0.3/include/libnetfilter_queue/libnetfilter_queue_tcp.h
Examining data/libnetfilter-queue-1.0.3/include/libnetfilter_queue/libnetfilter_queue_udp.h
Examining data/libnetfilter-queue-1.0.3/include/libnetfilter_queue/libnetfilter_queue_ipv4.h
Examining data/libnetfilter-queue-1.0.3/include/libnetfilter_queue/linux_nfnetlink_queue.h
Examining data/libnetfilter-queue-1.0.3/include/libnetfilter_queue/libnetfilter_queue_ipv6.h
Examining data/libnetfilter-queue-1.0.3/include/libnetfilter_queue/pktbuff.h

FINAL RESULTS:

data/libnetfilter-queue-1.0.3/examples/nf-queue.c:41:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[MNL_SOCKET_BUFFER_SIZE];
data/libnetfilter-queue-1.0.3/examples/nf-queue.c:133:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	queue_num = atoi(argv[1]);
data/libnetfilter-queue-1.0.3/src/extra/ipv4.c:137:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char src_str[INET_ADDRSTRLEN];
data/libnetfilter-queue-1.0.3/src/extra/ipv4.c:138: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 dst_str[INET_ADDRSTRLEN];
data/libnetfilter-queue-1.0.3/src/extra/ipv6.c:130: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 src[INET6_ADDRSTRLEN];
data/libnetfilter-queue-1.0.3/src/extra/ipv6.c:131: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 dst[INET6_ADDRSTRLEN];
data/libnetfilter-queue-1.0.3/src/extra/pktbuff.c:55: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(pkt_data, data, len);
data/libnetfilter-queue-1.0.3/src/extra/pktbuff.c:250:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(data + match_offset, rep_buffer, rep_len);
data/libnetfilter-queue-1.0.3/src/libnetfilter_queue.c:182: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[NFNL_HEADER_LEN
data/libnetfilter-queue-1.0.3/src/libnetfilter_queue.c:625: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[NFNL_HEADER_LEN
data/libnetfilter-queue-1.0.3/src/libnetfilter_queue.c:715: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[NFNL_HEADER_LEN
data/libnetfilter-queue-1.0.3/src/libnetfilter_queue.c:749: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[NFNL_HEADER_LEN
data/libnetfilter-queue-1.0.3/src/libnetfilter_queue.c:776: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[NFNL_HEADER_LEN
data/libnetfilter-queue-1.0.3/utils/nfqnl_test.c:93: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] __attribute__ ((aligned));
data/libnetfilter-queue-1.0.3/utils/nfqnl_test.c:96:11:  [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).
		queue = atoi(argv[1]);

ANALYSIS SUMMARY:

Hits = 15
Lines analyzed = 3645 in approximately 0.15 seconds (23756 lines/second)
Physical Source Lines of Code (SLOC) = 1888
Hits@level = [0]  78 [1]   0 [2]  15 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  93 [1+]  15 [2+]  15 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 49.2585 [1+] 7.94492 [2+] 7.94492 [3+]   0 [4+]   0 [5+]   0
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.