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/python-feather-format-0.3.1+dfsg1/feather/ext.cpp
Examining data/python-feather-format-0.3.1+dfsg1/feather/interop.h
Examining data/python-feather-format-0.3.1+dfsg1/src/flatbuffers/flatbuffers.h
Examining data/python-feather-format-0.3.1+dfsg1/src/feather/io.h
Examining data/python-feather-format-0.3.1+dfsg1/src/feather/types.h
Examining data/python-feather-format-0.3.1+dfsg1/src/feather/metadata.cc
Examining data/python-feather-format-0.3.1+dfsg1/src/feather/status.h
Examining data/python-feather-format-0.3.1+dfsg1/src/feather/io.cc
Examining data/python-feather-format-0.3.1+dfsg1/src/feather/reader.cc
Examining data/python-feather-format-0.3.1+dfsg1/src/feather/common.h
Examining data/python-feather-format-0.3.1+dfsg1/src/feather/feather-c.cc
Examining data/python-feather-format-0.3.1+dfsg1/src/feather/buffer.h
Examining data/python-feather-format-0.3.1+dfsg1/src/feather/compatibility.h
Examining data/python-feather-format-0.3.1+dfsg1/src/feather/mman.h
Examining data/python-feather-format-0.3.1+dfsg1/src/feather/metadata_generated.h
Examining data/python-feather-format-0.3.1+dfsg1/src/feather/writer.cc
Examining data/python-feather-format-0.3.1+dfsg1/src/feather/api.h
Examining data/python-feather-format-0.3.1+dfsg1/src/feather/types.cc
Examining data/python-feather-format-0.3.1+dfsg1/src/feather/tests/writer-test.cc
Examining data/python-feather-format-0.3.1+dfsg1/src/feather/tests/io-test.cc
Examining data/python-feather-format-0.3.1+dfsg1/src/feather/tests/test_main.cc
Examining data/python-feather-format-0.3.1+dfsg1/src/feather/tests/test-common.h
Examining data/python-feather-format-0.3.1+dfsg1/src/feather/tests/c-api-test.cc
Examining data/python-feather-format-0.3.1+dfsg1/src/feather/tests/metadata-test.cc
Examining data/python-feather-format-0.3.1+dfsg1/src/feather/metadata.h
Examining data/python-feather-format-0.3.1+dfsg1/src/feather/reader.h
Examining data/python-feather-format-0.3.1+dfsg1/src/feather/buffer.cc
Examining data/python-feather-format-0.3.1+dfsg1/src/feather/feather-c.h
Examining data/python-feather-format-0.3.1+dfsg1/src/feather/writer.h
Examining data/python-feather-format-0.3.1+dfsg1/src/feather/status.cc

FINAL RESULTS:

data/python-feather-format-0.3.1+dfsg1/feather/ext.cpp:494:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c);
data/python-feather-format-0.3.1+dfsg1/feather/ext.cpp:447: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 ascii_chars[128];
data/python-feather-format-0.3.1+dfsg1/feather/ext.cpp:9757: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 ctversion[4], rtversion[4];
data/python-feather-format-0.3.1+dfsg1/feather/ext.cpp:9761: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 message[200];
data/python-feather-format-0.3.1+dfsg1/feather/ext.cpp:9798: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 warning[200];
data/python-feather-format-0.3.1+dfsg1/feather/interop.h:572:7:  [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(PyArray_DATA(out_), arr_->values,
data/python-feather-format-0.3.1+dfsg1/feather/interop.h:597:7:  [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(PyArray_DATA(out_), arr_->values, arr_->length * ByteSize(arr_->type));
data/python-feather-format-0.3.1+dfsg1/feather/interop.h:696:7:  [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(PyArray_DATA(out), arr.values,                     \
data/python-feather-format-0.3.1+dfsg1/src/feather/buffer.h:134:7:  [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(data_ + size_, data, length);
data/python-feather-format-0.3.1+dfsg1/src/feather/io.cc:203: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(wpath.data(), filename.data(), filename.size());
data/python-feather-format-0.3.1+dfsg1/src/feather/io.cc:204: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(wpath.data() + nwchars, L"\0", sizeof(wchar_t));
data/python-feather-format-0.3.1+dfsg1/src/feather/io.cc:210:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  ret = *fd = open(filename.c_str(), O_RDONLY | O_BINARY);
data/python-feather-format-0.3.1+dfsg1/src/feather/io.cc:227: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(wpath.data(), filename.data(), filename.size());
data/python-feather-format-0.3.1+dfsg1/src/feather/io.cc:228: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(wpath.data() + nwchars, L"\0", sizeof(wchar_t));
data/python-feather-format-0.3.1+dfsg1/src/feather/io.cc:235:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  ret = *fd = open(filename.c_str(), O_WRONLY | O_CREAT | O_BINARY | O_TRUNC,
data/python-feather-format-0.3.1+dfsg1/src/feather/io.cc:550: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(Head(), data, length);
data/python-feather-format-0.3.1+dfsg1/src/feather/status.cc:23: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, &size, sizeof(size));
data/python-feather-format-0.3.1+dfsg1/src/feather/status.cc:25: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 + 5, &posix_code, sizeof(posix_code));
data/python-feather-format-0.3.1+dfsg1/src/feather/status.cc:26: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 + 7, msg.c_str(), msg.size());
data/python-feather-format-0.3.1+dfsg1/src/feather/status.cc:34: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, state, size + 7);
data/python-feather-format-0.3.1+dfsg1/src/feather/status.cc:51: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[64];
data/python-feather-format-0.3.1+dfsg1/src/flatbuffers/flatbuffers.h:480:7:  [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_cur, cur_, old_size);
data/python-feather-format-0.3.1+dfsg1/feather/ext.cpp:378:87:  [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).
#define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s))
data/python-feather-format-0.3.1+dfsg1/feather/ext.cpp:492:52:  [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).
    __PYX_DEFAULT_STRING_ENCODING = (char*) malloc(strlen(default_encoding_c));
data/python-feather-format-0.3.1+dfsg1/feather/ext.cpp:9886:65:  [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).
    return __Pyx_PyUnicode_FromStringAndSize(c_str, (Py_ssize_t)strlen(c_str));
data/python-feather-format-0.3.1+dfsg1/src/feather/io.cc:273:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  *bytes_read = read(fd, buffer, nbytes);
data/python-feather-format-0.3.1+dfsg1/src/feather/reader.cc:33:37:  [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).
  int magic_size = static_cast<int>(strlen(FEATHER_MAGIC_BYTES));
data/python-feather-format-0.3.1+dfsg1/src/feather/writer.cc:55:13:  [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).
            strlen(FEATHER_MAGIC_BYTES), &bytes_written_unused));
data/python-feather-format-0.3.1+dfsg1/src/feather/writer.cc:79: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).
          strlen(FEATHER_MAGIC_BYTES)));
data/python-feather-format-0.3.1+dfsg1/src/flatbuffers/flatbuffers.h:836:30:  [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).
    return CreateString(str, strlen(str));
data/python-feather-format-0.3.1+dfsg1/src/flatbuffers/flatbuffers.h:1015:14:  [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).
      assert(strlen(file_identifier) == kFileIdentifierLength);

ANALYSIS SUMMARY:

Hits = 31
Lines analyzed = 17332 in approximately 0.41 seconds (42057 lines/second)
Physical Source Lines of Code (SLOC) = 11299
Hits@level = [0]   1 [1]   9 [2]  21 [3]   0 [4]   1 [5]   0
Hits@level+ = [0+]  32 [1+]  31 [2+]  22 [3+]   1 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 2.83211 [1+] 2.74361 [2+] 1.94707 [3+] 0.0885034 [4+] 0.0885034 [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.