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/tolua++-1.0.93/include/tolua++.h
Examining data/tolua++-1.0.93/src/bin/toluabind_default.h
Examining data/tolua++-1.0.93/src/bin/toluabind.h
Examining data/tolua++-1.0.93/src/bin/tolua.c
Examining data/tolua++-1.0.93/src/bin/toluabind_default.c
Examining data/tolua++-1.0.93/src/bin/toluabind.c
Examining data/tolua++-1.0.93/src/tests/tvariable.h
Examining data/tolua++-1.0.93/src/tests/tclass.h
Examining data/tolua++-1.0.93/src/tests/tarray.c
Examining data/tolua++-1.0.93/src/tests/tdirectivebind.c
Examining data/tolua++-1.0.93/src/tests/tfunction.h
Examining data/tolua++-1.0.93/src/tests/tvariable.c
Examining data/tolua++-1.0.93/src/tests/tconstant.h
Examining data/tolua++-1.0.93/src/tests/tmodule.h
Examining data/tolua++-1.0.93/src/tests/tvariablebind.c
Examining data/tolua++-1.0.93/src/tests/tarray.h
Examining data/tolua++-1.0.93/src/tests/tnamespace.h
Examining data/tolua++-1.0.93/src/tests/tarraybind.c
Examining data/tolua++-1.0.93/src/tests/tclass.cpp
Examining data/tolua++-1.0.93/src/tests/tmodule.c
Examining data/tolua++-1.0.93/src/tests/tmodulebind.c
Examining data/tolua++-1.0.93/src/lib/tolua_is.c
Examining data/tolua++-1.0.93/src/lib/tolua_to.c
Examining data/tolua++-1.0.93/src/lib/tolua_event.c
Examining data/tolua++-1.0.93/src/lib/tolua_push.c
Examining data/tolua++-1.0.93/src/lib/tolua_event.h
Examining data/tolua++-1.0.93/src/lib/tolua_map.c

FINAL RESULTS:

data/tolua++-1.0.93/src/bin/tolua.c:158: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(path,argv[0]);
data/tolua++-1.0.93/src/bin/tolua.c:162:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(p,"%s","../src/bin/lua/");
data/tolua++-1.0.93/src/bin/tolua.c:157: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[BUFSIZ];
data/tolua++-1.0.93/src/bin/tolua.c:164:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(path,"all.lua");
data/tolua++-1.0.93/src/lib/tolua_map.c:351: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(clone,value,size);
data/tolua++-1.0.93/src/lib/tolua_map.c:394:2:  [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 ctype[128] = "const ";
data/tolua++-1.0.93/src/lib/tolua_map.c:523:2:  [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 cname[128] = "const ";
data/tolua++-1.0.93/src/lib/tolua_map.c:524:2:  [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 cbase[128] = "const ";
data/tolua++-1.0.93/src/tests/tfunction.h:14:2:  [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 m_s[64];
data/tolua++-1.0.93/src/tests/tvariable.c:11:1:  [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 n[64] = "Hi there";
data/tolua++-1.0.93/src/tests/tvariable.c:22:1:  [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 mn[64] = "Hi there in module";
data/tolua++-1.0.93/src/tests/tvariable.h:12:2:  [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 n[64];
data/tolua++-1.0.93/src/tests/tvariable.h:32:8:  [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.
extern char n[64];
data/tolua++-1.0.93/src/tests/tvariable.h:42:8:  [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.
extern char mn[64];
data/tolua++-1.0.93/src/lib/tolua_map.c:395:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
 strncat(ctype,type,120);
data/tolua++-1.0.93/src/lib/tolua_map.c:525:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(cname,name,120);
data/tolua++-1.0.93/src/lib/tolua_map.c:526:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(cbase,base,120);
data/tolua++-1.0.93/src/tests/tfunction.h:59:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(m_s,s,63);
data/tolua++-1.0.93/src/tests/tvariablebind.c:172:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
 strncpy(self->n,tolua_tostring(tolua_S,2,0),64-1);
data/tolua++-1.0.93/src/tests/tvariablebind.c:374:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
 strncpy(n,tolua_tostring(tolua_S,2,0),64-1);

ANALYSIS SUMMARY:

Hits = 20
Lines analyzed = 20592 in approximately 1.58 seconds (13043 lines/second)
Physical Source Lines of Code (SLOC) = 19500
Hits@level = [0]   7 [1]   6 [2]  12 [3]   0 [4]   2 [5]   0
Hits@level+ = [0+]  27 [1+]  20 [2+]  14 [3+]   2 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 1.38462 [1+] 1.02564 [2+] 0.717949 [3+] 0.102564 [4+] 0.102564 [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.