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-pam-1.0.9/c_src/epam.c

FINAL RESULTS:

data/erlang-p1-pam-1.0.9/c_src/epam.c:25:35:  [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.
#define dec_int16(s) ((((unsigned char *)(s))[0] << 8) | \
data/erlang-p1-pam-1.0.9/c_src/epam.c:26:35:  [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.
                      (((unsigned char *)(s))[1]))
data/erlang-p1-pam-1.0.9/c_src/epam.c:30:16:  [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.
    ((unsigned char *)(s))[0] = ((i) >> 8) & 0xff; \
data/erlang-p1-pam-1.0.9/c_src/epam.c:31:16:  [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.
    ((unsigned char *)(s))[1] = (i)&0xff;          \
data/erlang-p1-pam-1.0.9/c_src/epam.c:115:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((i = read(fd, buf + got, len - got)) <= 0)
data/erlang-p1-pam-1.0.9/c_src/epam.c:193: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(errtxt);

ANALYSIS SUMMARY:

Hits = 6
Lines analyzed = 251 in approximately 0.03 seconds (8579 lines/second)
Physical Source Lines of Code (SLOC) = 214
Hits@level = [0]   0 [1]   2 [2]   4 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   6 [1+]   6 [2+]   4 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 28.0374 [1+] 28.0374 [2+] 18.6916 [3+]   0 [4+]   0 [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.