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/synthv1-0.9.18/src/synthv1.h
Examining data/synthv1-0.9.18/src/synthv1widget_jack.h
Examining data/synthv1-0.9.18/src/synthv1widget_lv2.cpp
Examining data/synthv1-0.9.18/src/synthv1widget_controls.cpp
Examining data/synthv1-0.9.18/src/synthv1_jack.cpp
Examining data/synthv1-0.9.18/src/synthv1widget_palette.h
Examining data/synthv1-0.9.18/src/synthv1widget_param.cpp
Examining data/synthv1-0.9.18/src/synthv1_config.h
Examining data/synthv1-0.9.18/src/synthv1_wave.h
Examining data/synthv1-0.9.18/src/synthv1_wave.cpp
Examining data/synthv1-0.9.18/src/synthv1.cpp
Examining data/synthv1-0.9.18/src/synthv1widget_status.cpp
Examining data/synthv1-0.9.18/src/synthv1widget_preset.h
Examining data/synthv1-0.9.18/src/synthv1_sched.h
Examining data/synthv1-0.9.18/src/synthv1_ui.h
Examining data/synthv1-0.9.18/src/synthv1_controls.h
Examining data/synthv1-0.9.18/src/synthv1_param.cpp
Examining data/synthv1-0.9.18/src/synthv1widget_config.h
Examining data/synthv1-0.9.18/src/synthv1_nsm.cpp
Examining data/synthv1-0.9.18/src/synthv1_programs.cpp
Examining data/synthv1-0.9.18/src/synthv1_controls.cpp
Examining data/synthv1-0.9.18/src/synthv1widget_config.cpp
Examining data/synthv1-0.9.18/src/synthv1widget_param.h
Examining data/synthv1-0.9.18/src/synthv1widget.h
Examining data/synthv1-0.9.18/src/synthv1widget_lv2.h
Examining data/synthv1-0.9.18/src/synthv1_formant.cpp
Examining data/synthv1-0.9.18/src/synthv1widget.cpp
Examining data/synthv1-0.9.18/src/synthv1_fx.h
Examining data/synthv1-0.9.18/src/synthv1_programs.h
Examining data/synthv1-0.9.18/src/synthv1_nsm.h
Examining data/synthv1-0.9.18/src/synthv1_ramp.h
Examining data/synthv1-0.9.18/src/lv2/lv2_programs.h
Examining data/synthv1-0.9.18/src/lv2/lv2_external_ui.h
Examining data/synthv1-0.9.18/src/synthv1_reverb.h
Examining data/synthv1-0.9.18/src/synthv1_ui.cpp
Examining data/synthv1-0.9.18/src/synthv1widget_preset.cpp
Examining data/synthv1-0.9.18/src/synthv1widget_control.cpp
Examining data/synthv1-0.9.18/src/synthv1_config.cpp
Examining data/synthv1-0.9.18/src/synthv1widget_control.h
Examining data/synthv1-0.9.18/src/synthv1_tuning.cpp
Examining data/synthv1-0.9.18/src/synthv1_list.h
Examining data/synthv1-0.9.18/src/synthv1_formant.h
Examining data/synthv1-0.9.18/src/synthv1widget_programs.cpp
Examining data/synthv1-0.9.18/src/synthv1_tuning.h
Examining data/synthv1-0.9.18/src/synthv1_sched.cpp
Examining data/synthv1-0.9.18/src/synthv1widget_wave.h
Examining data/synthv1-0.9.18/src/synthv1widget_filt.h
Examining data/synthv1-0.9.18/src/synthv1_lv2ui.h
Examining data/synthv1-0.9.18/src/synthv1_lv2.h
Examining data/synthv1-0.9.18/src/synthv1widget_env.cpp
Examining data/synthv1-0.9.18/src/synthv1widget_keybd.h
Examining data/synthv1-0.9.18/src/synthv1_filter.h
Examining data/synthv1-0.9.18/src/synthv1widget_palette.cpp
Examining data/synthv1-0.9.18/src/synthv1_jack.h
Examining data/synthv1-0.9.18/src/synthv1widget_status.h
Examining data/synthv1-0.9.18/src/synthv1_param.h
Examining data/synthv1-0.9.18/src/synthv1widget_wave.cpp
Examining data/synthv1-0.9.18/src/synthv1widget_controls.h
Examining data/synthv1-0.9.18/src/synthv1widget_filt.cpp
Examining data/synthv1-0.9.18/src/synthv1widget_jack.cpp
Examining data/synthv1-0.9.18/src/synthv1widget_programs.h
Examining data/synthv1-0.9.18/src/synthv1_lv2ui.cpp
Examining data/synthv1-0.9.18/src/synthv1widget_env.h
Examining data/synthv1-0.9.18/src/synthv1_lv2.cpp
Examining data/synthv1-0.9.18/src/synthv1widget_keybd.cpp

FINAL RESULTS:

data/synthv1-0.9.18/src/synthv1_jack.cpp:719:14:  [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.
	m_bGui = (::getenv("DISPLAY") != 0);
data/synthv1-0.9.18/src/synthv1_jack.cpp:905:27:  [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.
		= QString::fromLatin1(::getenv("NSM_URL"));
data/synthv1-0.9.18/src/synthv1.cpp:2339: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(outs[k], ins[k], nframes * sizeof(float));
data/synthv1-0.9.18/src/synthv1_controls.cpp:219:8:  [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(
data/synthv1-0.9.18/src/synthv1_controls.cpp:226:8:  [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(
data/synthv1-0.9.18/src/synthv1_controls.cpp:231:9:  [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(
data/synthv1-0.9.18/src/synthv1_jack.cpp:190:2:  [2] (misc) open:
  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).
	open(client_name);
data/synthv1-0.9.18/src/synthv1_jack.cpp:297:20:  [2] (misc) open:
  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).
void synthv1_jack::open ( const char *client_name )
data/synthv1-0.9.18/src/synthv1_jack.cpp:324: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 port_name[32];
data/synthv1-0.9.18/src/synthv1_jack.cpp:556:12:  [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.
		unsigned char  ev_buff[nlimit];
data/synthv1-0.9.18/src/synthv1_jack.cpp:909:11:  [2] (misc) open:
  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).
			SIGNAL(open()),
data/synthv1-0.9.18/src/synthv1_jack.cpp:967:12:  [2] (misc) open:
  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).
	m_pSynth->open(client_name.toUtf8().constData());
data/synthv1-0.9.18/src/synthv1_jack.h:52:7:  [2] (misc) open:
  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).
	void open(const char *client_name);
data/synthv1-0.9.18/src/synthv1_lv2.cpp:690: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 s_szNull[1] = {'\0'};
data/synthv1-0.9.18/src/synthv1_nsm.cpp:416:7:  [2] (misc) open:
  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).
	emit open();
data/synthv1-0.9.18/src/synthv1_nsm.h:115:7:  [2] (misc) open:
  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).
	void open();
data/synthv1-0.9.18/src/synthv1_param.cpp:295:12:  [2] (misc) open:
  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).
	if (!file.open(QIODevice::ReadOnly))
data/synthv1-0.9.18/src/synthv1_param.cpp:405:12:  [2] (misc) open:
  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).
	if (!file.open(QIODevice::WriteOnly | QIODevice::Truncate))
data/synthv1-0.9.18/src/synthv1_reverb.h:190:9:  [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(m_buffer, old_buffer,
data/synthv1-0.9.18/src/synthv1_tuning.cpp:94:12:  [2] (misc) open:
  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).
	if (!file.open(QIODevice::ReadOnly | QIODevice::Text))
data/synthv1-0.9.18/src/synthv1_tuning.cpp:239:12:  [2] (misc) open:
  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).
	if (!file.open(QIODevice::ReadOnly | QIODevice::Text))
data/synthv1-0.9.18/src/synthv1_jack.cpp:1067:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (::read(g_fdSigterm[1], &c, sizeof(c)) > 0) {
data/synthv1-0.9.18/src/synthv1_lv2.cpp:714:49:  [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).
		lv2_atom_forge_path(&m_forge, pszScaleFile, ::strlen(pszScaleFile) + 1);
data/synthv1-0.9.18/src/synthv1_lv2.cpp:721:50:  [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).
		lv2_atom_forge_path(&m_forge, pszKeyMapFile, ::strlen(pszKeyMapFile) + 1);

ANALYSIS SUMMARY:

Hits = 24
Lines analyzed = 25403 in approximately 0.53 seconds (48295 lines/second)
Physical Source Lines of Code (SLOC) = 17105
Hits@level = [0]  11 [1]   3 [2]  19 [3]   2 [4]   0 [5]   0
Hits@level+ = [0+]  35 [1+]  24 [2+]  21 [3+]   2 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 2.04619 [1+] 1.4031 [2+] 1.22771 [3+] 0.116925 [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.