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-msgpack-1.1.0/ext/msgpack/packer_ext_registry.h
Examining data/ruby-msgpack-1.1.0/ext/msgpack/buffer.h
Examining data/ruby-msgpack-1.1.0/ext/msgpack/extension_value_class.c
Examining data/ruby-msgpack-1.1.0/ext/msgpack/packer.c
Examining data/ruby-msgpack-1.1.0/ext/msgpack/buffer_class.h
Examining data/ruby-msgpack-1.1.0/ext/msgpack/rmem.h
Examining data/ruby-msgpack-1.1.0/ext/msgpack/rbinit.c
Examining data/ruby-msgpack-1.1.0/ext/msgpack/factory_class.c
Examining data/ruby-msgpack-1.1.0/ext/msgpack/unpacker_ext_registry.c
Examining data/ruby-msgpack-1.1.0/ext/msgpack/packer_class.h
Examining data/ruby-msgpack-1.1.0/ext/msgpack/unpacker.h
Examining data/ruby-msgpack-1.1.0/ext/msgpack/sysdep.h
Examining data/ruby-msgpack-1.1.0/ext/msgpack/buffer_class.c
Examining data/ruby-msgpack-1.1.0/ext/msgpack/compat.h
Examining data/ruby-msgpack-1.1.0/ext/msgpack/sysdep_types.h
Examining data/ruby-msgpack-1.1.0/ext/msgpack/sysdep_endian.h
Examining data/ruby-msgpack-1.1.0/ext/msgpack/packer.h
Examining data/ruby-msgpack-1.1.0/ext/msgpack/rmem.c
Examining data/ruby-msgpack-1.1.0/ext/msgpack/packer_ext_registry.c
Examining data/ruby-msgpack-1.1.0/ext/msgpack/packer_class.c
Examining data/ruby-msgpack-1.1.0/ext/msgpack/unpacker_class.h
Examining data/ruby-msgpack-1.1.0/ext/msgpack/unpacker_ext_registry.h
Examining data/ruby-msgpack-1.1.0/ext/msgpack/factory_class.h
Examining data/ruby-msgpack-1.1.0/ext/msgpack/unpacker.c
Examining data/ruby-msgpack-1.1.0/ext/msgpack/core_ext.c
Examining data/ruby-msgpack-1.1.0/ext/msgpack/core_ext.h
Examining data/ruby-msgpack-1.1.0/ext/msgpack/unpacker_class.c
Examining data/ruby-msgpack-1.1.0/ext/msgpack/extension_value_class.h
Examining data/ruby-msgpack-1.1.0/ext/msgpack/buffer.c

FINAL RESULTS:

data/ruby-msgpack-1.1.0/ext/msgpack/buffer.c:210:17:  [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(buffer, b->read_buffer, length);
data/ruby-msgpack-1.1.0/ext/msgpack/buffer.c:217:13:  [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(buffer, b->read_buffer, avail);
data/ruby-msgpack-1.1.0/ext/msgpack/buffer.c:438:17:  [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(b->tail.last, data, length);
data/ruby-msgpack-1.1.0/ext/msgpack/buffer.c:448:9:  [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(b->tail.last, data, tail_avail);
data/ruby-msgpack-1.1.0/ext/msgpack/buffer.c:469:13:  [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(mem, data, length);
data/ruby-msgpack-1.1.0/ext/msgpack/buffer.c:492:13:  [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(last, data, length);
data/ruby-msgpack-1.1.0/ext/msgpack/buffer.c:548:5:  [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(buffer, b->read_buffer, avail);
data/ruby-msgpack-1.1.0/ext/msgpack/buffer.c:556:9:  [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(buffer, c->first, avail);
data/ruby-msgpack-1.1.0/ext/msgpack/buffer.h:80: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 buffer[8];
data/ruby-msgpack-1.1.0/ext/msgpack/buffer.h:201:5:  [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(b->tail.last, data, length);
data/ruby-msgpack-1.1.0/ext/msgpack/buffer.h:231:9:  [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(b->tail.last, data, length);
data/ruby-msgpack-1.1.0/ext/msgpack/buffer.h:359:5:  [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(buffer, b->read_buffer, length);
data/ruby-msgpack-1.1.0/ext/msgpack/packer.h:265:9:  [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 mem[4];
data/ruby-msgpack-1.1.0/ext/msgpack/packer.h:277:9:  [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 mem[8];

ANALYSIS SUMMARY:

Hits = 14
Lines analyzed = 5725 in approximately 0.14 seconds (42390 lines/second)
Physical Source Lines of Code (SLOC) = 4030
Hits@level = [0]   0 [1]   0 [2]  14 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  14 [1+]  14 [2+]  14 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 3.47395 [1+] 3.47395 [2+] 3.47395 [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.