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-cyrussasl-1.1.0/context.c
Examining data/lua-cyrussasl-1.1.0/context.h
Examining data/lua-cyrussasl-1.1.0/cyrussasl.c
Examining data/lua-cyrussasl-1.1.0/luaabstract.c
Examining data/lua-cyrussasl-1.1.0/luaabstract.h

FINAL RESULTS:

data/lua-cyrussasl-1.1.0/context.c:26: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(ret, s1);
data/lua-cyrussasl-1.1.0/context.c:163: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(ctx->user, usr, ulen);
data/lua-cyrussasl-1.1.0/cyrussasl.c:134: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(out_user, str, len + 1);
data/lua-cyrussasl-1.1.0/cyrussasl.c:1144: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 err[256];
data/lua-cyrussasl-1.1.0/cyrussasl.c:1183: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 err[256];
data/lua-cyrussasl-1.1.0/luaabstract.c:10: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 err[256];
data/lua-cyrussasl-1.1.0/luaabstract.c:34: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 err[256];
data/lua-cyrussasl-1.1.0/context.c:22:22:  [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).
  char *ret = malloc(strlen(s1)+1);
data/lua-cyrussasl-1.1.0/cyrussasl.c:231:14:  [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(*result);
data/lua-cyrussasl-1.1.0/cyrussasl.c:808:9:  [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(data);

ANALYSIS SUMMARY:

Hits = 10
Lines analyzed = 1695 in approximately 0.06 seconds (30328 lines/second)
Physical Source Lines of Code (SLOC) = 1124
Hits@level = [0]   4 [1]   3 [2]   6 [3]   0 [4]   1 [5]   0
Hits@level+ = [0+]  14 [1+]  10 [2+]   7 [3+]   1 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 12.4555 [1+] 8.8968 [2+] 6.22776 [3+] 0.88968 [4+] 0.88968 [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.