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/pyml-20200518/numpy_stubs.c
Examining data/pyml-20200518/pyml_stubs.c
Examining data/pyml-20200518/pyml_stubs.h

FINAL RESULTS:

data/pyml-20200518/pyml_stubs.c:314:24:  [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.
        ssize_t size = snprintf(NULL, 0, fmt, symbol);
data/pyml-20200518/pyml_stubs.c:316:9:  [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(msg, size + 1, fmt, symbol);
data/pyml-20200518/pyml_stubs.c:574:24:  [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.
        ssize_t size = snprintf(NULL, 0, fmt, symbol_name);
data/pyml-20200518/pyml_stubs.c:580:16:  [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.
        size = snprintf(msg, size + 1, fmt, symbol_name);
data/pyml-20200518/pyml_stubs.c:37:12:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
    return LoadLibrary(filename);
data/pyml-20200518/pyml_stubs.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 string[len + 2];
data/pyml-20200518/pyml_stubs.c:513: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((void *)v + sizeof(value), aux_str, size);
data/pyml-20200518/pyml_stubs.c:1291:22:  [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).
            result = fopen(filename, mode);
data/pyml-20200518/pyml_stubs.c:64: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).
    size_t len = strlen(name);

ANALYSIS SUMMARY:

Hits = 9
Lines analyzed = 1833 in approximately 0.06 seconds (30501 lines/second)
Physical Source Lines of Code (SLOC) = 1612
Hits@level = [0]   8 [1]   1 [2]   3 [3]   1 [4]   4 [5]   0
Hits@level+ = [0+]  17 [1+]   9 [2+]   8 [3+]   5 [4+]   4 [5+]   0
Hits/KSLOC@level+ = [0+] 10.5459 [1+] 5.58313 [2+] 4.96278 [3+] 3.10174 [4+] 2.48139 [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.