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-byebug-11.1.3/ext/byebug/breakpoint.c
Examining data/ruby-byebug-11.1.3/ext/byebug/byebug.c
Examining data/ruby-byebug-11.1.3/ext/byebug/byebug.h
Examining data/ruby-byebug-11.1.3/ext/byebug/context.c
Examining data/ruby-byebug-11.1.3/ext/byebug/locker.c
Examining data/ruby-byebug-11.1.3/ext/byebug/threads.c

FINAL RESULTS:

data/ruby-byebug-11.1.3/ext/byebug/breakpoint.c:322:36:  [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.
  return filename_cmp_impl(source, realpath(file, path) != NULL ? path : file);
data/ruby-byebug-11.1.3/ext/byebug/breakpoint.c:327:10:  [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.
  path = realpath(file, NULL);
data/ruby-byebug-11.1.3/ext/byebug/byebug.c:104:16:  [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.
    fullpath = realpath(path, NULL);
data/ruby-byebug-11.1.3/ext/byebug/breakpoint.c:319: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 path[PATH_MAX + 1];
data/ruby-byebug-11.1.3/ext/byebug/context.c:83: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(new_context, context, sizeof(debug_context_t));
data/ruby-byebug-11.1.3/ext/byebug/breakpoint.c:289: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).
  f_len = strlen(file);
data/ruby-byebug-11.1.3/ext/byebug/byebug.c:108:57:  [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 (!basename || strncmp(basename + 1, file_filter, strlen(file_filter)))

ANALYSIS SUMMARY:

Hits = 7
Lines analyzed = 2574 in approximately 0.11 seconds (22946 lines/second)
Physical Source Lines of Code (SLOC) = 1662
Hits@level = [0]   0 [1]   2 [2]   2 [3]   3 [4]   0 [5]   0
Hits@level+ = [0+]   7 [1+]   7 [2+]   5 [3+]   3 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 4.21179 [1+] 4.21179 [2+] 3.00842 [3+] 1.80505 [4+]   0 [5+]   0
Dot directories skipped = 3 (--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.