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/erlang-p1-mqtree-1.0.10/c_src/mqtree.c
Examining data/erlang-p1-mqtree-1.0.10/c_src/uthash.h

FINAL RESULTS:

data/erlang-p1-mqtree-1.0.10/c_src/mqtree.c:213:3:  [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(entry->name, name);
data/erlang-p1-mqtree-1.0.10/c_src/uthash.h:399:29:  [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.
#define HASH_OOPS(...) do { fprintf(stderr,__VA_ARGS__); exit(-1); } while (0)
data/erlang-p1-mqtree-1.0.10/c_src/mqtree.c:70: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(tree->key, key, len);
data/erlang-p1-mqtree-1.0.10/c_src/mqtree.c:263: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(buf, str, len);
data/erlang-p1-mqtree-1.0.10/c_src/mqtree.c:312: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(buf, found->val, len);
data/erlang-p1-mqtree-1.0.10/c_src/mqtree.c:437: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 path[path_bin.size+1];
data/erlang-p1-mqtree-1.0.10/c_src/mqtree.c:462: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 path[path_bin.size+1];
data/erlang-p1-mqtree-1.0.10/c_src/mqtree.c:485: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 path[path_bin.size+1];
data/erlang-p1-mqtree-1.0.10/c_src/mqtree.c:507: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 path[path_bin.size+1];
data/erlang-p1-mqtree-1.0.10/c_src/mqtree.c:600: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 name[len+1];
data/erlang-p1-mqtree-1.0.10/c_src/mqtree.c:621: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 name[len+1];
data/erlang-p1-mqtree-1.0.10/c_src/mqtree.c:640: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 name[len+1];
data/erlang-p1-mqtree-1.0.10/c_src/mqtree.c:109: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).
    len = strlen(path+i) + 1;
data/erlang-p1-mqtree-1.0.10/c_src/mqtree.c:146:12:  [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).
      i += strlen(path+i) + 1;
data/erlang-p1-mqtree-1.0.10/c_src/mqtree.c:179:12:  [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).
      i += strlen(path+i) + 1;
data/erlang-p1-mqtree-1.0.10/c_src/mqtree.c:206:28:  [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).
  entry->name = enif_alloc(strlen(name) + 1);
data/erlang-p1-mqtree-1.0.10/c_src/mqtree.c:259: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(str);
data/erlang-p1-mqtree-1.0.10/c_src/mqtree.c:279: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).
      len = strlen(path+i) + 1;
data/erlang-p1-mqtree-1.0.10/c_src/mqtree.c:285:8:  [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).
	len = strlen(path+i) + 1;
data/erlang-p1-mqtree-1.0.10/c_src/mqtree.c:307:20:  [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(found->val);
data/erlang-p1-mqtree-1.0.10/c_src/uthash.h:91: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).
#define uthash_strlen(s) strlen(s)

ANALYSIS SUMMARY:

Hits = 21
Lines analyzed = 1760 in approximately 0.22 seconds (8065 lines/second)
Physical Source Lines of Code (SLOC) = 1426
Hits@level = [0]   0 [1]   9 [2]  10 [3]   0 [4]   2 [5]   0
Hits@level+ = [0+]  21 [1+]  21 [2+]  12 [3+]   2 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 14.7265 [1+] 14.7265 [2+] 8.41515 [3+] 1.40252 [4+] 1.40252 [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.