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-1.15-1.15.5/misc/cgo/life/testdata/c-life.c
Examining data/golang-1.15-1.15.5/misc/cgo/life/testdata/life.h
Examining data/golang-1.15-1.15.5/misc/cgo/test/callback_c.c
Examining data/golang-1.15-1.15.5/misc/cgo/test/callback_c_gc.c
Examining data/golang-1.15-1.15.5/misc/cgo/test/callback_c_gccgo.c
Examining data/golang-1.15-1.15.5/misc/cgo/test/cthread_unix.c
Examining data/golang-1.15-1.15.5/misc/cgo/test/cthread_windows.c
Examining data/golang-1.15-1.15.5/misc/cgo/test/issue20910.c
Examining data/golang-1.15-1.15.5/misc/cgo/test/issue31891.c
Examining data/golang-1.15-1.15.5/misc/cgo/test/issue4029.c
Examining data/golang-1.15-1.15.5/misc/cgo/test/issue4273.c
Examining data/golang-1.15-1.15.5/misc/cgo/test/issue4273b.c
Examining data/golang-1.15-1.15.5/misc/cgo/test/issue4339.c
Examining data/golang-1.15-1.15.5/misc/cgo/test/issue4339.h
Examining data/golang-1.15-1.15.5/misc/cgo/test/issue5548_c.c
Examining data/golang-1.15-1.15.5/misc/cgo/test/issue5740a.c
Examining data/golang-1.15-1.15.5/misc/cgo/test/issue5740b.c
Examining data/golang-1.15-1.15.5/misc/cgo/test/issue6833_c.c
Examining data/golang-1.15-1.15.5/misc/cgo/test/issue6907export_c.c
Examining data/golang-1.15-1.15.5/misc/cgo/test/issue6997_linux.c
Examining data/golang-1.15-1.15.5/misc/cgo/test/issue8331.h
Examining data/golang-1.15-1.15.5/misc/cgo/test/issue8517_windows.c
Examining data/golang-1.15-1.15.5/misc/cgo/test/issue8811.c
Examining data/golang-1.15-1.15.5/misc/cgo/test/sigprocmask.c
Examining data/golang-1.15-1.15.5/misc/cgo/test/testdata/gcc68255/c.c
Examining data/golang-1.15-1.15.5/misc/cgo/test/testdata/gcc68255/c.h
Examining data/golang-1.15-1.15.5/misc/cgo/test/testdata/issue20266/issue20266.h
Examining data/golang-1.15-1.15.5/misc/cgo/test/testdata/issue26213/jni.h
Examining data/golang-1.15-1.15.5/misc/cgo/test/testdata/issue27054/egl.h
Examining data/golang-1.15-1.15.5/misc/cgo/test/testdata/issue29563/weak1.c
Examining data/golang-1.15-1.15.5/misc/cgo/test/testdata/issue29563/weak2.c
Examining data/golang-1.15-1.15.5/misc/cgo/test/testdata/issue8828/issue8828.c
Examining data/golang-1.15-1.15.5/misc/cgo/testcarchive/testdata/main.c
Examining data/golang-1.15-1.15.5/misc/cgo/testcarchive/testdata/main2.c
Examining data/golang-1.15-1.15.5/misc/cgo/testcarchive/testdata/main3.c
Examining data/golang-1.15-1.15.5/misc/cgo/testcarchive/testdata/main4.c
Examining data/golang-1.15-1.15.5/misc/cgo/testcarchive/testdata/main5.c
Examining data/golang-1.15-1.15.5/misc/cgo/testcarchive/testdata/main6.c
Examining data/golang-1.15-1.15.5/misc/cgo/testcarchive/testdata/main7.c
Examining data/golang-1.15-1.15.5/misc/cgo/testcarchive/testdata/main_unix.c
Examining data/golang-1.15-1.15.5/misc/cgo/testcarchive/testdata/main_windows.c
Examining data/golang-1.15-1.15.5/misc/cgo/testcshared/testdata/go2c2go/m1/c.c
Examining data/golang-1.15-1.15.5/misc/cgo/testcshared/testdata/main0.c
Examining data/golang-1.15-1.15.5/misc/cgo/testcshared/testdata/main1.c
Examining data/golang-1.15-1.15.5/misc/cgo/testcshared/testdata/main2.c
Examining data/golang-1.15-1.15.5/misc/cgo/testcshared/testdata/main3.c
Examining data/golang-1.15-1.15.5/misc/cgo/testcshared/testdata/main4.c
Examining data/golang-1.15-1.15.5/misc/cgo/testcshared/testdata/main5.c
Examining data/golang-1.15-1.15.5/misc/cgo/testplugin/testdata/issue25756/plugin/c-life.c
Examining data/golang-1.15-1.15.5/misc/cgo/testplugin/testdata/issue25756/plugin/life.h
Examining data/golang-1.15-1.15.5/misc/cgo/testso/testdata/cgoso.c
Examining data/golang-1.15-1.15.5/misc/cgo/testso/testdata/cgoso_c.c
Examining data/golang-1.15-1.15.5/misc/cgo/testsovar/testdata/cgoso_c.c
Examining data/golang-1.15-1.15.5/misc/cgo/testsovar/testdata/cgoso_c.h
Examining data/golang-1.15-1.15.5/misc/cgo/testtls/tls_unix.c
Examining data/golang-1.15-1.15.5/misc/swig/callback/callback.cc
Examining data/golang-1.15-1.15.5/misc/swig/callback/callback.h
Examining data/golang-1.15-1.15.5/src/cmd/internal/goobj/testdata/mycgo/c1.c
Examining data/golang-1.15-1.15.5/src/cmd/internal/goobj/testdata/mycgo/c2.c
Examining data/golang-1.15-1.15.5/src/cmd/vendor/golang.org/x/sys/unix/gccgo_c.c
Examining data/golang-1.15-1.15.5/src/debug/dwarf/testdata/cppunsuptypes.cc
Examining data/golang-1.15-1.15.5/src/debug/dwarf/testdata/cycle.c
Examining data/golang-1.15-1.15.5/src/debug/dwarf/testdata/line1.c
Examining data/golang-1.15-1.15.5/src/debug/dwarf/testdata/line1.h
Examining data/golang-1.15-1.15.5/src/debug/dwarf/testdata/line2.c
Examining data/golang-1.15-1.15.5/src/debug/dwarf/testdata/ranges.c
Examining data/golang-1.15-1.15.5/src/debug/dwarf/testdata/split.c
Examining data/golang-1.15-1.15.5/src/debug/dwarf/testdata/typedef.c
Examining data/golang-1.15-1.15.5/src/debug/elf/testdata/hello.c
Examining data/golang-1.15-1.15.5/src/debug/gosym/testdata/pclinetest.h
Examining data/golang-1.15-1.15.5/src/debug/macho/testdata/hello.c
Examining data/golang-1.15-1.15.5/src/debug/pe/testdata/hello.c
Examining data/golang-1.15-1.15.5/src/debug/plan9obj/testdata/hello.c
Examining data/golang-1.15-1.15.5/src/internal/xcoff/testdata/hello.c
Examining data/golang-1.15-1.15.5/src/internal/xcoff/testdata/printbye.c
Examining data/golang-1.15-1.15.5/src/internal/xcoff/testdata/printhello.c
Examining data/golang-1.15-1.15.5/src/regexp/testdata/testregex.c
Examining data/golang-1.15-1.15.5/src/runtime/asm_ppc64x.h
Examining data/golang-1.15-1.15.5/src/runtime/cgo/gcc_aix_ppc64.c
Examining data/golang-1.15-1.15.5/src/runtime/cgo/gcc_android.c
Examining data/golang-1.15-1.15.5/src/runtime/cgo/gcc_context.c
Examining data/golang-1.15-1.15.5/src/runtime/cgo/gcc_darwin_amd64.c
Examining data/golang-1.15-1.15.5/src/runtime/cgo/gcc_darwin_arm64.c
Examining data/golang-1.15-1.15.5/src/runtime/cgo/gcc_dragonfly_amd64.c
Examining data/golang-1.15-1.15.5/src/runtime/cgo/gcc_fatalf.c
Examining data/golang-1.15-1.15.5/src/runtime/cgo/gcc_freebsd_386.c
Examining data/golang-1.15-1.15.5/src/runtime/cgo/gcc_freebsd_amd64.c
Examining data/golang-1.15-1.15.5/src/runtime/cgo/gcc_freebsd_arm.c
Examining data/golang-1.15-1.15.5/src/runtime/cgo/gcc_freebsd_arm64.c
Examining data/golang-1.15-1.15.5/src/runtime/cgo/gcc_freebsd_sigaction.c
Examining data/golang-1.15-1.15.5/src/runtime/cgo/gcc_libinit.c
Examining data/golang-1.15-1.15.5/src/runtime/cgo/gcc_libinit_windows.c
Examining data/golang-1.15-1.15.5/src/runtime/cgo/gcc_linux_386.c
Examining data/golang-1.15-1.15.5/src/runtime/cgo/gcc_linux_amd64.c
Examining data/golang-1.15-1.15.5/src/runtime/cgo/gcc_linux_arm.c
Examining data/golang-1.15-1.15.5/src/runtime/cgo/gcc_linux_arm64.c
Examining data/golang-1.15-1.15.5/src/runtime/cgo/gcc_linux_mips64x.c
Examining data/golang-1.15-1.15.5/src/runtime/cgo/gcc_linux_mipsx.c
Examining data/golang-1.15-1.15.5/src/runtime/cgo/gcc_linux_s390x.c
Examining data/golang-1.15-1.15.5/src/runtime/cgo/gcc_mmap.c
Examining data/golang-1.15-1.15.5/src/runtime/cgo/gcc_netbsd_386.c
Examining data/golang-1.15-1.15.5/src/runtime/cgo/gcc_netbsd_amd64.c
Examining data/golang-1.15-1.15.5/src/runtime/cgo/gcc_netbsd_arm.c
Examining data/golang-1.15-1.15.5/src/runtime/cgo/gcc_netbsd_arm64.c
Examining data/golang-1.15-1.15.5/src/runtime/cgo/gcc_openbsd_386.c
Examining data/golang-1.15-1.15.5/src/runtime/cgo/gcc_openbsd_amd64.c
Examining data/golang-1.15-1.15.5/src/runtime/cgo/gcc_openbsd_arm.c
Examining data/golang-1.15-1.15.5/src/runtime/cgo/gcc_openbsd_arm64.c
Examining data/golang-1.15-1.15.5/src/runtime/cgo/gcc_ppc64x.c
Examining data/golang-1.15-1.15.5/src/runtime/cgo/gcc_setenv.c
Examining data/golang-1.15-1.15.5/src/runtime/cgo/gcc_sigaction.c
Examining data/golang-1.15-1.15.5/src/runtime/cgo/gcc_signal2_darwin_arm64.c
Examining data/golang-1.15-1.15.5/src/runtime/cgo/gcc_signal_darwin_arm64.c
Examining data/golang-1.15-1.15.5/src/runtime/cgo/gcc_signal_darwin_lldb.c
Examining data/golang-1.15-1.15.5/src/runtime/cgo/gcc_solaris_amd64.c
Examining data/golang-1.15-1.15.5/src/runtime/cgo/gcc_traceback.c
Examining data/golang-1.15-1.15.5/src/runtime/cgo/gcc_util.c
Examining data/golang-1.15-1.15.5/src/runtime/cgo/gcc_windows_386.c
Examining data/golang-1.15-1.15.5/src/runtime/cgo/gcc_windows_amd64.c
Examining data/golang-1.15-1.15.5/src/runtime/cgo/libcgo.h
Examining data/golang-1.15-1.15.5/src/runtime/cgo/libcgo_unix.h
Examining data/golang-1.15-1.15.5/src/runtime/funcdata.h
Examining data/golang-1.15-1.15.5/src/runtime/go_tls.h
Examining data/golang-1.15-1.15.5/src/runtime/testdata/testprogcgo/bigstack_windows.c
Examining data/golang-1.15-1.15.5/src/runtime/testdata/testprogcgo/lockosthread.c
Examining data/golang-1.15-1.15.5/src/runtime/testdata/testprogcgo/threadpanic_unix.c
Examining data/golang-1.15-1.15.5/src/runtime/testdata/testprogcgo/threadpanic_windows.c
Examining data/golang-1.15-1.15.5/src/runtime/testdata/testprogcgo/tracebackctxt_c.c
Examining data/golang-1.15-1.15.5/src/runtime/testdata/testwinlib/main.c
Examining data/golang-1.15-1.15.5/src/runtime/testdata/testwinlibsignal/main.c
Examining data/golang-1.15-1.15.5/src/runtime/textflag.h
Examining data/golang-1.15-1.15.5/src/runtime/tls_arm64.h
Examining data/golang-1.15-1.15.5/src/vendor/golang.org/x/sys/cpu/cpu_gccgo_x86.c
Examining data/golang-1.15-1.15.5/test/cmplxdivide.c

FINAL RESULTS:

data/golang-1.15-1.15.5/src/regexp/testdata/testregex.c:155:26:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define H(x)		do{if(html)fprintf(stderr,x);}while(0)
data/golang-1.15-1.15.5/src/regexp/testdata/testregex.c:156:15:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define T(x)		fprintf(stderr,x)
data/golang-1.15-1.15.5/src/regexp/testdata/testregex.c:1810:6:  [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(ppat = pat, re);
data/golang-1.15-1.15.5/src/runtime/cgo/gcc_android.c:24:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, format, ap);
data/golang-1.15-1.15.5/src/runtime/cgo/gcc_fatalf.c:19:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, format, ap);
data/golang-1.15-1.15.5/misc/cgo/testcarchive/testdata/main_unix.c:39:6:  [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.
	if (getenv("GCCGO") == "" && (osa.sa_flags&SA_ONSTACK) == 0) {
data/golang-1.15-1.15.5/src/runtime/cgo/gcc_libinit_windows.c:33:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
	 InitializeCriticalSection(&runtime_init_cs);
data/golang-1.15-1.15.5/src/runtime/cgo/gcc_libinit_windows.c:66:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	 EnterCriticalSection(&runtime_init_cs);
data/golang-1.15-1.15.5/src/runtime/cgo/gcc_libinit_windows.c:95:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	 EnterCriticalSection(&runtime_init_cs);
data/golang-1.15-1.15.5/src/runtime/cgo/gcc_libinit_windows.c:111:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&runtime_init_cs);
data/golang-1.15-1.15.5/src/runtime/cgo/gcc_libinit_windows.c:120:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&runtime_init_cs);
data/golang-1.15-1.15.5/src/runtime/testdata/testwinlibsignal/main.c:35:24:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
    HMODULE dummyDll = LoadLibrary("dummy.dll");
data/golang-1.15-1.15.5/misc/cgo/test/callback_c.c:14:11:  [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.
	volatile char data[64*1024];
data/golang-1.15-1.15.5/misc/cgo/test/issue5548_c.c:8:11:  [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.
	volatile char a[1024];
data/golang-1.15-1.15.5/misc/cgo/testcarchive/testdata/main2.c:34: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 a[1024];
data/golang-1.15-1.15.5/misc/cgo/testcarchive/testdata/main2.c:48: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 a[1024];
data/golang-1.15-1.15.5/misc/cgo/testcarchive/testdata/main2.c:128:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	darwin = atoi(argv[1]);
data/golang-1.15-1.15.5/misc/cgo/testcarchive/testdata/main5.c:28:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	test = atoi(argv[1]);
data/golang-1.15-1.15.5/misc/cgo/testcshared/testdata/main2.c:19: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 buf[20];
data/golang-1.15-1.15.5/misc/cgo/testcshared/testdata/main4.c:30: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 a[1024];
data/golang-1.15-1.15.5/misc/cgo/testcshared/testdata/main4.c:40: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 a[1024];
data/golang-1.15-1.15.5/src/debug/dwarf/testdata/line1.h:3: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 buf[10];
data/golang-1.15-1.15.5/src/debug/dwarf/testdata/ranges.c:3:7:  [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.
const char *arr[10000];
data/golang-1.15-1.15.5/src/regexp/testdata/testregex.c:134:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	return atoi(xstr);
data/golang-1.15-1.15.5/src/regexp/testdata/testregex.c:696: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	buf[256];
data/golang-1.15-1.15.5/src/regexp/testdata/testregex.c:1038:9:  [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.
	static char	buf[32 * 1024];
data/golang-1.15-1.15.5/src/regexp/testdata/testregex.c:1252: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		unit[64];
data/golang-1.15-1.15.5/src/regexp/testdata/testregex.c:1256:9:  [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.
	static char	pat[32 * 1024];
data/golang-1.15-1.15.5/src/regexp/testdata/testregex.c:1257:9:  [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.
	static char	patbuf[32 * 1024];
data/golang-1.15-1.15.5/src/regexp/testdata/testregex.c:1258:9:  [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.
	static char	strbuf[32 * 1024];
data/golang-1.15-1.15.5/src/regexp/testdata/testregex.c:1347:19:  [2] (misc) fopen:
  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).
		else if (!(fp = fopen(state.file, "r")))
data/golang-1.15-1.15.5/src/regexp/testdata/testregex.c:1971: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	buf[128];
data/golang-1.15-1.15.5/src/runtime/cgo/gcc_darwin_arm64.c:112: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 buf[MAXPATHLEN];
data/golang-1.15-1.15.5/src/runtime/testdata/testprogcgo/bigstack_windows.c:25: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 x[64<<10];
data/golang-1.15-1.15.5/test/cmplxdivide.c:37:9:  [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.
	static char buf[10][30];
data/golang-1.15-1.15.5/test/cmplxdivide.c:46:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(p, "%g", g);
data/golang-1.15-1.15.5/test/cmplxdivide.c:49:3:  [2] (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). Risk is low because the source is a constant string.
		strcpy(p, "zero");
data/golang-1.15-1.15.5/test/cmplxdivide.c:54:3:  [2] (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). Risk is low because the source is a constant string.
		strcpy(p, "-zero");
data/golang-1.15-1.15.5/misc/cgo/test/callback_c.c:89:31:  [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).
	goWithString((GoString){str, strlen(str)});
data/golang-1.15-1.15.5/misc/cgo/testcarchive/testdata/main3.c:35: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).
	write(2, s, strlen(s));
data/golang-1.15-1.15.5/misc/cgo/testcshared/testdata/main2.c:25:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    n = read(fd, buf, sizeof buf);
data/golang-1.15-1.15.5/src/regexp/testdata/testregex.c:590:10:  [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((char*)u);
data/golang-1.15-1.15.5/src/regexp/testdata/testregex.c:682: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).
	if (comment[strlen(comment)-1] == '\n')
data/golang-1.15-1.15.5/src/regexp/testdata/testregex.c:1049:8:  [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).
		s += strlen(s);
data/golang-1.15-1.15.5/src/regexp/testdata/testregex.c:1823:18:  [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).
					if (nstr != strlen(s))
data/golang-1.15-1.15.5/src/regexp/testdata/testregex.c:1922:29:  [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).
			if (nstr >= 0 && nstr != strlen(s))
data/golang-1.15-1.15.5/src/regexp/testdata/testregex.c:1990:17:  [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).
						if (i != (strlen(ans) + 1))
data/golang-1.15-1.15.5/src/regexp/testdata/testregex.c:2242:33:  [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).
					nexec = nstr >= 0 ? nstr : strlen(s);
data/golang-1.15-1.15.5/src/runtime/cgo/gcc_darwin_arm64.c:122:16:  [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).
	int url_len = strlen(buf);
data/golang-1.15-1.15.5/src/runtime/cgo/gcc_util.c:63:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(&x_cgo_yield_strncpy_dst, &x_cgo_yield_strncpy_src,

ANALYSIS SUMMARY:

Hits = 50
Lines analyzed = 8759 in approximately 1.38 seconds (6353 lines/second)
Physical Source Lines of Code (SLOC) = 6453
Hits@level = [0] 312 [1]  12 [2]  26 [3]   7 [4]   5 [5]   0
Hits@level+ = [0+] 362 [1+]  50 [2+]  38 [3+]  12 [4+]   5 [5+]   0
Hits/KSLOC@level+ = [0+] 56.0979 [1+] 7.74833 [2+] 5.88873 [3+] 1.8596 [4+] 0.774833 [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.