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/lua-lpeg-1.0.2/lptypes.h
Examining data/lua-lpeg-1.0.2/lpvm.c
Examining data/lua-lpeg-1.0.2/lptree.h
Examining data/lua-lpeg-1.0.2/lptree.c
Examining data/lua-lpeg-1.0.2/lpcap.h
Examining data/lua-lpeg-1.0.2/lpprint.c
Examining data/lua-lpeg-1.0.2/lpcap.c
Examining data/lua-lpeg-1.0.2/lpprint.h
Examining data/lua-lpeg-1.0.2/lpvm.h
Examining data/lua-lpeg-1.0.2/lpcode.h
Examining data/lua-lpeg-1.0.2/lpcode.c

FINAL RESULTS:

data/lua-lpeg-1.0.2/lpcap.c:283:18:  [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).
  assert(captype(open) == Cgroup);
data/lua-lpeg-1.0.2/lpcap.c:284:19:  [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).
  id = finddyncap(open, close);  /* get first dynamic capture argument */
data/lua-lpeg-1.0.2/lpcap.c:287:13:  [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).
  cs->cap = open; cs->valuecached = 0;  /* prepare capture state */
data/lua-lpeg-1.0.2/lptree.c:391:3:  [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(sib1(tree), sib, sibsize * sizeof(TTree));
data/lua-lpeg-1.0.2/lptree.c:495:3:  [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(sib1(tree), tree1, s1 * sizeof(TTree));
data/lua-lpeg-1.0.2/lptree.c:512:3:  [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(sib1(tree), tree1, s1 * sizeof(TTree));
data/lua-lpeg-1.0.2/lptree.c:513:3:  [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(sib2(tree), tree2, s2 * sizeof(TTree));
data/lua-lpeg-1.0.2/lptree.c:583: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(sib1(tree), tree1, size1 * sizeof(TTree));
data/lua-lpeg-1.0.2/lptree.c:598: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(sib1(tree), tree1, size1 * sizeof(TTree));
data/lua-lpeg-1.0.2/lptree.c:641: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(sib1(sib1(tree)), t2, s2 * sizeof(TTree));  /* ...t2 */
data/lua-lpeg-1.0.2/lptree.c:642: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(sib2(tree), t1, s1 * sizeof(TTree));  /* ... and t1 */
data/lua-lpeg-1.0.2/lptree.c:943: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(sib1(nd), rn, rulesize * sizeof(TTree));  /* copy rule */
data/lua-lpeg-1.0.2/lpvm.c:66: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(newc, capture, captop * sizeof(Capture));
data/lua-lpeg-1.0.2/lpvm.c:90:3:  [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(newstack, stack, n * sizeof(Stack));

ANALYSIS SUMMARY:

Hits = 14
Lines analyzed = 3910 in approximately 0.11 seconds (34952 lines/second)
Physical Source Lines of Code (SLOC) = 2675
Hits@level = [0]  35 [1]   0 [2]  14 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  49 [1+]  14 [2+]  14 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 18.3178 [1+] 5.23364 [2+] 5.23364 [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.