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/mypy-0.790/mypyc/external/googletest/include/gtest/gtest-death-test.h
Examining data/mypy-0.790/mypyc/external/googletest/include/gtest/gtest-message.h
Examining data/mypy-0.790/mypyc/external/googletest/include/gtest/gtest-param-test.h
Examining data/mypy-0.790/mypyc/external/googletest/include/gtest/gtest-printers.h
Examining data/mypy-0.790/mypyc/external/googletest/include/gtest/gtest-spi.h
Examining data/mypy-0.790/mypyc/external/googletest/include/gtest/gtest-test-part.h
Examining data/mypy-0.790/mypyc/external/googletest/include/gtest/gtest-typed-test.h
Examining data/mypy-0.790/mypyc/external/googletest/include/gtest/gtest.h
Examining data/mypy-0.790/mypyc/external/googletest/include/gtest/gtest_pred_impl.h
Examining data/mypy-0.790/mypyc/external/googletest/include/gtest/gtest_prod.h
Examining data/mypy-0.790/mypyc/external/googletest/include/gtest/internal/custom/gtest-port.h
Examining data/mypy-0.790/mypyc/external/googletest/include/gtest/internal/custom/gtest-printers.h
Examining data/mypy-0.790/mypyc/external/googletest/include/gtest/internal/custom/gtest.h
Examining data/mypy-0.790/mypyc/external/googletest/include/gtest/internal/gtest-death-test-internal.h
Examining data/mypy-0.790/mypyc/external/googletest/include/gtest/internal/gtest-filepath.h
Examining data/mypy-0.790/mypyc/external/googletest/include/gtest/internal/gtest-internal.h
Examining data/mypy-0.790/mypyc/external/googletest/include/gtest/internal/gtest-linked_ptr.h
Examining data/mypy-0.790/mypyc/external/googletest/include/gtest/internal/gtest-param-util-generated.h
Examining data/mypy-0.790/mypyc/external/googletest/include/gtest/internal/gtest-param-util.h
Examining data/mypy-0.790/mypyc/external/googletest/include/gtest/internal/gtest-port-arch.h
Examining data/mypy-0.790/mypyc/external/googletest/include/gtest/internal/gtest-port.h
Examining data/mypy-0.790/mypyc/external/googletest/include/gtest/internal/gtest-string.h
Examining data/mypy-0.790/mypyc/external/googletest/include/gtest/internal/gtest-tuple.h
Examining data/mypy-0.790/mypyc/external/googletest/include/gtest/internal/gtest-type-util.h
Examining data/mypy-0.790/mypyc/external/googletest/src/gtest-all.cc
Examining data/mypy-0.790/mypyc/external/googletest/src/gtest-death-test.cc
Examining data/mypy-0.790/mypyc/external/googletest/src/gtest-filepath.cc
Examining data/mypy-0.790/mypyc/external/googletest/src/gtest-internal-inl.h
Examining data/mypy-0.790/mypyc/external/googletest/src/gtest-port.cc
Examining data/mypy-0.790/mypyc/external/googletest/src/gtest-printers.cc
Examining data/mypy-0.790/mypyc/external/googletest/src/gtest-test-part.cc
Examining data/mypy-0.790/mypyc/external/googletest/src/gtest-typed-test.cc
Examining data/mypy-0.790/mypyc/external/googletest/src/gtest.cc
Examining data/mypy-0.790/mypyc/external/googletest/src/gtest_main.cc
Examining data/mypy-0.790/mypyc/lib-rt/CPy.h
Examining data/mypy-0.790/mypyc/lib-rt/dict_ops.c
Examining data/mypy-0.790/mypyc/lib-rt/exc_ops.c
Examining data/mypy-0.790/mypyc/lib-rt/generic_ops.c
Examining data/mypy-0.790/mypyc/lib-rt/getargs.c
Examining data/mypy-0.790/mypyc/lib-rt/init.c
Examining data/mypy-0.790/mypyc/lib-rt/int_ops.c
Examining data/mypy-0.790/mypyc/lib-rt/list_ops.c
Examining data/mypy-0.790/mypyc/lib-rt/misc_ops.c
Examining data/mypy-0.790/mypyc/lib-rt/mypyc_util.h
Examining data/mypy-0.790/mypyc/lib-rt/pythonsupport.h
Examining data/mypy-0.790/mypyc/lib-rt/set_ops.c
Examining data/mypy-0.790/mypyc/lib-rt/str_ops.c
Examining data/mypy-0.790/mypyc/lib-rt/test_capi.cc
Examining data/mypy-0.790/mypyc/lib-rt/tuple_ops.c

FINAL RESULTS:

data/mypy-0.790/mypyc/external/googletest/include/gtest/internal/gtest-death-test-internal.h:165:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(\
data/mypy-0.790/mypyc/external/googletest/include/gtest/internal/gtest-port.h:2362:20:  [4] (buffer) StrNCpy:
  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).
inline const char* StrNCpy(char* dest, const char* src, size_t n) {
data/mypy-0.790/mypyc/external/googletest/include/gtest/internal/gtest-port.h:2433:26:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
# define GTEST_SNPRINTF_ _snprintf
data/mypy-0.790/mypyc/external/googletest/include/gtest/internal/gtest-port.h:2435:26:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
# define GTEST_SNPRINTF_ snprintf
data/mypy-0.790/mypyc/external/googletest/src/gtest.cc:146:10:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
# define vsnprintf _vsnprintf
data/mypy-0.790/mypyc/external/googletest/src/gtest.cc:2971:5:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vprintf(fmt, args);
data/mypy-0.790/mypyc/external/googletest/src/gtest.cc:2991:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vprintf(fmt, args);
data/mypy-0.790/mypyc/external/googletest/src/gtest.cc:2998:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vprintf(fmt, args);
data/mypy-0.790/mypyc/external/googletest/include/gtest/gtest.h:925:39:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  void ShuffleTests(internal::Random* random);
data/mypy-0.790/mypyc/external/googletest/include/gtest/internal/gtest-port.h:2401:27:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  const char* const env = getenv(name);
data/mypy-0.790/mypyc/external/googletest/include/gtest/internal/gtest-port.h:2404:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  return getenv(name);
data/mypy-0.790/mypyc/external/googletest/src/gtest-internal-inl.h:312:37:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
void ShuffleRange(internal::Random* random, int begin, int end,
data/mypy-0.790/mypyc/external/googletest/src/gtest-internal-inl.h:333:39:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
inline void Shuffle(internal::Random* random, std::vector<E>* v) {
data/mypy-0.790/mypyc/external/googletest/src/gtest-internal-inl.h:334:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  ShuffleRange(random, 0, static_cast<int>(v->size()), v);
data/mypy-0.790/mypyc/external/googletest/src/gtest-internal-inl.h:792:21:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  internal::Random* random() { return &random_; }
data/mypy-0.790/mypyc/external/googletest/src/gtest-port.cc:243:5:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
  ::InitializeCriticalSection(critical_section_);
data/mypy-0.790/mypyc/external/googletest/src/gtest-port.cc:261:5:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  ::EnterCriticalSection(critical_section_);
data/mypy-0.790/mypyc/external/googletest/src/gtest-port.cc:293:11:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
        ::InitializeCriticalSection(critical_section_);
data/mypy-0.790/mypyc/external/googletest/src/gtest.cc:194:44:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  const char* const testbridge_test_only = getenv(GTEST_TEST_FILTER_ENV_VAR_);
data/mypy-0.790/mypyc/external/googletest/src/gtest.cc:2793:47:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
void TestCase::ShuffleTests(internal::Random* random) {
data/mypy-0.790/mypyc/external/googletest/src/gtest.cc:2794:11:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  Shuffle(random, &test_indices_);
data/mypy-0.790/mypyc/external/googletest/src/gtest.cc:4627:7:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
      random()->Reseed(random_seed_);
data/mypy-0.790/mypyc/external/googletest/src/gtest.cc:4941:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  ShuffleRange(random(), 0, last_death_test_case_ + 1, &test_case_indices_);
data/mypy-0.790/mypyc/external/googletest/src/gtest.cc:4944:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  ShuffleRange(random(), last_death_test_case_ + 1,
data/mypy-0.790/mypyc/external/googletest/src/gtest.cc:4949:34:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    test_cases_[i]->ShuffleTests(random());
data/mypy-0.790/mypyc/external/googletest/include/gtest/internal/gtest-port.h:2374:10:  [2] (misc) fopen:
  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).
  return fopen(path, mode);
data/mypy-0.790/mypyc/external/googletest/src/gtest-death-test.cc:325: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 buffer[256];
data/mypy-0.790/mypyc/external/googletest/src/gtest-death-test.cc:741: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 executable_path[_MAX_PATH + 1];  // NOLINT
data/mypy-0.790/mypyc/external/googletest/src/gtest-death-test.cc:1027:22:  [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).
  const int cwd_fd = open(".", O_RDONLY);
data/mypy-0.790/mypyc/external/googletest/src/gtest-filepath.cc:105: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 cwd[GTEST_PATH_MAX_ + 1] = { '\0' };
data/mypy-0.790/mypyc/external/googletest/src/gtest-filepath.cc:108: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 cwd[GTEST_PATH_MAX_ + 1] = { '\0' };
data/mypy-0.790/mypyc/external/googletest/src/gtest-port.cc:139:18:  [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).
  const int fd = open("/proc/self/as", O_RDONLY);
data/mypy-0.790/mypyc/external/googletest/src/gtest-port.cc:865: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(buffer, regex, len);
data/mypy-0.790/mypyc/external/googletest/src/gtest-port.cc:938: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 temp_dir_path[MAX_PATH + 1] = { '\0' };  // NOLINT
data/mypy-0.790/mypyc/external/googletest/src/gtest-port.cc:939: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 temp_file_path[MAX_PATH + 1] = { '\0' };  // NOLINT
data/mypy-0.790/mypyc/external/googletest/src/gtest-port.cc:976:29:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    const int captured_fd = mkstemp(name_template);
data/mypy-0.790/mypyc/external/googletest/src/gtest-printers.cc:65: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 text[5] = "";
data/mypy-0.790/mypyc/external/googletest/src/gtest.cc:862:7:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
      MultiByteToWideChar(CP_ACP, 0, ansi, length,
data/mypy-0.790/mypyc/external/googletest/src/gtest.cc:865:3:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
  MultiByteToWideChar(CP_ACP, 0, ansi, length,
data/mypy-0.790/mypyc/external/googletest/src/gtest.cc:1680: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 error_text[kBufSize] = { '\0' };
data/mypy-0.790/mypyc/external/googletest/src/gtest.cc:1764: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 str[5];  // Big enough for the largest valid code point.
data/mypy-0.790/mypyc/lib-rt/getargs.c:163: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[512];
data/mypy-0.790/mypyc/lib-rt/getargs.c:947: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, ptr, size+1);
data/mypy-0.790/mypyc/lib-rt/getargs.c:980: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, ptr, size+1);
data/mypy-0.790/mypyc/lib-rt/getargs.c:1190: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 msgbuf[512];
data/mypy-0.790/mypyc/lib-rt/misc_ops.c:218: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((char *)t + sizeof(PyVarObject),
data/mypy-0.790/mypyc/lib-rt/misc_ops.c:453:2:  [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[MAX_INT_CHARS];
data/mypy-0.790/mypyc/external/googletest/include/gtest/internal/gtest-port.h:2363:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  return strncpy(dest, src, n);
data/mypy-0.790/mypyc/external/googletest/include/gtest/internal/gtest-port.h:2385:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return static_cast<int>(read(fd, buf, count));
data/mypy-0.790/mypyc/external/googletest/src/gtest-port.cc:599:33:  [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).
  const size_t full_regex_len = strlen(regex) + 10;
data/mypy-0.790/mypyc/external/googletest/src/gtest-port.cc:853:22:  [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).
  const size_t len = strlen(regex);
data/mypy-0.790/mypyc/external/googletest/src/gtest-port.cc:1065:21:  [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).
  else if (temp_dir[strlen(temp_dir) - 1] == '\\')
data/mypy-0.790/mypyc/external/googletest/src/gtest-printers.cc:325:29:  [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).
    PrintCharsAsStringTo(s, strlen(s), os);
data/mypy-0.790/mypyc/external/googletest/src/gtest-printers.cc:342:34:  [1] (buffer) wcslen:
  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).
    PrintCharsAsStringTo(s, std::wcslen(s), os);
data/mypy-0.790/mypyc/external/googletest/src/gtest.cc:860:22:  [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).
  const int length = strlen(ansi);
data/mypy-0.790/mypyc/external/googletest/src/gtest.cc:1825:34:  [1] (buffer) wcslen:
  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).
    num_chars = static_cast<int>(wcslen(str));
data/mypy-0.790/mypyc/external/googletest/src/gtest.cc:3598:32:  [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).
      segment = next_segment + strlen("]]>");
data/mypy-0.790/mypyc/external/googletest/src/gtest.cc:3763:18:  [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).
  result.reserve(strlen(str) + 1);
data/mypy-0.790/mypyc/external/googletest/src/gtest.cc:5002:29:  [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).
  const size_t prefix_len = strlen(prefix);
data/mypy-0.790/mypyc/lib-rt/getargs.c:172:18:  [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).
            p += strlen(p);
data/mypy-0.790/mypyc/lib-rt/getargs.c:178:18:  [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).
            p += strlen(p);
data/mypy-0.790/mypyc/lib-rt/getargs.c:182:22:  [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).
                p += strlen(p);
data/mypy-0.790/mypyc/lib-rt/getargs.c:188:18:  [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).
            p += strlen(p);
data/mypy-0.790/mypyc/lib-rt/getargs.c:287:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(msgbuf, "is not retrievable", bufsize);
data/mypy-0.790/mypyc/lib-rt/getargs.c:690:17:  [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 (strlen(*p) != (size_t)count) {
data/mypy-0.790/mypyc/lib-rt/getargs.c:766:21:  [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 (strlen(sarg) != (size_t)len) {
data/mypy-0.790/mypyc/lib-rt/getargs.c:815:21:  [1] (buffer) wcslen:
  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 (wcslen(*p) != (size_t)len) {
data/mypy-0.790/mypyc/lib-rt/getargs.c:963:29:  [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 ((Py_ssize_t)strlen(ptr) != size) {

ANALYSIS SUMMARY:

Hits = 68
Lines analyzed = 36625 in approximately 0.95 seconds (38659 lines/second)
Physical Source Lines of Code (SLOC) = 24230
Hits@level = [0]  59 [1]  21 [2]  22 [3]  17 [4]   8 [5]   0
Hits@level+ = [0+] 127 [1+]  68 [2+]  47 [3+]  25 [4+]   8 [5+]   0
Hits/KSLOC@level+ = [0+] 5.24144 [1+] 2.80644 [2+] 1.93974 [3+] 1.03178 [4+] 0.330169 [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.