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/drumkv1-0.9.18/src/drumkv1_resampler.h
Examining data/drumkv1-0.9.18/src/drumkv1_wave.cpp
Examining data/drumkv1-0.9.18/src/drumkv1_wave.h
Examining data/drumkv1-0.9.18/src/drumkv1_sample.h
Examining data/drumkv1-0.9.18/src/drumkv1_resampler.cpp
Examining data/drumkv1-0.9.18/src/drumkv1widget_palette.h
Examining data/drumkv1-0.9.18/src/drumkv1widget_sample.cpp
Examining data/drumkv1-0.9.18/src/drumkv1widget_jack.h
Examining data/drumkv1-0.9.18/src/drumkv1_lv2ui.h
Examining data/drumkv1-0.9.18/src/drumkv1_programs.cpp
Examining data/drumkv1-0.9.18/src/drumkv1widget_filt.h
Examining data/drumkv1-0.9.18/src/drumkv1widget_elements.cpp
Examining data/drumkv1-0.9.18/src/drumkv1widget_elements.h
Examining data/drumkv1-0.9.18/src/drumkv1widget_preset.h
Examining data/drumkv1-0.9.18/src/drumkv1_lv2.cpp
Examining data/drumkv1-0.9.18/src/drumkv1.h
Examining data/drumkv1-0.9.18/src/drumkv1widget_spinbox.cpp
Examining data/drumkv1-0.9.18/src/drumkv1widget_keybd.h
Examining data/drumkv1-0.9.18/src/drumkv1_config.cpp
Examining data/drumkv1-0.9.18/src/drumkv1_ui.cpp
Examining data/drumkv1-0.9.18/src/drumkv1_tuning.h
Examining data/drumkv1-0.9.18/src/drumkv1widget_control.cpp
Examining data/drumkv1-0.9.18/src/drumkv1widget_param.h
Examining data/drumkv1-0.9.18/src/drumkv1_sched.cpp
Examining data/drumkv1-0.9.18/src/drumkv1widget_sample.h
Examining data/drumkv1-0.9.18/src/drumkv1widget_palette.cpp
Examining data/drumkv1-0.9.18/src/drumkv1widget_controls.h
Examining data/drumkv1-0.9.18/src/drumkv1_jack.h
Examining data/drumkv1-0.9.18/src/drumkv1widget_controls.cpp
Examining data/drumkv1-0.9.18/src/drumkv1.cpp
Examining data/drumkv1-0.9.18/src/drumkv1_filter.h
Examining data/drumkv1-0.9.18/src/lv2/lv2_programs.h
Examining data/drumkv1-0.9.18/src/lv2/lv2_external_ui.h
Examining data/drumkv1-0.9.18/src/drumkv1_sched.h
Examining data/drumkv1-0.9.18/src/drumkv1_list.h
Examining data/drumkv1-0.9.18/src/drumkv1widget_programs.h
Examining data/drumkv1-0.9.18/src/drumkv1widget_config.h
Examining data/drumkv1-0.9.18/src/drumkv1widget_wave.h
Examining data/drumkv1-0.9.18/src/drumkv1widget_env.cpp
Examining data/drumkv1-0.9.18/src/drumkv1widget_config.cpp
Examining data/drumkv1-0.9.18/src/drumkv1_lv2ui.cpp
Examining data/drumkv1-0.9.18/src/drumkv1widget_control.h
Examining data/drumkv1-0.9.18/src/drumkv1_param.h
Examining data/drumkv1-0.9.18/src/drumkv1widget.h
Examining data/drumkv1-0.9.18/src/drumkv1widget_programs.cpp
Examining data/drumkv1-0.9.18/src/drumkv1widget_param.cpp
Examining data/drumkv1-0.9.18/src/drumkv1_controls.h
Examining data/drumkv1-0.9.18/src/drumkv1_ui.h
Examining data/drumkv1-0.9.18/src/drumkv1widget_filt.cpp
Examining data/drumkv1-0.9.18/src/drumkv1_lv2.h
Examining data/drumkv1-0.9.18/src/drumkv1_param.cpp
Examining data/drumkv1-0.9.18/src/drumkv1_nsm.cpp
Examining data/drumkv1-0.9.18/src/drumkv1_programs.h
Examining data/drumkv1-0.9.18/src/drumkv1_formant.cpp
Examining data/drumkv1-0.9.18/src/drumkv1widget_preset.cpp
Examining data/drumkv1-0.9.18/src/drumkv1_config.h
Examining data/drumkv1-0.9.18/src/drumkv1_reverb.h
Examining data/drumkv1-0.9.18/src/drumkv1_jack.cpp
Examining data/drumkv1-0.9.18/src/drumkv1_nsm.h
Examining data/drumkv1-0.9.18/src/drumkv1widget_wave.cpp
Examining data/drumkv1-0.9.18/src/drumkv1widget_status.h
Examining data/drumkv1-0.9.18/src/drumkv1widget.cpp
Examining data/drumkv1-0.9.18/src/drumkv1_tuning.cpp
Examining data/drumkv1-0.9.18/src/drumkv1widget_lv2.cpp
Examining data/drumkv1-0.9.18/src/drumkv1_sample.cpp
Examining data/drumkv1-0.9.18/src/drumkv1widget_lv2.h
Examining data/drumkv1-0.9.18/src/drumkv1_fx.h
Examining data/drumkv1-0.9.18/src/drumkv1widget_spinbox.h
Examining data/drumkv1-0.9.18/src/drumkv1_controls.cpp
Examining data/drumkv1-0.9.18/src/drumkv1_ramp.h
Examining data/drumkv1-0.9.18/src/drumkv1widget_status.cpp
Examining data/drumkv1-0.9.18/src/drumkv1widget_keybd.cpp
Examining data/drumkv1-0.9.18/src/drumkv1widget_env.h
Examining data/drumkv1-0.9.18/src/drumkv1widget_jack.cpp
Examining data/drumkv1-0.9.18/src/drumkv1_formant.h

FINAL RESULTS:

data/drumkv1-0.9.18/src/drumkv1widget_spinbox.cpp:231:19:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	return QString().sprintf("%02u:%02u:%02u.%03u", hh, mm, ss, zzz);
data/drumkv1-0.9.18/src/drumkv1_jack.cpp:739: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/drumkv1-0.9.18/src/drumkv1_jack.cpp:925: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/drumkv1-0.9.18/src/drumkv1.cpp:2208: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/drumkv1-0.9.18/src/drumkv1.cpp:2811:25:  [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_pElem->gen1_sample.open(pszSampleFile,
data/drumkv1-0.9.18/src/drumkv1_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/drumkv1-0.9.18/src/drumkv1_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/drumkv1-0.9.18/src/drumkv1_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/drumkv1-0.9.18/src/drumkv1_jack.cpp:189: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/drumkv1-0.9.18/src/drumkv1_jack.cpp:296: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 drumkv1_jack::open ( const char *client_name )
data/drumkv1-0.9.18/src/drumkv1_jack.cpp:323: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/drumkv1-0.9.18/src/drumkv1_jack.cpp:555: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/drumkv1-0.9.18/src/drumkv1_jack.cpp:929: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/drumkv1-0.9.18/src/drumkv1_jack.cpp:987: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_pDrumk->open(client_name.toUtf8().constData());
data/drumkv1-0.9.18/src/drumkv1_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/drumkv1-0.9.18/src/drumkv1_lv2.cpp:887: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/drumkv1-0.9.18/src/drumkv1_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/drumkv1-0.9.18/src/drumkv1_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/drumkv1-0.9.18/src/drumkv1_param.cpp:360: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/drumkv1-0.9.18/src/drumkv1_param.cpp:477: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/drumkv1-0.9.18/src/drumkv1_resampler.cpp:364: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(m_buff, p1, n * sizeof(float));
data/drumkv1-0.9.18/src/drumkv1_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/drumkv1-0.9.18/src/drumkv1_sample.cpp:52:22:  [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).
bool drumkv1_sample::open ( const char *filename, float freq0 )
data/drumkv1-0.9.18/src/drumkv1_sample.h:90: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).
	bool open(const char *filename, float freq0 = 1.0f);
data/drumkv1-0.9.18/src/drumkv1_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/drumkv1-0.9.18/src/drumkv1_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/drumkv1-0.9.18/src/drumkv1_jack.cpp:1087: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/drumkv1-0.9.18/src/drumkv1_lv2.cpp:907: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, pszSampleFile, ::strlen(pszSampleFile) + 1);
data/drumkv1-0.9.18/src/drumkv1_lv2.cpp:929: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/drumkv1-0.9.18/src/drumkv1_lv2.cpp:936: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 = 30
Lines analyzed = 29169 in approximately 0.60 seconds (48643 lines/second)
Physical Source Lines of Code (SLOC) = 19473
Hits@level = [0]  11 [1]   4 [2]  23 [3]   2 [4]   1 [5]   0
Hits@level+ = [0+]  41 [1+]  30 [2+]  26 [3+]   3 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 2.10548 [1+] 1.54059 [2+] 1.33518 [3+] 0.154059 [4+] 0.0513532 [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.