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/golang-github-mattn-go-gtk-0.1+git20190405.4deadb4/gio/gio.go.h
Examining data/golang-github-mattn-go-gtk-0.1+git20190405.4deadb4/gtkgl/gtkgl.go.h
Examining data/golang-github-mattn-go-gtk-0.1+git20190405.4deadb4/gtk/gtk.go.h
Examining data/golang-github-mattn-go-gtk-0.1+git20190405.4deadb4/gdk/gdk.go.h
Examining data/golang-github-mattn-go-gtk-0.1+git20190405.4deadb4/gdkpixbuf/gdkpixbuf.go.h
Examining data/golang-github-mattn-go-gtk-0.1+git20190405.4deadb4/glib/glib.go.h
Examining data/golang-github-mattn-go-gtk-0.1+git20190405.4deadb4/pango/pango.go.h
Examining data/golang-github-mattn-go-gtk-0.1+git20190405.4deadb4/gtksourceview/gtksourceview.go.h

FINAL RESULTS:

data/golang-github-mattn-go-gtk-0.1+git20190405.4deadb4/glib/glib.go.h:200:29:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    runtime_dir = g_strdup (getenv ("XDG_RUNTIME_DIR"));
data/golang-github-mattn-go-gtk-0.1+git20190405.4deadb4/gtkgl/gtkgl.go.h:20: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(zattrs, attrs, attr_count * sizeof(attrs));
data/golang-github-mattn-go-gtk-0.1+git20190405.4deadb4/glib/glib.go.h:30:66:  [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).
static inline gchar* next_string(gchar* s) { return (gchar*)(s + strlen(s) + 1); }

ANALYSIS SUMMARY:

Hits = 3
Lines analyzed = 1271 in approximately 0.10 seconds (12159 lines/second)
Physical Source Lines of Code (SLOC) = 1096
Hits@level = [0]   0 [1]   1 [2]   1 [3]   1 [4]   0 [5]   0
Hits@level+ = [0+]   3 [1+]   3 [2+]   2 [3+]   1 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 2.73723 [1+] 2.73723 [2+] 1.82482 [3+] 0.912409 [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.