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/pybj-0.2.6/src/_bjdata.c
Examining data/pybj-0.2.6/src/common.h
Examining data/pybj-0.2.6/src/decoder.c
Examining data/pybj-0.2.6/src/decoder.h
Examining data/pybj-0.2.6/src/encoder.c
Examining data/pybj-0.2.6/src/encoder.h
Examining data/pybj-0.2.6/src/markers.h
Examining data/pybj-0.2.6/src/python_funcs.c
Examining data/pybj-0.2.6/src/python_funcs.h

FINAL RESULTS:

data/pybj-0.2.6/src/decoder.c:266:20:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            return memcpy(dst_buffer, &((char*)buffer->view.buf)[old_pos], *len);
data/pybj-0.2.6/src/decoder.c:307:16:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        return memcpy(dst_buffer, buffer->view.buf, *len);
data/pybj-0.2.6/src/decoder.c:350: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(tmp_dst, &((char*)buffer->view.buf)[buffer->pos], remaining_old);
data/pybj-0.2.6/src/decoder.c:377: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(&tmp_dst[remaining_old], (char*)buffer->view.buf, buffer->pos);
data/pybj-0.2.6/src/decoder.c:387:20:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            return memcpy(dst_buffer, &((char*)buffer->view.buf)[old_pos], *len);
data/pybj-0.2.6/src/encoder.c:144: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->raw[buffer->pos]), chunk, sizeof(char) * chunk_len);
data/pybj-0.2.6/src/encoder.c:154: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->raw[buffer->pos]), chunk, sizeof(char) * chunk_len);
data/pybj-0.2.6/src/encoder.c:321: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 numtmp[9]; // holds type char + float32/64
data/pybj-0.2.6/src/encoder.c:465: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 numtmp[9]; // large enough to hold type + maximum integer (INT64)
data/pybj-0.2.6/src/encoder.c:510: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 numtmp[9]; // large enough to hold type + maximum integer (INT64)
data/pybj-0.2.6/src/python_funcs.c:376:13:  [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];
data/pybj-0.2.6/src/python_funcs.c:383: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(&x, buf, 4);
data/pybj-0.2.6/src/python_funcs.c:386: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(&x, p, 4);
data/pybj-0.2.6/src/python_funcs.c:471:13:  [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[8];
data/pybj-0.2.6/src/python_funcs.c:478: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(&x, buf, 8);
data/pybj-0.2.6/src/python_funcs.c:481: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(&x, p, 8);
data/pybj-0.2.6/src/decoder.c:57:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (read > 0) {\
data/pybj-0.2.6/src/decoder.c:59:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        } else if ((len > 0) || (read < len)) {\
data/pybj-0.2.6/src/decoder.c:62:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    } else if (read < len) {\
data/pybj-0.2.6/src/decoder.c:72:46:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ACTION_READ_ERROR(READ_VIA_FUNC(buffer, &read, dst_buffer), len, item_str);\
data/pybj-0.2.6/src/decoder.c:77:60:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ACTION_READ_ERROR((dst_buffer = READ_VIA_FUNC(buffer, &read, NULL)), len, item_str);\
data/pybj-0.2.6/src/decoder.c:82:65:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ACTION_READ_ERROR((dst_buffer = cast READ_VIA_FUNC(buffer, &read, NULL)), len, item_str);\

ANALYSIS SUMMARY:

Hits = 22
Lines analyzed = 3042 in approximately 0.10 seconds (31843 lines/second)
Physical Source Lines of Code (SLOC) = 2214
Hits@level = [0]   0 [1]   6 [2]  16 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  22 [1+]  22 [2+]  16 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 9.93677 [1+] 9.93677 [2+] 7.22674 [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.