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/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersComparisonLt.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersOperationInplaceAddUtils.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledCellType.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersOperationInplaceAdd.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersHeapStorage.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersComparisonGt.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersOperationBinaryOlddiv.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersOperationInplaceBitand.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledGeneratorTypeUncompiledIntegration.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersAttributes.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersOperationBinaryFloordiv.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledMethodType.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersOperationBinaryDivmod.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersOperationBinaryMod.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersOperationInplaceMod.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersComparisonNe.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersOperationInplaceBitor.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersOperationBinaryDivmodUtils.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersOperationInplaceTruediv.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersClasses.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledFunctionType.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersOperationBinaryMultUtils.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersOperationBinaryTruediv.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersComparisonEqUtils.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersOperationBinaryInplaceAdd.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersOperationInplaceSub.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersOperationBinaryMatmult.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersOperationInplaceMatmult.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersImport.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersOperationBinaryPowUtils.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersOperationBinaryModUtils.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersOperationBinaryBitand.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledAsyncgenType.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersStrings.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersOperationInplaceBitxor.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersOperationInplaceMult.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersComparisonGe.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/InspectPatcher.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersOperationBinarySub.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersOperationInplacePow.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersOperationInplaceRshift.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersProfiling.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersOperationBinaryRshift.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersOperationBinaryLshift.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersOperationInplaceOlddiv.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersOperationBinaryPow.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersOperationBinaryMult.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledCoroutineType.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersComparisonLe.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersDeepcopy.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersOperationInplaceFloordiv.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledFrameType.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersOperationBinaryAdd.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledGeneratorType.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersBuiltin.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/MetaPathBasedLoader.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/MainProgram.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersCalling.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersConstantsBlob.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersOperationBinaryBitor.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersOperationBinaryBitxor.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersOperationBinaryAddUtils.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersExceptions.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersOperationInplaceLshift.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersComparisonEq.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledCodeHelpers.c
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/tracing.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/compiled_coroutine.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/allocator.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helpers.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/freelists.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/compiled_frame.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/unfreezing.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/importing.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/threading.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/compiled_cell.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/compiled_asyncgen.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/constants_blob.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/compiled_generator.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/calling.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/compiled_method.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/builtins.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/exceptions.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/attributes.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/ints.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/operations_binary_olddiv.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/operations_inplace_add.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/operations_binary_lshift.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/slices.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/comparisons_ne.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/comparisons_lt.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/operations_binary_rshift.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/operations_inplace_lshift.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/dictionaries.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/richcomparisons.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/comparisons_eq.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/mappings.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/subscripts.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/operations_inplace_mult.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/operations_inplace_bitor.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/operations_inplace_floordiv.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/operations_inplace_bitand.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/operations_binary_floordiv.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/complex.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/boolean.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/lists.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/sequences.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/operations_binary_truediv.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/operations_inplace_pow.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/operations_binary_mod.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/operations.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/tuples.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/operations_binary_bitxor.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/operations_inplace_sub.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/operations_inplace_mod.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/comparisons_gt.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/operations_inplace_matmult.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/operations_inplace_bitxor.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/raising.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/operations_inplace_truediv.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/operations_binary_sub.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/operations_binary_divmod.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/rangeobjects.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/iterators.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/sets.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/operations_binary_bitand.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/operations_inplace_olddiv.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/operations_binary_pow.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/operations_binary_bitor.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/operations_binary_matmult.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/comparisons_le.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/operations_binary_mult.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/operations_binary_add.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/bytearrays.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/comparisons_ge.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/operations_inplace_rshift.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/helper/printing.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/prelude.h
Examining data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/compiled_function.h

FINAL RESULTS:

data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledCodeHelpers.c:1712:19:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
    ssize_t res = readlink("/proc/self/exe", binary_directory, sizeof(binary_directory) - 1);
data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/tracing.h:34:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(__VA_ARGS__);                                                                                           \
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledCodeHelpers.c:41: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(buffer, source);
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledCodeHelpers.c:56:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(buffer, source);
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledCodeHelpers.c:900:5:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    vsprintf(buffer, fmt, args);
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/MetaPathBasedLoader.c:379:5:  [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.
    snprintf(entry_function_name, sizeof(entry_function_name),
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/MainProgram.c:395: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.
    char const *old_env = getenv("PYTHONHASHSEED");
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/MainProgram.c:502:32:  [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.
    char const *ticker_value = getenv("NUITKA_TICKER");
data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/compiled_frame.h:53: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 m_locals_storage[1];
data/nuitka-0.6.9.7+ds/nuitka/build/include/nuitka/constants_blob.h:39:23:  [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.
extern const unsigned char constant_bin[0];
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledAsyncgenType.c:1087: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(&result->m_closure[0], closure, closure_given * sizeof(struct Nuitka_CellObject *));
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledCodeHelpers.c:60: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 source[2] = {c, 0};
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledCodeHelpers.c:94: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_c[2] = {c, 0};
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledCodeHelpers.c:876: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 buffer[1024];
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledCodeHelpers.c:898: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[4096];
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledCodeHelpers.c:1613:31:  [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).
        NUITKA_UPDATE_BUILTIN(open, value);
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledCodeHelpers.c:1669:12:  [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 char binary_directory[MAXPATHLEN + 1];
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledCodeHelpers.c:1726:12:  [2] (buffer) wchar_t:
  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 wchar_t binary_directory[MAXPATHLEN + 1];
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledCodeHelpers.c:1826: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 sep[2] = {SEP, 0};
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledCodeHelpers.c:1857:12:  [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 char path[MAXPATHLEN + 1];
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledCodeHelpers.c:1952: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 sep[2] = {SEP, 0};
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledCoroutineType.c:1355: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(&result->m_closure[0], closure, closure_given * sizeof(struct Nuitka_CellObject *));
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledFrameType.c:727: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(t, &value, sizeof(PyObject *));
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledFrameType.c:739: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(t, value, sizeof(PyObject *));
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledFrameType.c:752: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(t, &value, sizeof(struct Nuitka_CellObject *));
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledFrameType.c:766: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(t, &value, sizeof(int));
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledFunctionType.c:79: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(python_pars, args, args_size * sizeof(PyObject *));
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledFunctionType.c:80: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(python_pars + args_size, &PyTuple_GET_ITEM(function->m_defaults, 0),
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledFunctionType.c:629: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(&result->m_closure[0], closure, closure_given * sizeof(struct Nuitka_CellObject *));
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledFunctionType.c:885: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 keyword_only_part[100];
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledFunctionType.c:1993: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(new_args + 1, args, args_size * sizeof(PyObject *));
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledGeneratorType.c:1529: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(&result->m_closure[0], closure, closure_given * sizeof(struct Nuitka_CellObject *));
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledMethodType.c:270: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(new_args + 1, stack, totalargs * sizeof(PyObject *));
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersBuiltin.c:223:23:  [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).
NUITKA_DEFINE_BUILTIN(open);
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersBuiltin.c:227:27:  [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).
    NUITKA_ASSIGN_BUILTIN(open);
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersBuiltin.c:233:55:  [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).
    return CALL_BUILTIN_KW_ARGS(NUITKA_ACCESS_BUILTIN(open), args, arg_names, 3);
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersBuiltin.c:238:27:  [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).
    NUITKA_ASSIGN_BUILTIN(open);
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersBuiltin.c:244:55:  [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).
    return CALL_BUILTIN_KW_ARGS(NUITKA_ACCESS_BUILTIN(open), args, arg_names, 8);
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersCalling.c:220: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(python_pars + 1, &PyTuple_GET_ITEM(function->m_defaults, 0),
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersCalling.c:269: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(python_pars, args, 1 * sizeof(PyObject *));
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersCalling.c:270: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(python_pars + 1, &PyTuple_GET_ITEM(function->m_defaults, 0),
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersCalling.c:334: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(python_pars + 1, args, 1 * sizeof(PyObject *));
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersCalling.c:335: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(python_pars + 1 + 1, &PyTuple_GET_ITEM(function->m_defaults, 0),
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersHeapStorage.c:36: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(w, source, size);
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersHeapStorage.c:53: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(dest, w, size);
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersOperationInplaceAddUtils.c:73: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(PyString_AS_STRING(*operand1) + operand1_size, PyString_AS_STRING(operand2), operand2_size);
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersOperationInplaceAddUtils.c:105: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(PyBytes_AS_STRING(*operand1) + oldsize, wb.buf, wb.len);
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersOperationInplaceAddUtils.c:131: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(PyUnicode_AS_UNICODE(*operand1) + operand1_size, PyUnicode_AS_UNICODE(operand2),
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersProfiling.c:46:24:  [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).
    tempfile_profile = fopen("nuitka-performance.dat", "wb");
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersProfiling.c:86:28:  [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).
    FILE *tempfile_times = fopen("nuitka-times.dat", "wb");
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersStrings.c:33: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 s[1];
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersStrings.c:65: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 s[1];
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersStrings.c:93:40:  [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.
            result = (long)(((unsigned char *)PyBytes_AS_STRING(value))[0]);
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersStrings.c:102:40:  [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.
            result = (long)(((unsigned char *)PyByteArray_AS_STRING(value))[0]);
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersStrings.c:203: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((char *)to_data + to_kind * to_start, (char *)from_data + from_kind * from_start, to_kind * how_many);
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersStrings.c:305: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(_PyUnicode_WSTR(w), _PyUnicode_WSTR(unicode), copy_length * sizeof(wchar_t));
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/MainProgram.c:79: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(merged, PyImport_FrozenModules, pre_existing_count * sizeof(struct _frozen));
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/MainProgram.c:504:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        _Py_Ticker = atoi(ticker_value);
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/MetaPathBasedLoader.c:150: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[MAXPATHLEN + 1] = {0};
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/MetaPathBasedLoader.c:179: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[MAXPATHLEN + 1] = {0};
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/MetaPathBasedLoader.c:378: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 entry_function_name[1024];
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/MetaPathBasedLoader.c:398: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 buffer[1024];
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/MetaPathBasedLoader.c:401: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 error_message[1024];
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/MetaPathBasedLoader.c:579: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 trigger_module_name[2048];
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/MetaPathBasedLoader.c:623:9:  [2] (buffer) wchar_t:
  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.
        wchar_t filename[MAXPATHLEN + 1] = {0};
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/MetaPathBasedLoader.c:630: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 filename[MAXPATHLEN + 1] = {0};
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/MetaPathBasedLoader.c:1291:17:  [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 name[2048];
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledCodeHelpers.c:38:9:  [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(source) >= buffer_size) {
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledCodeHelpers.c:48:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(buffer, source, n);
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledCodeHelpers.c:53:9:  [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(source) + strlen(buffer) >= buffer_size) {
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledCodeHelpers.c:53:26:  [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(source) + strlen(buffer) >= buffer_size) {
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledCodeHelpers.c:93:15:  [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).
    target += wcslen(target);
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledCodeHelpers.c:1091:9:  [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(PyString_AS_STRING(value)) != (size_t)PyString_GET_SIZE(value)) {
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/CompiledCodeHelpers.c:1803:62:  [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).
    binary_directory = PyUnicode_FromWideChar(bin_directory, wcslen(bin_directory));
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersBuiltin.c:774:26:  [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 (size != 0 && strlen(value_str) == (size_t)size) {
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersConstantsBlob.c:713:27:  [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).
            size_t size = strlen((const char *)data);
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersConstantsBlob.c:974: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).
        w += strlen((char const *)w) + 1;
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersDeepcopy.c:184:86:  [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).
static void DEEP_HASH_CSTR(Py_hash_t *hash, char const *s) { DEEP_HASH_BLOB(hash, s, strlen(s)); }
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/HelpersImport.c:294:26:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
            if (unlikely(equal < 0)) {
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/MainProgram.c:158:64:  [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).
        argv_copy[i] = _Py_DecodeUTF8_surrogateescape(argv[i], strlen(argv[i]));
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/MetaPathBasedLoader.c:837:43:  [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 c = strncmp(s, current->name, strlen(s));
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/MetaPathBasedLoader.c:844:27:  [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 (current->name[strlen(s)] == 0) {
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/MetaPathBasedLoader.c:849:50:  [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).
        char const *sub = strchr(current->name + strlen(s) + 1, '.');
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/MetaPathBasedLoader.c:858:67:  [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).
        PyObject *name = Nuitka_String_FromString(current->name + strlen(s) + 1);
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/MetaPathBasedLoader.c:1298: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).
                } else if (strncmp(last_dot + 1, current->name, strlen(last_dot + 1)) == 0 &&
data/nuitka-0.6.9.7+ds/nuitka/build/static_src/MetaPathBasedLoader.c:1299:42:  [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).
                           current->name[strlen(last_dot + 1)] == '.') {

ANALYSIS SUMMARY:

Hits = 86
Lines analyzed = 154471 in approximately 2.63 seconds (58772 lines/second)
Physical Source Lines of Code (SLOC) = 109013
Hits@level = [0]  11 [1]  19 [2]  59 [3]   2 [4]   5 [5]   1
Hits@level+ = [0+]  97 [1+]  86 [2+]  67 [3+]   8 [4+]   6 [5+]   1
Hits/KSLOC@level+ = [0+] 0.889802 [1+] 0.788897 [2+] 0.614606 [3+] 0.0733857 [4+] 0.0550393 [5+] 0.00917322
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.