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/tse3-0.3.1/src/tse3/app/Choices.cpp
Examining data/tse3-0.3.1/src/tse3/app/TrackSelection.cpp
Examining data/tse3-0.3.1/src/tse3/app/PartDisplay.cpp
Examining data/tse3-0.3.1/src/tse3/app/Modified.h
Examining data/tse3-0.3.1/src/tse3/app/Record.cpp
Examining data/tse3-0.3.1/src/tse3/app/PartDisplay.h
Examining data/tse3-0.3.1/src/tse3/app/PartSelection.h
Examining data/tse3-0.3.1/src/tse3/app/Application.h
Examining data/tse3-0.3.1/src/tse3/app/TrackSelection.h
Examining data/tse3-0.3.1/src/tse3/app/Modified.cpp
Examining data/tse3-0.3.1/src/tse3/app/Application.cpp
Examining data/tse3-0.3.1/src/tse3/app/PartSelection.cpp
Examining data/tse3-0.3.1/src/tse3/app/Record.h
Examining data/tse3-0.3.1/src/tse3/app/Choices.h
Examining data/tse3-0.3.1/src/tse3/cmd/Part.cpp
Examining data/tse3-0.3.1/src/tse3/cmd/FlagTrack.h
Examining data/tse3-0.3.1/src/tse3/cmd/CommandGroup.cpp
Examining data/tse3-0.3.1/src/tse3/cmd/Part.h
Examining data/tse3-0.3.1/src/tse3/cmd/Song.h
Examining data/tse3-0.3.1/src/tse3/cmd/FlagTrack.cpp
Examining data/tse3-0.3.1/src/tse3/cmd/CommandHistory.cpp
Examining data/tse3-0.3.1/src/tse3/cmd/CommandGroup.h
Examining data/tse3-0.3.1/src/tse3/cmd/Phrase.cpp
Examining data/tse3-0.3.1/src/tse3/cmd/Track.cpp
Examining data/tse3-0.3.1/src/tse3/cmd/Command.h
Examining data/tse3-0.3.1/src/tse3/cmd/Song.cpp
Examining data/tse3-0.3.1/src/tse3/cmd/CommandHistory.h
Examining data/tse3-0.3.1/src/tse3/cmd/Track.h
Examining data/tse3-0.3.1/src/tse3/cmd/Phrase.h
Examining data/tse3-0.3.1/src/tse3/ins/Destination.h
Examining data/tse3-0.3.1/src/tse3/ins/Instrument.h
Examining data/tse3-0.3.1/src/tse3/ins/Destination.cpp
Examining data/tse3-0.3.1/src/tse3/ins/Instrument.cpp
Examining data/tse3-0.3.1/src/tse3/plt/Alsa.h
Examining data/tse3-0.3.1/src/tse3/plt/Arts.h
Examining data/tse3-0.3.1/src/tse3/plt/Factory_Unix.cpp
Examining data/tse3-0.3.1/src/tse3/plt/midiswis.h
Examining data/tse3-0.3.1/src/tse3/plt/Win32.h
Examining data/tse3-0.3.1/src/tse3/plt/Factory_Win32.cpp
Examining data/tse3-0.3.1/src/tse3/plt/RiscOS.h
Examining data/tse3-0.3.1/src/tse3/plt/Arts.cpp
Examining data/tse3-0.3.1/src/tse3/plt/Alsa-0.5.cpp
Examining data/tse3-0.3.1/src/tse3/plt/Alsa-0.9.cpp
Examining data/tse3-0.3.1/src/tse3/plt/Factory.h
Examining data/tse3-0.3.1/src/tse3/plt/Win32.cpp
Examining data/tse3-0.3.1/src/tse3/plt/RiscOS.cpp
Examining data/tse3-0.3.1/src/tse3/plt/OSS.h
Examining data/tse3-0.3.1/src/tse3/plt/OSS.cpp
Examining data/tse3-0.3.1/src/tse3/PhraseList.h
Examining data/tse3-0.3.1/src/tse3/KeySigTrack.cpp
Examining data/tse3-0.3.1/src/tse3/file/KeySigTrack.cpp
Examining data/tse3-0.3.1/src/tse3/file/Part.cpp
Examining data/tse3-0.3.1/src/tse3/file/TempoTrack.cpp
Examining data/tse3-0.3.1/src/tse3/file/PhraseList.cpp
Examining data/tse3-0.3.1/src/tse3/file/FlagTrack.cpp
Examining data/tse3-0.3.1/src/tse3/file/Write.h
Examining data/tse3-0.3.1/src/tse3/file/DisplayParams.cpp
Examining data/tse3-0.3.1/src/tse3/file/Track.cpp
Examining data/tse3-0.3.1/src/tse3/file/TimeSigTrack.cpp
Examining data/tse3-0.3.1/src/tse3/file/Write.cpp
Examining data/tse3-0.3.1/src/tse3/file/Song.cpp
Examining data/tse3-0.3.1/src/tse3/file/MidiFilter.cpp
Examining data/tse3-0.3.1/src/tse3/file/MidiParams.cpp
Examining data/tse3-0.3.1/src/tse3/file/XML.cpp
Examining data/tse3-0.3.1/src/tse3/file/XML.h
Examining data/tse3-0.3.1/src/tse3/util/MidiScheduler.cpp
Examining data/tse3-0.3.1/src/tse3/util/Phrase.h
Examining data/tse3-0.3.1/src/tse3/util/Demidify.cpp
Examining data/tse3-0.3.1/src/tse3/util/MulDiv.cpp
Examining data/tse3-0.3.1/src/tse3/util/Snap.h
Examining data/tse3-0.3.1/src/tse3/util/Song.h
Examining data/tse3-0.3.1/src/tse3/util/NoteNumber.cpp
Examining data/tse3-0.3.1/src/tse3/util/MidiScheduler.h
Examining data/tse3-0.3.1/src/tse3/util/Snap.cpp
Examining data/tse3-0.3.1/src/tse3/util/Phrase.cpp
Examining data/tse3-0.3.1/src/tse3/util/PowerQuantise.cpp
Examining data/tse3-0.3.1/src/tse3/util/Track.cpp
Examining data/tse3-0.3.1/src/tse3/util/NoteNumber.h
Examining data/tse3-0.3.1/src/tse3/util/Demidify.h
Examining data/tse3-0.3.1/src/tse3/util/PowerQuantise.h
Examining data/tse3-0.3.1/src/tse3/util/Song.cpp
Examining data/tse3-0.3.1/src/tse3/util/Track.h
Examining data/tse3-0.3.1/src/tse3/util/MulDiv.h
Examining data/tse3-0.3.1/src/tse3/MidiScheduler.cpp
Examining data/tse3-0.3.1/src/tse3/Metronome.cpp
Examining data/tse3-0.3.1/src/tse3/Part.cpp
Examining data/tse3-0.3.1/src/tse3/Phrase.h
Examining data/tse3-0.3.1/src/tse3/TempoTrack.h
Examining data/tse3-0.3.1/src/tse3/Filter.h
Examining data/tse3-0.3.1/src/tse3/TSE2MDL.h
Examining data/tse3-0.3.1/src/tse3/FlagTrack.h
Examining data/tse3-0.3.1/src/tse3/Mutex.cpp
Examining data/tse3-0.3.1/src/tse3/Panic.h
Examining data/tse3-0.3.1/src/tse3/TSE3MDL.h
Examining data/tse3-0.3.1/src/tse3/Notifier.h
Examining data/tse3-0.3.1/src/tse3/TempoTrack.cpp
Examining data/tse3-0.3.1/src/tse3/Midi.cpp
Examining data/tse3-0.3.1/src/tse3/Midi.h
Examining data/tse3-0.3.1/src/tse3/DisplayParams.h
Examining data/tse3-0.3.1/src/tse3/EventTrack.h
Examining data/tse3-0.3.1/src/tse3/PhraseEdit.cpp
Examining data/tse3-0.3.1/src/tse3/Part.h
Examining data/tse3-0.3.1/src/tse3/TSE3.h
Examining data/tse3-0.3.1/src/tse3/PhraseList.cpp
Examining data/tse3-0.3.1/src/tse3/Song.h
Examining data/tse3-0.3.1/src/tse3/MidiEcho.cpp
Examining data/tse3-0.3.1/src/tse3/Serializable.cpp
Examining data/tse3-0.3.1/src/tse3/Progress.h
Examining data/tse3-0.3.1/src/tse3/FlagTrack.cpp
Examining data/tse3-0.3.1/src/tse3/MidiScheduler.h
Examining data/tse3-0.3.1/src/tse3/test.cpp
Examining data/tse3-0.3.1/src/tse3/MidiData.h
Examining data/tse3-0.3.1/src/tse3/MidiEcho.h
Examining data/tse3-0.3.1/src/tse3/DisplayParams.cpp
Examining data/tse3-0.3.1/src/tse3/MidiFile.h
Examining data/tse3-0.3.1/src/tse3/Mixer.cpp
Examining data/tse3-0.3.1/src/tse3/Transport.cpp
Examining data/tse3-0.3.1/src/tse3/Filter.cpp
Examining data/tse3-0.3.1/src/tse3/MidiCommandFilter.h
Examining data/tse3-0.3.1/src/tse3/Playable.cpp
Examining data/tse3-0.3.1/src/tse3/MidiData.cpp
Examining data/tse3-0.3.1/src/tse3/Phrase.cpp
Examining data/tse3-0.3.1/src/tse3/Transport.h
Examining data/tse3-0.3.1/src/tse3/RepeatTrack.cpp
Examining data/tse3-0.3.1/src/tse3/Track.cpp
Examining data/tse3-0.3.1/src/tse3/listen/app/Modified.h
Examining data/tse3-0.3.1/src/tse3/listen/app/PartSelection.h
Examining data/tse3-0.3.1/src/tse3/listen/app/TrackSelection.h
Examining data/tse3-0.3.1/src/tse3/listen/app/Record.h
Examining data/tse3-0.3.1/src/tse3/listen/cmd/CommandHistory.h
Examining data/tse3-0.3.1/src/tse3/listen/ins/Destination.h
Examining data/tse3-0.3.1/src/tse3/listen/PhraseList.h
Examining data/tse3-0.3.1/src/tse3/listen/Phrase.h
Examining data/tse3-0.3.1/src/tse3/listen/TempoTrack.h
Examining data/tse3-0.3.1/src/tse3/listen/FlagTrack.h
Examining data/tse3-0.3.1/src/tse3/listen/Panic.h
Examining data/tse3-0.3.1/src/tse3/listen/DisplayParams.h
Examining data/tse3-0.3.1/src/tse3/listen/EventTrack.h
Examining data/tse3-0.3.1/src/tse3/listen/Part.h
Examining data/tse3-0.3.1/src/tse3/listen/Song.h
Examining data/tse3-0.3.1/src/tse3/listen/MidiScheduler.h
Examining data/tse3-0.3.1/src/tse3/listen/MidiData.h
Examining data/tse3-0.3.1/src/tse3/listen/MidiEcho.h
Examining data/tse3-0.3.1/src/tse3/listen/MidiFile.h
Examining data/tse3-0.3.1/src/tse3/listen/MidiCommandFilter.h
Examining data/tse3-0.3.1/src/tse3/listen/Transport.h
Examining data/tse3-0.3.1/src/tse3/listen/MidiParams.h
Examining data/tse3-0.3.1/src/tse3/listen/Mixer.h
Examining data/tse3-0.3.1/src/tse3/listen/TimeSigTrack.h
Examining data/tse3-0.3.1/src/tse3/listen/RepeatTrack.h
Examining data/tse3-0.3.1/src/tse3/listen/MidiFilter.h
Examining data/tse3-0.3.1/src/tse3/listen/Playable.h
Examining data/tse3-0.3.1/src/tse3/listen/MidiMapper.h
Examining data/tse3-0.3.1/src/tse3/listen/Track.h
Examining data/tse3-0.3.1/src/tse3/listen/PhraseEdit.h
Examining data/tse3-0.3.1/src/tse3/listen/KeySigTrack.h
Examining data/tse3-0.3.1/src/tse3/listen/Metronome.h
Examining data/tse3-0.3.1/src/tse3/Error.cpp
Examining data/tse3-0.3.1/src/tse3/Notifier.cpp
Examining data/tse3-0.3.1/src/tse3/TimeSigTrack.cpp
Examining data/tse3-0.3.1/src/tse3/FileBlockParser.cpp
Examining data/tse3-0.3.1/src/tse3/MidiCommandFilter.cpp
Examining data/tse3-0.3.1/src/tse3/Error.h
Examining data/tse3-0.3.1/src/tse3/TSE3.cpp
Examining data/tse3-0.3.1/src/tse3/MidiParams.h
Examining data/tse3-0.3.1/src/tse3/Mixer.h
Examining data/tse3-0.3.1/src/tse3/TimeSigTrack.h
Examining data/tse3-0.3.1/src/tse3/RepeatTrack.h
Examining data/tse3-0.3.1/src/tse3/MidiFilter.h
Examining data/tse3-0.3.1/src/tse3/Playable.h
Examining data/tse3-0.3.1/src/tse3/Song.cpp
Examining data/tse3-0.3.1/src/tse3/TSE3MDL.cpp
Examining data/tse3-0.3.1/src/tse3/MidiMapper.h
Examining data/tse3-0.3.1/src/tse3/Track.h
Examining data/tse3-0.3.1/src/tse3/MidiFilter.cpp
Examining data/tse3-0.3.1/src/tse3/PhraseEdit.h
Examining data/tse3-0.3.1/src/tse3/KeySigTrack.h
Examining data/tse3-0.3.1/src/tse3/Mutex.h
Examining data/tse3-0.3.1/src/tse3/MidiParams.cpp
Examining data/tse3-0.3.1/src/tse3/Metronome.h
Examining data/tse3-0.3.1/src/tse3/MidiMapper.cpp
Examining data/tse3-0.3.1/src/tse3/FileBlockParser.h
Examining data/tse3-0.3.1/src/tse3/Panic.cpp
Examining data/tse3-0.3.1/src/tse3/MidiFile.cpp
Examining data/tse3-0.3.1/src/tse3/Serializable.h
Examining data/tse3-0.3.1/src/tse3/TSE2MDL.cpp
Examining data/tse3-0.3.1/src/tse3play/main.cpp
Examining data/tse3-0.3.1/src/tse3play/tse3play.h
Examining data/tse3-0.3.1/src/tse3play/tse3play.cpp
Examining data/tse3-0.3.1/src/examples/ports/ports.cpp
Examining data/tse3-0.3.1/src/examples/scale/scale.cpp
Examining data/tse3-0.3.1/src/examples/recording/recording.cpp
Examining data/tse3-0.3.1/src/examples/midifile/midifile.cpp
Examining data/tse3-0.3.1/src/examples/contents/contents.cpp

FINAL RESULTS:

data/tse3-0.3.1/src/tse3/plt/Alsa-0.5.cpp:144:10:  [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).
    std::strcpy(port_info.group, SND_SEQ_GROUP_APPLICATION);
data/tse3-0.3.1/src/tse3/plt/Alsa-0.5.cpp:418:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        std::sprintf(tmpPortNameBuffer, "%s %d:%d",
data/tse3-0.3.1/src/tse3/plt/Alsa-0.5.cpp:446:14:  [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).
        std::strcpy(tmpGroupNameBuffer, port_info.group);
data/tse3-0.3.1/src/tse3/plt/Alsa-0.9.cpp:410:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        std::sprintf(tmpPortNameBuffer, "%s %d:%d",
data/tse3-0.3.1/src/tse3/FileBlockParser.cpp:127:17:  [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).
    std::string open;
data/tse3-0.3.1/src/tse3/FileBlockParser.cpp:128:21:  [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).
    getline(ws(in), open);
data/tse3-0.3.1/src/tse3/FileBlockParser.cpp:129:9:  [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 (open != "{") throw Error(FileFormatErr);
data/tse3-0.3.1/src/tse3/Panic.cpp:153:24:  [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 unsigned char sysex[size] = {0x7e, 0x7f, 0x09, 0x01};
data/tse3-0.3.1/src/tse3/Panic.cpp:182:24:  [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 unsigned char sysex[size] = {0x41, 0x00 /*devID*/, 0x42, 0x12,
data/tse3-0.3.1/src/tse3/Panic.cpp:227:24:  [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 unsigned char sysex[size] = {0x43, 0x10 /*+devID*/, 0x4c, 0x00,
data/tse3-0.3.1/src/tse3/TSE2MDL.cpp:214: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 buffer[21];
data/tse3-0.3.1/src/tse3/TSE2MDL.cpp:239: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 charBuffer[100]; // was SONG_STRLEN+1
data/tse3-0.3.1/src/tse3/TSE2MDL.cpp:252: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 charBuffer[100]; // was SONG_STRLEN+1
data/tse3-0.3.1/src/tse3/TSE2MDL.cpp:265: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 charBuffer[100]; // was SONG_STRLEN+1
data/tse3-0.3.1/src/tse3/TSE2MDL.cpp:278: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 charBuffer[100]; // was SONG_STRLEN+1
data/tse3-0.3.1/src/tse3/TSE2MDL.cpp:351: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 charBuffer[100]; // was TRACK_STRLEN+1
data/tse3-0.3.1/src/tse3/TSE2MDL.cpp:397: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       buffer[100]; // was PHRASE_STRLEN+1
data/tse3-0.3.1/src/tse3/TSE2MDL.cpp:448: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 buffer[100]; // was PHRASE_STRLEN+1
data/tse3-0.3.1/src/tse3/TSE3MDL.cpp:129:17:  [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).
    std::string open;
data/tse3-0.3.1/src/tse3/TSE3MDL.cpp:130:21:  [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).
    getline(ws(in), open);
data/tse3-0.3.1/src/tse3/TSE3MDL.cpp:131:9:  [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 (open != "{") throw Error(FileFormatErr);
data/tse3-0.3.1/src/tse3/app/Choices.cpp:214:15:  [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 *days[7] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri" };
data/tse3-0.3.1/src/tse3/file/XML.cpp:319:17:  [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).
    std::string open;
data/tse3-0.3.1/src/tse3/file/XML.cpp:320:21:  [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).
    getline(ws(in), open);
data/tse3-0.3.1/src/tse3/plt/Alsa-0.5.cpp:48: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 tmpPortNameBuffer[64 + 20]; // + 20 because I add " client:port"
data/tse3-0.3.1/src/tse3/plt/Alsa-0.5.cpp:49: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 tmpGroupNameBuffer[64];
data/tse3-0.3.1/src/tse3/plt/Alsa-0.5.cpp:143:10:  [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.
    std::strcpy(port_info.name,  "TSE3");
data/tse3-0.3.1/src/tse3/plt/Alsa-0.9.cpp:48: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 tmpPortNameBuffer[64 + 20]; // + 20 because I add " client:port"
data/tse3-0.3.1/src/tse3/plt/OSS.cpp:215:26:  [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 _programChange[16];
data/tse3-0.3.1/src/tse3/plt/OSS.cpp:216:26:  [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 _pitchBendLSB[16];
data/tse3-0.3.1/src/tse3/plt/OSS.cpp:217:26:  [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 _pitchBendMSB[16];
data/tse3-0.3.1/src/tse3/plt/OSS.cpp:218:26:  [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 _channelPressure[16];
data/tse3-0.3.1/src/tse3/plt/OSS.cpp:591:17:  [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).
            f = fopen(file.c_str(), "rb");
data/tse3-0.3.1/src/tse3/plt/OSS.cpp:607: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.
        char            magic[12];
data/tse3-0.3.1/src/tse3/plt/OSS.cpp:608: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.
        char            version[10];
data/tse3-0.3.1/src/tse3/plt/OSS.cpp:609: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.
        char            description[60];
data/tse3-0.3.1/src/tse3/plt/OSS.cpp:619: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.
        char            name[7];
data/tse3-0.3.1/src/tse3/plt/OSS.cpp:631:18:  [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   envelope_rate[6];
data/tse3-0.3.1/src/tse3/plt/OSS.cpp:632:18:  [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   envelope_offset[6];
data/tse3-0.3.1/src/tse3/plt/OSS.cpp:671: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 GUSDevice_PatchNames[256][9] =
data/tse3-0.3.1/src/tse3/plt/OSS.cpp:1248: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 tmp[60];
data/tse3-0.3.1/src/tse3/plt/OSS.cpp:1701:14:  [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 tmp[256];
data/tse3-0.3.1/src/tse3/plt/OSS.cpp:1712: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((char *) &header, tmp, sizeof(header));
data/tse3-0.3.1/src/tse3/plt/OSS.cpp:1743: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((char *) &sample, tmp, sizeof(sample));
data/tse3-0.3.1/src/tse3/plt/OSS.cpp:1755: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(sample.envelope_rate,   &tmp[37], 6);
data/tse3-0.3.1/src/tse3/plt/OSS.cpp:1756: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(sample.envelope_offset, &tmp[43], 6);
data/tse3-0.3.1/src/tse3/plt/OSS.cpp:1789: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(patch->env_rate,   sample.envelope_rate,   6);
data/tse3-0.3.1/src/tse3/plt/OSS.cpp:1790: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(patch->env_offset, sample.envelope_offset, 6);
data/tse3-0.3.1/src/tse3/plt/OSS.cpp:1984:13:  [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).
    seqfd = open("/dev/sequencer", O_RDWR|O_NONBLOCK);
data/tse3-0.3.1/src/tse3/plt/OSS.cpp:2373:21:  [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 unsigned char    inputBuffer[inputBufferSize]; // OSS input buffer
data/tse3-0.3.1/src/tse3play/tse3play.cpp:711:16:  [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).
    int from = atoi(argv[argpos+1]);
data/tse3-0.3.1/src/tse3play/tse3play.cpp:712:16:  [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).
    int to   = atoi(argv[argpos+2]);
data/tse3-0.3.1/src/tse3play/tse3play.cpp:802:18:  [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).
    startClock = atoi(argv[argpos+1]);
data/tse3-0.3.1/src/tse3play/tse3play.cpp:809:17:  [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).
    soloTrack = atoi(argv[argpos+1]);
data/tse3-0.3.1/src/tse3play/tse3play.cpp:816:20:  [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).
    usleepPeriod = atoi(argv[argpos+1]);
data/tse3-0.3.1/src/tse3play/tse3play.cpp:837:19:  [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).
    int trackNo = atoi(argv[argpos+1]);
data/tse3-0.3.1/src/tse3play/tse3play.cpp:870:12:  [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).
    port = atoi(argv[argpos+1]);
data/tse3-0.3.1/src/tse3/MidiFile.cpp:470:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    in.read(reinterpret_cast<char*>(file), fileSize);
data/tse3-0.3.1/src/tse3/MidiFile.cpp:1203: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).
        writeVariable(out, std::strlen(TSE3MESSAGE)+1); // len
data/tse3-0.3.1/src/tse3/TSE2MDL.cpp:218:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    in.read(buffer, 8);
data/tse3-0.3.1/src/tse3/TSE2MDL.cpp:222:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    in.read(buffer, 20); // creator credit
data/tse3-0.3.1/src/tse3/plt/Alsa-0.5.cpp:205:14:  [1] (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 character.
        std::strcpy(ci.name,  "");
data/tse3-0.3.1/src/tse3/plt/Alsa-0.5.cpp:206:14:  [1] (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 character.
        std::strcpy(ci.group, "");
data/tse3-0.3.1/src/tse3/plt/Alsa-0.5.cpp:218:22:  [1] (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 character.
                std::strcpy(pi.name,  "");
data/tse3-0.3.1/src/tse3/plt/Alsa-0.5.cpp:219:22:  [1] (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 character.
                std::strcpy(pi.group, "");
data/tse3-0.3.1/src/tse3/plt/OSS.cpp:2384:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int out = read(seqfd, &inputBuffer, inputBufferSize);
data/tse3-0.3.1/src/tse3play/tse3play.cpp:564:21:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
                    usleep(usleepPeriod);

ANALYSIS SUMMARY:

Hits = 67
Lines analyzed = 44596 in approximately 0.98 seconds (45483 lines/second)
Physical Source Lines of Code (SLOC) = 22944
Hits@level = [0]   5 [1]  10 [2]  53 [3]   0 [4]   4 [5]   0
Hits@level+ = [0+]  72 [1+]  67 [2+]  57 [3+]   4 [4+]   4 [5+]   0
Hits/KSLOC@level+ = [0+] 3.13808 [1+] 2.92015 [2+] 2.48431 [3+] 0.174338 [4+] 0.174338 [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.