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-rbtrace-0.4.11/ext/rbtrace.c

FINAL RESULTS:

data/ruby-rbtrace-0.4.11/ext/rbtrace.c:93: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 *exprs[MAX_EXPRS];
data/ruby-rbtrace-0.4.11/ext/rbtrace.c:98: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[BUF_SIZE];
data/ruby-rbtrace-0.4.11/ext/rbtrace.c:474: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 buffer[len+150];
data/ruby-rbtrace-0.4.11/ext/rbtrace.c:872: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 query[BUF_SIZE];
data/ruby-rbtrace-0.4.11/ext/rbtrace.c:874: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 code[BUF_SIZE+150];
data/ruby-rbtrace-0.4.11/ext/rbtrace.c:185: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).
  msgpack_pack_bin(pk, strlen(name));
data/ruby-rbtrace-0.4.11/ext/rbtrace.c:186: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).
  msgpack_pack_bin_body(pk, name, strlen(name));
data/ruby-rbtrace-0.4.11/ext/rbtrace.c:239: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).
          msgpack_pack_bin(pk, strlen(str));
data/ruby-rbtrace-0.4.11/ext/rbtrace.c:240:42:  [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).
          msgpack_pack_bin_body(pk, str, strlen(str));
data/ruby-rbtrace-0.4.11/ext/rbtrace.c:471: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).
          size_t len = strlen(expr);
data/ruby-rbtrace-0.4.11/ext/rbtrace.c:938:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(query, str.ptr, str.size);
data/ruby-rbtrace-0.4.11/ext/rbtrace.c:949:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(query, str.ptr, str.size);
data/ruby-rbtrace-0.4.11/ext/rbtrace.c:1012:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(query, str.ptr, str.size);

ANALYSIS SUMMARY:

Hits = 13
Lines analyzed = 1133 in approximately 0.04 seconds (29805 lines/second)
Physical Source Lines of Code (SLOC) = 892
Hits@level = [0]   9 [1]   8 [2]   5 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  22 [1+]  13 [2+]   5 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 24.6637 [1+] 14.574 [2+] 5.60538 [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.