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/ruby-pcaprub-0.12.4/ext/pcaprub_c/pcaprub.c

FINAL RESULTS:

data/ruby-pcaprub-0.12.4/ext/pcaprub_c/pcaprub.c:48: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 iface[256];
data/ruby-pcaprub-0.12.4/ext/pcaprub_c/pcaprub.c:73: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 eb[PCAP_ERRBUF_SIZE];
data/ruby-pcaprub-0.12.4/ext/pcaprub_c/pcaprub.c:116: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 eb[PCAP_ERRBUF_SIZE];
data/ruby-pcaprub-0.12.4/ext/pcaprub_c/pcaprub.c:407: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 eb[PCAP_ERRBUF_SIZE];
data/ruby-pcaprub-0.12.4/ext/pcaprub_c/pcaprub.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 eb[PCAP_ERRBUF_SIZE];
data/ruby-pcaprub-0.12.4/ext/pcaprub_c/pcaprub.c:557: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 eb[PCAP_ERRBUF_SIZE];
data/ruby-pcaprub-0.12.4/ext/pcaprub_c/pcaprub.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 eb[PCAP_ERRBUF_SIZE];
data/ruby-pcaprub-0.12.4/ext/pcaprub_c/pcaprub.c:875: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 eb[PCAP_ERRBUF_SIZE];
data/ruby-pcaprub-0.12.4/ext/pcaprub_c/pcaprub.c:922: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 eb[PCAP_ERRBUF_SIZE];
data/ruby-pcaprub-0.12.4/ext/pcaprub_c/pcaprub.c:518:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(rbp->iface, RSTRING_PTR(iface), sizeof(rbp->iface) - 1);
data/ruby-pcaprub-0.12.4/ext/pcaprub_c/pcaprub.c:584:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(rbp->iface, RSTRING_PTR(iface), sizeof(rbp->iface) - 1);

ANALYSIS SUMMARY:

Hits = 11
Lines analyzed = 1444 in approximately 0.04 seconds (37115 lines/second)
Physical Source Lines of Code (SLOC) = 846
Hits@level = [0]   0 [1]   2 [2]   9 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  11 [1+]  11 [2+]   9 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 13.0024 [1+] 13.0024 [2+] 10.6383 [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.