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-lgi-0.9.2/lgi/buffer.c
Examining data/lua-lgi-0.9.2/lgi/core.c
Examining data/lua-lgi-0.9.2/lgi/gi.c
Examining data/lua-lgi-0.9.2/lgi/lgi.h
Examining data/lua-lgi-0.9.2/lgi/marshal.c
Examining data/lua-lgi-0.9.2/lgi/object.c
Examining data/lua-lgi-0.9.2/lgi/record.c
Examining data/lua-lgi-0.9.2/lgi/callable.c
Examining data/lua-lgi-0.9.2/tests/config.h

FINAL RESULTS:

data/lua-lgi-0.9.2/lgi/gi.c:709: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 (ns, namespace);
data/lua-lgi-0.9.2/lgi/buffer.c:79: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 (buffer, source, size);
data/lua-lgi-0.9.2/lgi/record.c:411:6:  [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 (target, record->addr, size);
data/lua-lgi-0.9.2/lgi/gi.c:706:35:  [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).
  gchar *ns = lua_newuserdata (L, strlen (namespace) + 1);
data/lua-lgi-0.9.2/lgi/marshal.c:503:15:  [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 = data ? strlen(data) : 0;

ANALYSIS SUMMARY:

Hits = 5
Lines analyzed = 6816 in approximately 0.20 seconds (33790 lines/second)
Physical Source Lines of Code (SLOC) = 5082
Hits@level = [0]   0 [1]   2 [2]   2 [3]   0 [4]   1 [5]   0
Hits@level+ = [0+]   5 [1+]   5 [2+]   3 [3+]   1 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 0.983865 [1+] 0.983865 [2+] 0.590319 [3+] 0.196773 [4+] 0.196773 [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.