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-json-2.3.0+dfsg/ext/json/ext/fbuffer/fbuffer.h
Examining data/ruby-json-2.3.0+dfsg/ext/json/ext/generator/generator.c
Examining data/ruby-json-2.3.0+dfsg/ext/json/ext/generator/generator.h
Examining data/ruby-json-2.3.0+dfsg/ext/json/ext/parser/parser.c
Examining data/ruby-json-2.3.0+dfsg/ext/json/ext/parser/parser.h

FINAL RESULTS:

data/ruby-json-2.3.0+dfsg/ext/json/ext/fbuffer/fbuffer.h:164:5:  [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[20];
data/ruby-json-2.3.0+dfsg/ext/json/ext/generator/generator.c:56:14:  [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.
static const char trailingBytesForUTF8[256] = {
data/ruby-json-2.3.0+dfsg/ext/json/ext/generator/generator.c:124:55:  [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.
static void unicode_escape_to_buffer(FBuffer *buffer, char buf[6], UTF16
data/ruby-json-2.3.0+dfsg/ext/json/ext/generator/generator.c:137:5:  [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[6] = { '\\', 'u' };
data/ruby-json-2.3.0+dfsg/ext/json/ext/generator/generator.c:239:5:  [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[6] = { '\\', 'u' };
data/ruby-json-2.3.0+dfsg/ext/json/ext/generator/generator.c:315: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(result, ptr, len);
data/ruby-json-2.3.0+dfsg/ext/json/ext/generator/generator.h:51:55:  [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.
static void unicode_escape_to_buffer(FBuffer *buffer, char buf[6], UTF16 character);
data/ruby-json-2.3.0+dfsg/ext/json/ext/parser/parser.c:30:21:  [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.
static const signed char digit_values[256] = {
data/ruby-json-2.3.0+dfsg/ext/json/ext/parser/parser.c:1432:5:  [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[4];

ANALYSIS SUMMARY:

Hits = 9
Lines analyzed = 4084 in approximately 0.11 seconds (37577 lines/second)
Physical Source Lines of Code (SLOC) = 3388
Hits@level = [0]   0 [1]   0 [2]   9 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   9 [1+]   9 [2+]   9 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 2.65643 [1+] 2.65643 [2+] 2.65643 [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.