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/tuxguitar-1.2/TuxGuitar-AudioUnit/jni/org_herac_tuxguitar_player_impl_midiport_audiounit_MidiReceiverJNI.h
Examining data/tuxguitar-1.2/TuxGuitar-AudioUnit/jni/org_herac_tuxguitar_player_impl_midiport_audiounit_MidiReceiverJNI.cpp
Examining data/tuxguitar-1.2/TuxGuitar-alsa/jni/org_herac_tuxguitar_player_impl_midiport_alsa_MidiSystem.c
Examining data/tuxguitar-1.2/TuxGuitar-alsa/jni/org_herac_tuxguitar_player_impl_midiport_alsa_MidiSystem.h
Examining data/tuxguitar-1.2/TuxGuitar-winmm/jni/org_herac_tuxguitar_player_impl_midiport_winmm_MidiSystem.h
Examining data/tuxguitar-1.2/TuxGuitar-winmm/jni/org_herac_tuxguitar_player_impl_midiport_winmm_MidiSystem.c
Examining data/tuxguitar-1.2/TuxGuitar-carbon-integration/jni/org_herac_tuxguitar_carbon_opendoc_OpenDocJNI.h
Examining data/tuxguitar-1.2/TuxGuitar-carbon-integration/jni/org_herac_tuxguitar_carbon_opendoc_OpenDocJNI.cpp
Examining data/tuxguitar-1.2/TuxGuitar-CoreAudio/jni/org_herac_tuxguitar_player_impl_midiport_coreaudio_MidiReceiverJNI.h
Examining data/tuxguitar-1.2/TuxGuitar-CoreAudio/jni/org_herac_tuxguitar_player_impl_midiport_coreaudio_MidiReceiverJNI.cpp
Examining data/tuxguitar-1.2/TuxGuitar-fluidsynth/jni/org_herac_tuxguitar_player_impl_midiport_fluidsynth_MidiSynth.h
Examining data/tuxguitar-1.2/TuxGuitar-fluidsynth/jni/org_herac_tuxguitar_player_impl_midiport_fluidsynth_MidiSynth.c
Examining data/tuxguitar-1.2/TuxGuitar-jack/jni/org_herac_tuxguitar_jack_JackClient.h
Examining data/tuxguitar-1.2/TuxGuitar-jack/jni/org_herac_tuxguitar_jack_JackClient.c
Examining data/tuxguitar-1.2/TuxGuitar-oss/jni/org_herac_tuxguitar_player_impl_midiport_oss_MidiSystem.c
Examining data/tuxguitar-1.2/TuxGuitar-oss/jni/org_herac_tuxguitar_player_impl_midiport_oss_MidiSystem.h

FINAL RESULTS:

data/tuxguitar-1.2/TuxGuitar-alsa/jni/org_herac_tuxguitar_player_impl_midiport_alsa_MidiSystem.c:20:2:  [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(&ptr, &handle, sizeof( handle ));
data/tuxguitar-1.2/TuxGuitar-fluidsynth/jni/org_herac_tuxguitar_player_impl_midiport_fluidsynth_MidiSynth.c:45:2:  [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(&ptr, &handle, sizeof( handle ));
data/tuxguitar-1.2/TuxGuitar-jack/jni/org_herac_tuxguitar_jack_JackClient.c:46:2:  [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(&ptr, &handle, sizeof( handle ));
data/tuxguitar-1.2/TuxGuitar-jack/jni/org_herac_tuxguitar_jack_JackClient.c:127:6:  [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[50];
data/tuxguitar-1.2/TuxGuitar-jack/jni/org_herac_tuxguitar_jack_JackClient.c:128:6:  [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( port_name , "Output Port %d", index );
data/tuxguitar-1.2/TuxGuitar-oss/jni/org_herac_tuxguitar_player_impl_midiport_oss_MidiSystem.c:22:2:  [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(&ptr, &handle, sizeof( handle ));
data/tuxguitar-1.2/TuxGuitar-oss/jni/org_herac_tuxguitar_player_impl_midiport_oss_MidiSystem.c:45: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).
		if (( handle->fd = open (device, O_WRONLY)) == -1)
data/tuxguitar-1.2/TuxGuitar-oss/jni/org_herac_tuxguitar_player_impl_midiport_oss_MidiSystem.c:120: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 packet[4] = {SEQ_MIDIPUTC, 0, handle->port, 1};
data/tuxguitar-1.2/TuxGuitar-oss/jni/org_herac_tuxguitar_player_impl_midiport_oss_MidiSystem.c:136: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 packet[4] = {SEQ_MIDIPUTC, 0, handle->port, 0};
data/tuxguitar-1.2/TuxGuitar-oss/jni/org_herac_tuxguitar_player_impl_midiport_oss_MidiSystem.c:152: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 packet[4] = {SEQ_MIDIPUTC, 0, handle->port, 0};
data/tuxguitar-1.2/TuxGuitar-oss/jni/org_herac_tuxguitar_player_impl_midiport_oss_MidiSystem.c:166: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 packet[4] = {SEQ_MIDIPUTC, 0, handle->port, 0};
data/tuxguitar-1.2/TuxGuitar-oss/jni/org_herac_tuxguitar_player_impl_midiport_oss_MidiSystem.c:182: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 packet[4] = {SEQ_MIDIPUTC, 0, handle->port, 0};
data/tuxguitar-1.2/TuxGuitar-winmm/jni/org_herac_tuxguitar_player_impl_midiport_winmm_MidiSystem.c:19:2:  [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(&ptr, &handle, sizeof( handle ));
data/tuxguitar-1.2/TuxGuitar-winmm/jni/org_herac_tuxguitar_player_impl_midiport_winmm_MidiSystem.c:45:67:  [1] (buffer) wcslen:
  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).
				jstring name =  (*env)->NewString( env, (jchar*)moc.szPname , wcslen( moc.szPname ) );

ANALYSIS SUMMARY:

Hits = 14
Lines analyzed = 2877 in approximately 0.27 seconds (10693 lines/second)
Physical Source Lines of Code (SLOC) = 1880
Hits@level = [0]   9 [1]   1 [2]  13 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  23 [1+]  14 [2+]  13 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 12.234 [1+] 7.44681 [2+] 6.91489 [3+]   0 [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.