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-eimp-1.0.17/c_src/eimp.c

FINAL RESULTS:

data/erlang-p1-eimp-1.0.17/c_src/eimp.c:151: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(&w, buf+16, 4);
data/erlang-p1-eimp-1.0.17/c_src/eimp.c:152: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(&h, buf+20, 4);
data/erlang-p1-eimp-1.0.17/c_src/eimp.c:169:4:  [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, buf+6, 2);
data/erlang-p1-eimp-1.0.17/c_src/eimp.c:170:4:  [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(&h, buf+8, 2);
data/erlang-p1-eimp-1.0.17/c_src/eimp.c:390: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(&w, buf+2, 2);
data/erlang-p1-eimp-1.0.17/c_src/eimp.c:391: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(&h, buf+4, 2);
data/erlang-p1-eimp-1.0.17/c_src/eimp.c:208:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((i = read(STDIN_FILENO, buf+got, len-got)) <= 0) {
data/erlang-p1-eimp-1.0.17/c_src/eimp.c:252: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).
  size_t size = strlen(s);

ANALYSIS SUMMARY:

Hits = 8
Lines analyzed = 475 in approximately 0.29 seconds (1613 lines/second)
Physical Source Lines of Code (SLOC) = 382
Hits@level = [0]   0 [1]   2 [2]   6 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   8 [1+]   8 [2+]   6 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 20.9424 [1+] 20.9424 [2+] 15.7068 [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.