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/yoshimi-1.7.3~dfsg0/Util/switch_time.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/CLI/CmdInterface.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/CLI/CmdInterface.h
Examining data/yoshimi-1.7.3~dfsg0/src/CLI/CmdInterpreter.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/CLI/CmdInterpreter.h
Examining data/yoshimi-1.7.3~dfsg0/src/CLI/Parser.h
Examining data/yoshimi-1.7.3~dfsg0/src/DSP/AnalogFilter.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/DSP/AnalogFilter.h
Examining data/yoshimi-1.7.3~dfsg0/src/DSP/FFTwrapper.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/DSP/FFTwrapper.h
Examining data/yoshimi-1.7.3~dfsg0/src/DSP/Filter.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/DSP/Filter.h
Examining data/yoshimi-1.7.3~dfsg0/src/DSP/Filter_.h
Examining data/yoshimi-1.7.3~dfsg0/src/DSP/FormantFilter.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/DSP/FormantFilter.h
Examining data/yoshimi-1.7.3~dfsg0/src/DSP/SVFilter.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/DSP/SVFilter.h
Examining data/yoshimi-1.7.3~dfsg0/src/DSP/Unison.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/DSP/Unison.h
Examining data/yoshimi-1.7.3~dfsg0/src/Effects/Alienwah.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Effects/Alienwah.h
Examining data/yoshimi-1.7.3~dfsg0/src/Effects/Chorus.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Effects/Chorus.h
Examining data/yoshimi-1.7.3~dfsg0/src/Effects/Distorsion.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Effects/Distorsion.h
Examining data/yoshimi-1.7.3~dfsg0/src/Effects/DynamicFilter.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Effects/DynamicFilter.h
Examining data/yoshimi-1.7.3~dfsg0/src/Effects/EQ.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Effects/EQ.h
Examining data/yoshimi-1.7.3~dfsg0/src/Effects/Echo.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Effects/Echo.h
Examining data/yoshimi-1.7.3~dfsg0/src/Effects/Effect.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Effects/Effect.h
Examining data/yoshimi-1.7.3~dfsg0/src/Effects/EffectLFO.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Effects/EffectLFO.h
Examining data/yoshimi-1.7.3~dfsg0/src/Effects/EffectMgr.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Effects/EffectMgr.h
Examining data/yoshimi-1.7.3~dfsg0/src/Effects/Phaser.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Effects/Phaser.h
Examining data/yoshimi-1.7.3~dfsg0/src/Effects/Reverb.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Effects/Reverb.h
Examining data/yoshimi-1.7.3~dfsg0/src/Interface/Data2Text.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Interface/Data2Text.h
Examining data/yoshimi-1.7.3~dfsg0/src/Interface/InterChange.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Interface/InterChange.h
Examining data/yoshimi-1.7.3~dfsg0/src/Interface/MidiDecode.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Interface/MidiDecode.h
Examining data/yoshimi-1.7.3~dfsg0/src/Interface/MidiLearn.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Interface/MidiLearn.h
Examining data/yoshimi-1.7.3~dfsg0/src/Interface/RingBuffer.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Interface/RingBuffer.h
Examining data/yoshimi-1.7.3~dfsg0/src/Interface/TextLists.h
Examining data/yoshimi-1.7.3~dfsg0/src/LV2_Plugin/YoshimiLV2Plugin.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/LV2_Plugin/YoshimiLV2Plugin.h
Examining data/yoshimi-1.7.3~dfsg0/src/LV2_Plugin/lv2extprg.h
Examining data/yoshimi-1.7.3~dfsg0/src/LV2_Plugin/lv2extui.h
Examining data/yoshimi-1.7.3~dfsg0/src/Misc/Bank.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Misc/Bank.h
Examining data/yoshimi-1.7.3~dfsg0/src/Misc/CliFuncs.h
Examining data/yoshimi-1.7.3~dfsg0/src/Misc/ConfBuild.h
Examining data/yoshimi-1.7.3~dfsg0/src/Misc/Config.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Misc/Config.h
Examining data/yoshimi-1.7.3~dfsg0/src/Misc/FileMgrFuncs.h
Examining data/yoshimi-1.7.3~dfsg0/src/Misc/FormatFuncs.h
Examining data/yoshimi-1.7.3~dfsg0/src/Misc/Microtonal.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Misc/Microtonal.h
Examining data/yoshimi-1.7.3~dfsg0/src/Misc/NumericFuncs.h
Examining data/yoshimi-1.7.3~dfsg0/src/Misc/Part.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Misc/Part.h
Examining data/yoshimi-1.7.3~dfsg0/src/Misc/RandomGen.h
Examining data/yoshimi-1.7.3~dfsg0/src/Misc/Splash.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Misc/Splash.h
Examining data/yoshimi-1.7.3~dfsg0/src/Misc/SynthEngine.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Misc/SynthEngine.h
Examining data/yoshimi-1.7.3~dfsg0/src/Misc/SynthHelper.h
Examining data/yoshimi-1.7.3~dfsg0/src/Misc/TextMsgBuffer.h
Examining data/yoshimi-1.7.3~dfsg0/src/Misc/WavFile.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Misc/WavFile.h
Examining data/yoshimi-1.7.3~dfsg0/src/Misc/WaveShapeSamples.h
Examining data/yoshimi-1.7.3~dfsg0/src/Misc/XMLwrapper.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Misc/XMLwrapper.h
Examining data/yoshimi-1.7.3~dfsg0/src/MusicIO/AlsaEngine.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/MusicIO/AlsaEngine.h
Examining data/yoshimi-1.7.3~dfsg0/src/MusicIO/JackEngine.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/MusicIO/JackEngine.h
Examining data/yoshimi-1.7.3~dfsg0/src/MusicIO/MusicClient.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/MusicIO/MusicClient.h
Examining data/yoshimi-1.7.3~dfsg0/src/MusicIO/MusicIO.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/MusicIO/MusicIO.h
Examining data/yoshimi-1.7.3~dfsg0/src/Params/ADnoteParameters.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Params/ADnoteParameters.h
Examining data/yoshimi-1.7.3~dfsg0/src/Params/Controller.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Params/Controller.h
Examining data/yoshimi-1.7.3~dfsg0/src/Params/EnvelopeParams.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Params/EnvelopeParams.h
Examining data/yoshimi-1.7.3~dfsg0/src/Params/FilterParams.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Params/FilterParams.h
Examining data/yoshimi-1.7.3~dfsg0/src/Params/LFOParams.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Params/LFOParams.h
Examining data/yoshimi-1.7.3~dfsg0/src/Params/OscilParameters.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Params/OscilParameters.h
Examining data/yoshimi-1.7.3~dfsg0/src/Params/PADnoteParameters.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Params/PADnoteParameters.h
Examining data/yoshimi-1.7.3~dfsg0/src/Params/Presets.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Params/Presets.h
Examining data/yoshimi-1.7.3~dfsg0/src/Params/PresetsStore.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Params/PresetsStore.h
Examining data/yoshimi-1.7.3~dfsg0/src/Params/SUBnoteParameters.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Params/SUBnoteParameters.h
Examining data/yoshimi-1.7.3~dfsg0/src/Params/UnifiedPresets.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Params/UnifiedPresets.h
Examining data/yoshimi-1.7.3~dfsg0/src/Synth/ADnote.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Synth/ADnote.h
Examining data/yoshimi-1.7.3~dfsg0/src/Synth/Envelope.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Synth/Envelope.h
Examining data/yoshimi-1.7.3~dfsg0/src/Synth/LFO.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Synth/LFO.h
Examining data/yoshimi-1.7.3~dfsg0/src/Synth/OscilGen.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Synth/OscilGen.h
Examining data/yoshimi-1.7.3~dfsg0/src/Synth/PADnote.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Synth/PADnote.h
Examining data/yoshimi-1.7.3~dfsg0/src/Synth/Resonance.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Synth/Resonance.h
Examining data/yoshimi-1.7.3~dfsg0/src/Synth/SUBnote.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/Synth/SUBnote.h
Examining data/yoshimi-1.7.3~dfsg0/src/UI/DynamicTooltip.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/UI/DynamicTooltip.h
Examining data/yoshimi-1.7.3~dfsg0/src/UI/MiscGui.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/UI/MiscGui.h
Examining data/yoshimi-1.7.3~dfsg0/src/UI/WidgetMWSlider.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/UI/WidgetMWSlider.h
Examining data/yoshimi-1.7.3~dfsg0/src/UI/WidgetPDial.cpp
Examining data/yoshimi-1.7.3~dfsg0/src/UI/WidgetPDial.h
Examining data/yoshimi-1.7.3~dfsg0/src/globals.h
Examining data/yoshimi-1.7.3~dfsg0/src/main.cpp

FINAL RESULTS:

data/yoshimi-1.7.3~dfsg0/src/Interface/InterChange.cpp:902:28:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                FILE *fp = popen(command.c_str(), "r");
data/yoshimi-1.7.3~dfsg0/src/Misc/FileMgrFuncs.h:136:16:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    FILE *fp = popen(command.c_str(), "r");
data/yoshimi-1.7.3~dfsg0/src/Misc/Microtonal.cpp:74:13:  [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(line, found.c_str());
data/yoshimi-1.7.3~dfsg0/src/Misc/SynthEngine.cpp:1108:9:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        system(cmd.c_str());
data/yoshimi-1.7.3~dfsg0/src/Params/PADnoteParameters.cpp:712:9:  [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(buffer, type.c_str());
data/yoshimi-1.7.3~dfsg0/src/Params/PADnoteParameters.cpp:719:9:  [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(buffer + 8, temp.c_str());
data/yoshimi-1.7.3~dfsg0/src/Params/PADnoteParameters.cpp:737:9:  [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(buffer + 36, temp.c_str());
data/yoshimi-1.7.3~dfsg0/src/Params/Presets.cpp:44:5:  [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(type, type_);
data/yoshimi-1.7.3~dfsg0/src/Params/Presets.cpp:56:5:  [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(type, this->type);
data/yoshimi-1.7.3~dfsg0/src/Params/Presets.cpp:85:5:  [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(type, this->type);
data/yoshimi-1.7.3~dfsg0/src/Params/Presets.cpp:156:5:  [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(type, this->type);
data/yoshimi-1.7.3~dfsg0/src/Params/Presets.cpp:173:5:  [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(type, this->type);
data/yoshimi-1.7.3~dfsg0/src/main.cpp:412:16:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    FILE *fp = popen(command.c_str(), "r");
data/yoshimi-1.7.3~dfsg0/src/Misc/Config.cpp:316:29:  [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.
    string homedir = string(getenv("HOME"));
data/yoshimi-1.7.3~dfsg0/src/main.cpp:435:24:  [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.
    std::string Home = getenv("HOME");
data/yoshimi-1.7.3~dfsg0/src/DSP/AnalogFilter.cpp:457: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(tmpismp, smp, synth->sent_bufferbytes);
data/yoshimi-1.7.3~dfsg0/src/DSP/FFTwrapper.cpp:74: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(data1, smps, fftsize * sizeof(float));
data/yoshimi-1.7.3~dfsg0/src/DSP/FFTwrapper.cpp:76: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(freqs->c, data1, half_fftsize * sizeof(float));
data/yoshimi-1.7.3~dfsg0/src/DSP/FFTwrapper.cpp:86: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(data2, freqs->c, half_fftsize * sizeof(float));
data/yoshimi-1.7.3~dfsg0/src/DSP/FFTwrapper.cpp:91: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(smps, data2, fftsize * sizeof(float));
data/yoshimi-1.7.3~dfsg0/src/DSP/FormantFilter.cpp:249: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(inbuffer, smp, synth->sent_bufferbytes);
data/yoshimi-1.7.3~dfsg0/src/DSP/SVFilter.cpp:194: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(tmpismp, smp, synth->sent_bufferbytes);
data/yoshimi-1.7.3~dfsg0/src/Effects/Alienwah.cpp:34:17:  [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 presets[NUM_PRESETS][PRESET_SIZE] = {
data/yoshimi-1.7.3~dfsg0/src/Effects/Chorus.cpp:34:17:  [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 presets[NUM_PRESETS][PRESET_SIZE] = {
data/yoshimi-1.7.3~dfsg0/src/Effects/Distorsion.cpp:158: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(efxoutr, efxoutl, synth->sent_bufferbytes);
data/yoshimi-1.7.3~dfsg0/src/Effects/DynamicFilter.cpp:32: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.
static const char presets[NUM_PRESETS][PRESET_SIZE] = {
data/yoshimi-1.7.3~dfsg0/src/Effects/DynamicFilter.cpp:90: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(efxoutl, smpsl, synth->sent_bufferbytes);
data/yoshimi-1.7.3~dfsg0/src/Effects/DynamicFilter.cpp:91: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(efxoutr, smpsr, synth->sent_bufferbytes);
data/yoshimi-1.7.3~dfsg0/src/Effects/EQ.cpp:71: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(efxoutl, smpsl, synth->sent_bufferbytes);
data/yoshimi-1.7.3~dfsg0/src/Effects/EQ.cpp:72: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(efxoutr, smpsr, synth->sent_bufferbytes);
data/yoshimi-1.7.3~dfsg0/src/Effects/EQ.cpp:135: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 presets[NUM_PRESETS][PRESET_SIZE] = {
data/yoshimi-1.7.3~dfsg0/src/Effects/Echo.cpp:33:17:  [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 presets[NUM_PRESETS][PRESET_SIZE] = {
data/yoshimi-1.7.3~dfsg0/src/Effects/EffectMgr.cpp:199: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(smpsl, efxoutl, synth->sent_bufferbytes);
data/yoshimi-1.7.3~dfsg0/src/Effects/EffectMgr.cpp:200: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(smpsr, efxoutr, synth->sent_bufferbytes);
data/yoshimi-1.7.3~dfsg0/src/Effects/Phaser.cpp:45: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 presets[NUM_PRESETS][PRESET_SIZE] = {
data/yoshimi-1.7.3~dfsg0/src/Effects/Reverb.cpp:39:17:  [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 presets[NUM_PRESETS][PRESET_SIZE] = {
data/yoshimi-1.7.3~dfsg0/src/Interface/InterChange.cpp:1548: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(tryData.bytes, getData->bytes, sizeof(tryData));
data/yoshimi-1.7.3~dfsg0/src/Interface/MidiLearn.cpp:76: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(learnTransferBlock.bytes, getData->bytes, sizeof(learnTransferBlock));
data/yoshimi-1.7.3~dfsg0/src/Interface/RingBuffer.cpp:60: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((buffer + write), writeData, blockSize);
data/yoshimi-1.7.3~dfsg0/src/Interface/RingBuffer.cpp:73: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(readData, (buffer + read), blockSize);
data/yoshimi-1.7.3~dfsg0/src/LV2_Plugin/YoshimiLV2Plugin.h:70:8:  [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 data[4]; // all events of interest are <= 4bytes
data/yoshimi-1.7.3~dfsg0/src/Misc/Bank.cpp:214:23:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if (isRegularFile(tmpfile))
data/yoshimi-1.7.3~dfsg0/src/Misc/Bank.cpp:215:26:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        chk = deleteFile(tmpfile);
data/yoshimi-1.7.3~dfsg0/src/Misc/Bank.cpp:217:28:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    tmpfile = setExtension(tmpfile, EXTEN::zynInst);
data/yoshimi-1.7.3~dfsg0/src/Misc/Bank.cpp:218:23:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if (isRegularFile(tmpfile))
data/yoshimi-1.7.3~dfsg0/src/Misc/Bank.cpp:219:27:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        chk2 = deleteFile(tmpfile);
data/yoshimi-1.7.3~dfsg0/src/Misc/Config.h:197:22:  [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 Xaxis[NUM_MIDI_CHANNELS];
data/yoshimi-1.7.3~dfsg0/src/Misc/Config.h:198:22:  [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 Yaxis[NUM_MIDI_CHANNELS];
data/yoshimi-1.7.3~dfsg0/src/Misc/Config.h:199:22:  [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 Xfeatures[NUM_MIDI_CHANNELS];
data/yoshimi-1.7.3~dfsg0/src/Misc/Config.h:200:22:  [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 Yfeatures[NUM_MIDI_CHANNELS];
data/yoshimi-1.7.3~dfsg0/src/Misc/Config.h:201:22:  [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 Xcc2[NUM_MIDI_CHANNELS];
data/yoshimi-1.7.3~dfsg0/src/Misc/Config.h:202:22:  [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 Ycc2[NUM_MIDI_CHANNELS];
data/yoshimi-1.7.3~dfsg0/src/Misc/Config.h:203:22:  [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 Xcc4[NUM_MIDI_CHANNELS];
data/yoshimi-1.7.3~dfsg0/src/Misc/Config.h:204:22:  [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 Ycc4[NUM_MIDI_CHANNELS];
data/yoshimi-1.7.3~dfsg0/src/Misc/Config.h:205:22:  [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 Xcc8[NUM_MIDI_CHANNELS];
data/yoshimi-1.7.3~dfsg0/src/Misc/Config.h:206:22:  [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 Ycc8[NUM_MIDI_CHANNELS];
data/yoshimi-1.7.3~dfsg0/src/Misc/FileMgrFuncs.h:139: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 line[1024];
data/yoshimi-1.7.3~dfsg0/src/Misc/FileMgrFuncs.h:336: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 options[10];
data/yoshimi-1.7.3~dfsg0/src/Misc/FileMgrFuncs.h:352: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).
    int writefile = open(filename.c_str(), O_WRONLY | O_CREAT | O_TRUNC,
data/yoshimi-1.7.3~dfsg0/src/Misc/FileMgrFuncs.h:367:23:  [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).
    FILE *writefile = fopen(filename.c_str(), "w");
data/yoshimi-1.7.3~dfsg0/src/Misc/FileMgrFuncs.h:388: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 fetchBuf[4097];
data/yoshimi-1.7.3~dfsg0/src/Misc/FileMgrFuncs.h:415:17:  [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, readStream.str().c_str(), total_bytes);
data/yoshimi-1.7.3~dfsg0/src/Misc/FileMgrFuncs.h:432:22:  [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).
    FILE *readfile = fopen(filename.c_str(), "r");
data/yoshimi-1.7.3~dfsg0/src/Misc/FileMgrFuncs.h:437: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 line [1024];
data/yoshimi-1.7.3~dfsg0/src/Misc/FileMgrFuncs.h:453:10:  [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).
    file.open(filename, std::ios::out);
data/yoshimi-1.7.3~dfsg0/src/Misc/Microtonal.cpp:491: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[BUFFSIZ];
data/yoshimi-1.7.3~dfsg0/src/Misc/Microtonal.cpp:545: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[BUFFSIZ];
data/yoshimi-1.7.3~dfsg0/src/Misc/Part.cpp:1240: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(partoutl, partfxinputl[NUM_PART_EFX], synth->sent_bufferbytes);
data/yoshimi-1.7.3~dfsg0/src/Misc/Part.cpp:1241: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(partoutr, partfxinputr[NUM_PART_EFX], synth->sent_bufferbytes);
data/yoshimi-1.7.3~dfsg0/src/Misc/Part.h:151: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 Pefxroute[NUM_PART_EFX]; // how the effect's output is
data/yoshimi-1.7.3~dfsg0/src/Misc/SynthEngine.cpp:1977: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 partLocal[NUM_MIDI_PARTS];
data/yoshimi-1.7.3~dfsg0/src/Misc/SynthEngine.cpp:2206:13:  [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(&VUcopy, &VUpeak, sizeof(VUpeak));
data/yoshimi-1.7.3~dfsg0/src/Misc/SynthEngine.h:204: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 Psysefxvol[NUM_SYS_EFX][NUM_MIDI_PARTS];
data/yoshimi-1.7.3~dfsg0/src/Misc/SynthEngine.h:205: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 Psysefxsend[NUM_SYS_EFX][NUM_SYS_EFX];
data/yoshimi-1.7.3~dfsg0/src/Misc/SynthEngine.h:240:13:  [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 bytes [sizeof(values)];
data/yoshimi-1.7.3~dfsg0/src/Misc/XMLwrapper.cpp:420: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[11];
data/yoshimi-1.7.3~dfsg0/src/Misc/XMLwrapper.cpp:422:5:  [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(buf, "0x%8X", convert.out);
data/yoshimi-1.7.3~dfsg0/src/Misc/XMLwrapper.h:162: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 tabs[STACKSIZE + 2];
data/yoshimi-1.7.3~dfsg0/src/MusicIO/AlsaEngine.cpp:270: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 sUniqueId [256];
data/yoshimi-1.7.3~dfsg0/src/MusicIO/JackEngine.cpp:88: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 sUniqueId [256];
data/yoshimi-1.7.3~dfsg0/src/MusicIO/JackEngine.cpp:458:21:  [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(lpoint, zynLeft[port], framesize);
data/yoshimi-1.7.3~dfsg0/src/MusicIO/JackEngine.cpp:459:21:  [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(rpoint, zynRight[port], framesize);
data/yoshimi-1.7.3~dfsg0/src/MusicIO/JackEngine.cpp:472: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(Lpoint, zynLeft[NUM_MIDI_PARTS], framesize);
data/yoshimi-1.7.3~dfsg0/src/MusicIO/JackEngine.cpp:473: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(Rpoint, zynRight[NUM_MIDI_PARTS], framesize);
data/yoshimi-1.7.3~dfsg0/src/Params/EnvelopeParams.h:60: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 Penvdt[MAX_ENVELOPE_POINTS];
data/yoshimi-1.7.3~dfsg0/src/Params/EnvelopeParams.h:61: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 Penvval[MAX_ENVELOPE_POINTS];
data/yoshimi-1.7.3~dfsg0/src/Params/OscilParameters.cpp:48: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(basefuncFFTfreqs.c, src->c, samples * sizeof(float));
data/yoshimi-1.7.3~dfsg0/src/Params/OscilParameters.cpp:49: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(basefuncFFTfreqs.s, src->s, samples * sizeof(float));
data/yoshimi-1.7.3~dfsg0/src/Params/OscilParameters.h:52: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 Phmag[MAX_AD_HARMONICS], Phphase[MAX_AD_HARMONICS];
data/yoshimi-1.7.3~dfsg0/src/Params/PADnoteParameters.cpp:704: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 tmpstr[20];
data/yoshimi-1.7.3~dfsg0/src/Params/PADnoteParameters.cpp:721: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(buffer + 16, &block, 4);
data/yoshimi-1.7.3~dfsg0/src/Params/PADnoteParameters.cpp:723: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(buffer + 20, &sBlock, 2);
data/yoshimi-1.7.3~dfsg0/src/Params/PADnoteParameters.cpp:725: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(buffer + 22, &sBlock, 2);
data/yoshimi-1.7.3~dfsg0/src/Params/PADnoteParameters.cpp:727: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(buffer + 24, &block, 4);
data/yoshimi-1.7.3~dfsg0/src/Params/PADnoteParameters.cpp:730: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(buffer + 28, &block, 4);
data/yoshimi-1.7.3~dfsg0/src/Params/PADnoteParameters.cpp:733: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(buffer + 32, &sBlock, 2);
data/yoshimi-1.7.3~dfsg0/src/Params/PADnoteParameters.cpp:735: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(buffer + 34, &sBlock, 2);
data/yoshimi-1.7.3~dfsg0/src/Params/PADnoteParameters.cpp:739: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(buffer + 40, &block, 4);
data/yoshimi-1.7.3~dfsg0/src/Params/Presets.cpp:55: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 type[MAX_PRESETTYPE_SIZE];
data/yoshimi-1.7.3~dfsg0/src/Params/Presets.cpp:62:13:  [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(type, "Plfo");
data/yoshimi-1.7.3~dfsg0/src/Params/Presets.cpp:84: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 type[MAX_PRESETTYPE_SIZE];
data/yoshimi-1.7.3~dfsg0/src/Params/Presets.cpp:91:13:  [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(type, "Plfo");
data/yoshimi-1.7.3~dfsg0/src/Params/Presets.cpp:155: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 type[MAX_PRESETTYPE_SIZE];
data/yoshimi-1.7.3~dfsg0/src/Params/Presets.cpp:172: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 type[MAX_PRESETTYPE_SIZE];
data/yoshimi-1.7.3~dfsg0/src/Params/Presets.h:49: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 type[MAX_PRESETTYPE_SIZE];
data/yoshimi-1.7.3~dfsg0/src/Params/SUBnoteParameters.h:106: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 PfilterChanged[MAX_SUB_HARMONICS]; // 0 = no, 6 = magnitude, 7 = bandwidth
data/yoshimi-1.7.3~dfsg0/src/Params/SUBnoteParameters.h:108: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 Phmag[MAX_SUB_HARMONICS];   // Magnitudes
data/yoshimi-1.7.3~dfsg0/src/Params/SUBnoteParameters.h:110: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 Phrelbw[MAX_SUB_HARMONICS]; // Relative BandWidth ("64"=1.0)
data/yoshimi-1.7.3~dfsg0/src/Synth/ADnote.cpp:219:17:  [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(vpar.OscilSmp, oldvpar.OscilSmp, size * sizeof(float));
data/yoshimi-1.7.3~dfsg0/src/Synth/ADnote.cpp:225:17:  [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(vpar.FMSmp, oldvpar.FMSmp, size * sizeof(float));
data/yoshimi-1.7.3~dfsg0/src/Synth/ADnote.cpp:274:13:  [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(vpar.VoiceOut, oldvpar.VoiceOut, synth->bufferbytes);
data/yoshimi-1.7.3~dfsg0/src/Synth/ADnote.cpp:281: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(oscfreqhi[i], orig.oscfreqhi[i], unison * sizeof(int));
data/yoshimi-1.7.3~dfsg0/src/Synth/ADnote.cpp:284: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(oscfreqlo[i], orig.oscfreqlo[i], unison * sizeof(float));
data/yoshimi-1.7.3~dfsg0/src/Synth/ADnote.cpp:287: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(oscfreqhiFM[i], orig.oscfreqhiFM[i], unison * sizeof(unsigned int));
data/yoshimi-1.7.3~dfsg0/src/Synth/ADnote.cpp:290: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(oscfreqloFM[i], orig.oscfreqloFM[i], unison * sizeof(float));
data/yoshimi-1.7.3~dfsg0/src/Synth/ADnote.cpp:293: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(oscposhi[i], orig.oscposhi[i], unison * sizeof(int));
data/yoshimi-1.7.3~dfsg0/src/Synth/ADnote.cpp:296: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(oscposlo[i], orig.oscposlo[i], unison * sizeof(float));
data/yoshimi-1.7.3~dfsg0/src/Synth/ADnote.cpp:299: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(oscposhiFM[i], orig.oscposhiFM[i], unison * sizeof(unsigned int));
data/yoshimi-1.7.3~dfsg0/src/Synth/ADnote.cpp:302: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(oscposloFM[i], orig.oscposloFM[i], unison * sizeof(float));
data/yoshimi-1.7.3~dfsg0/src/Synth/ADnote.cpp:306: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(unison_base_freq_rap[i], orig.unison_base_freq_rap[i],
data/yoshimi-1.7.3~dfsg0/src/Synth/ADnote.cpp:310: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(unison_freq_rap[i], orig.unison_freq_rap[i],
data/yoshimi-1.7.3~dfsg0/src/Synth/ADnote.cpp:314: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(unison_invert_phase[i], orig.unison_invert_phase[i],
data/yoshimi-1.7.3~dfsg0/src/Synth/ADnote.cpp:320: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(unison_vibratto[i].step,
data/yoshimi-1.7.3~dfsg0/src/Synth/ADnote.cpp:324: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(unison_vibratto[i].position,
data/yoshimi-1.7.3~dfsg0/src/Synth/ADnote.cpp:329: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(FMoldsmp[i], orig.unison_vibratto[i].position,
data/yoshimi-1.7.3~dfsg0/src/Synth/ADnote.cpp:337:17:  [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(FMFMoldPhase[i], orig.FMFMoldPhase[i],
data/yoshimi-1.7.3~dfsg0/src/Synth/ADnote.cpp:341:17:  [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(FMFMoldInterpPhase[i], orig.FMFMoldInterpPhase[i],
data/yoshimi-1.7.3~dfsg0/src/Synth/ADnote.cpp:345:17:  [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(FMFMoldPMod[i], orig.FMFMoldPMod[i],
data/yoshimi-1.7.3~dfsg0/src/Synth/ADnote.cpp:352:17:  [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(oscFMoldPhase[i], orig.oscFMoldPhase[i],
data/yoshimi-1.7.3~dfsg0/src/Synth/ADnote.cpp:356:17:  [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(oscFMoldInterpPhase[i], orig.oscFMoldInterpPhase[i],
data/yoshimi-1.7.3~dfsg0/src/Synth/ADnote.cpp:360:17:  [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(oscFMoldPMod[i], orig.oscFMoldPMod[i],
data/yoshimi-1.7.3~dfsg0/src/Synth/ADnote.cpp:827: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(oscposhi[i], orig.oscposhi[i], unison * sizeof(int));
data/yoshimi-1.7.3~dfsg0/src/Synth/ADnote.cpp:828: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(oscposlo[i], orig.oscposlo[i], unison * sizeof(float));
data/yoshimi-1.7.3~dfsg0/src/Synth/ADnote.cpp:829: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(oscposhiFM[i], orig.oscposhiFM[i], unison * sizeof(int));
data/yoshimi-1.7.3~dfsg0/src/Synth/ADnote.cpp:830: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(oscposloFM[i], orig.oscposloFM[i], unison * sizeof(float));
data/yoshimi-1.7.3~dfsg0/src/Synth/ADnote.cpp:1906:13:  [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(tmpmod_unison[k], smps, synth->bufferbytes);
data/yoshimi-1.7.3~dfsg0/src/Synth/ADnote.cpp:2371:17:  [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(tw, smps, synth->bufferbytes);
data/yoshimi-1.7.3~dfsg0/src/Synth/ADnote.cpp:2672:13:  [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(outr, outl, synth->sent_bufferbytes);
data/yoshimi-1.7.3~dfsg0/src/Synth/ADnote.cpp:2673:13:  [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(bypassr, bypassl, synth->sent_bufferbytes);
data/yoshimi-1.7.3~dfsg0/src/Synth/ADnote.h:285: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 firsttick[NUM_VOICES]; // 1 - if it is the fitst tick.
data/yoshimi-1.7.3~dfsg0/src/Synth/OscilGen.cpp:664: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(oscilFFTfreqs.c, params->getbasefuncFFTfreqs()->c,
data/yoshimi-1.7.3~dfsg0/src/Synth/OscilGen.cpp:666: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(oscilFFTfreqs.s, params->getbasefuncFFTfreqs()->s,
data/yoshimi-1.7.3~dfsg0/src/Synth/Resonance.h:61: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 Prespoints[MAX_RESONANCE_POINTS];	// how many points define the resonance function
data/yoshimi-1.7.3~dfsg0/src/Synth/SUBnote.cpp:152: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(pos, orig.pos, MAX_SUB_HARMONICS * sizeof(int));
data/yoshimi-1.7.3~dfsg0/src/Synth/SUBnote.cpp:153: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(overtone_rolloff, orig.overtone_rolloff,
data/yoshimi-1.7.3~dfsg0/src/Synth/SUBnote.cpp:155: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(overtone_freq, orig.overtone_freq,
data/yoshimi-1.7.3~dfsg0/src/Synth/SUBnote.cpp:174: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(lfilter, orig.lfilter,
data/yoshimi-1.7.3~dfsg0/src/Synth/SUBnote.cpp:180: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(rfilter, orig.rfilter,
data/yoshimi-1.7.3~dfsg0/src/Synth/SUBnote.cpp:254: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(lfilter, orig.lfilter,
data/yoshimi-1.7.3~dfsg0/src/Synth/SUBnote.cpp:259: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(rfilter, orig.rfilter,
data/yoshimi-1.7.3~dfsg0/src/Synth/SUBnote.cpp:263: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(overtone_rolloff, orig.overtone_rolloff,
data/yoshimi-1.7.3~dfsg0/src/Synth/SUBnote.cpp:265: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(overtone_freq, orig.overtone_freq,
data/yoshimi-1.7.3~dfsg0/src/Synth/SUBnote.cpp:323: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(newFilter, lfilter, numstages * origNumHarmonics * sizeof(bpfilter));
data/yoshimi-1.7.3~dfsg0/src/Synth/SUBnote.cpp:332:13:  [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(newFilter, rfilter, numstages * origNumHarmonics * sizeof(bpfilter));
data/yoshimi-1.7.3~dfsg0/src/Synth/SUBnote.cpp:730: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(tmpsmp, tmprnd, synth->sent_bufferbytes);
data/yoshimi-1.7.3~dfsg0/src/Synth/SUBnote.cpp:748:13:  [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(tmpsmp, tmprnd, synth->sent_bufferbytes);
data/yoshimi-1.7.3~dfsg0/src/Synth/SUBnote.cpp:758: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(outr, outl, synth->sent_bufferbytes);
data/yoshimi-1.7.3~dfsg0/src/globals.h:1073: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 bytes [sizeof(data)];
data/yoshimi-1.7.3~dfsg0/src/main.cpp:411: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 returnLine[lineLen + 1];
data/yoshimi-1.7.3~dfsg0/src/CLI/CmdInterface.cpp:111:17:  [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(2000);
data/yoshimi-1.7.3~dfsg0/src/CLI/CmdInterface.cpp:136:13:  [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(20000);
data/yoshimi-1.7.3~dfsg0/src/CLI/CmdInterpreter.cpp:5754:13:  [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((tmp - 1) * 1000);
data/yoshimi-1.7.3~dfsg0/src/CLI/CmdInterpreter.cpp:5759:13:  [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(2000); // the loop is too fast otherwise!
data/yoshimi-1.7.3~dfsg0/src/CLI/Parser.h:134: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).
            return point && 0 < strlen(point) && strlen(point) <= COMMAND_SIZE;
data/yoshimi-1.7.3~dfsg0/src/CLI/Parser.h:134: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).
            return point && 0 < strlen(point) && strlen(point) <= COMMAND_SIZE;
data/yoshimi-1.7.3~dfsg0/src/CLI/Parser.h:139: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).
            return point && strlen(point) > COMMAND_SIZE;
data/yoshimi-1.7.3~dfsg0/src/CLI/Parser.h:219: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).
            char *end = point + strlen(point) - 1;
data/yoshimi-1.7.3~dfsg0/src/CLI/Parser.h:242:34:  [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).
            for (int i=0, size = strlen(word);
data/yoshimi-1.7.3~dfsg0/src/CLI/Parser.h:301:48:  [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).
            return 0 == strncmp(prefix, point, strlen(prefix));
data/yoshimi-1.7.3~dfsg0/src/Interface/InterChange.cpp:225:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if (muteQueue->read(getData.bytes))
data/yoshimi-1.7.3~dfsg0/src/Interface/InterChange.cpp:231:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while (decodeLoopback->read(getData.bytes))
data/yoshimi-1.7.3~dfsg0/src/Interface/InterChange.cpp:240:9:  [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(80); // actually gives around 120 uS
data/yoshimi-1.7.3~dfsg0/src/Interface/InterChange.cpp:315:9:  [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(10);
data/yoshimi-1.7.3~dfsg0/src/Interface/InterChange.cpp:918: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(1000);
data/yoshimi-1.7.3~dfsg0/src/Interface/InterChange.cpp:1550:9:  [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(10);
data/yoshimi-1.7.3~dfsg0/src/Interface/InterChange.cpp:1628:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (fromCLI->read(getData.bytes))
data/yoshimi-1.7.3~dfsg0/src/Interface/InterChange.cpp:1638:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (fromGUI->read(getData.bytes))
data/yoshimi-1.7.3~dfsg0/src/Interface/InterChange.cpp:1646:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (fromMIDI->read(getData.bytes))
data/yoshimi-1.7.3~dfsg0/src/Interface/InterChange.cpp:1666:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (returnsBuffer->read(getData.bytes))
data/yoshimi-1.7.3~dfsg0/src/Interface/MidiLearn.cpp:208:17:  [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(1);
data/yoshimi-1.7.3~dfsg0/src/Interface/MidiLearn.cpp:783:17:  [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(1);
data/yoshimi-1.7.3~dfsg0/src/Interface/RingBuffer.cpp:65:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool ringBuff::read(char *readData)
data/yoshimi-1.7.3~dfsg0/src/Interface/RingBuffer.cpp:69:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((write - read) < blockSize)
data/yoshimi-1.7.3~dfsg0/src/Interface/RingBuffer.cpp:73:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    memcpy(readData, (buffer + read), blockSize);
data/yoshimi-1.7.3~dfsg0/src/Interface/RingBuffer.cpp:74:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    readPoint.store(read, std::memory_order_release);
data/yoshimi-1.7.3~dfsg0/src/Interface/RingBuffer.h:43:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bool read(char *readData);
data/yoshimi-1.7.3~dfsg0/src/LV2_Plugin/YoshimiLV2Plugin.cpp:250:13:  [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(33333);
data/yoshimi-1.7.3~dfsg0/src/Misc/FileMgrFuncs.h:269:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    infile.read(memblock, size);
data/yoshimi-1.7.3~dfsg0/src/Misc/Microtonal.cpp:337: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).
    while (k < strlen(text))
data/yoshimi-1.7.3~dfsg0/src/Misc/Microtonal.cpp:346: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 (!strlen(lin))
data/yoshimi-1.7.3~dfsg0/src/Misc/Microtonal.cpp:383: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).
    while (k < strlen(text))
data/yoshimi-1.7.3~dfsg0/src/Misc/Microtonal.cpp:392: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 (!strlen(lin))
data/yoshimi-1.7.3~dfsg0/src/Misc/SynthEngine.cpp:3063:12:  [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).
    return strlen(*data) + 1;
data/yoshimi-1.7.3~dfsg0/src/MusicIO/AlsaEngine.cpp:756:13:  [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(1024);
data/yoshimi-1.7.3~dfsg0/src/MusicIO/JackEngine.cpp:57:13:  [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(3333);
data/yoshimi-1.7.3~dfsg0/src/MusicIO/MusicClient.cpp:92:9:  [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(sleepInterval);
data/yoshimi-1.7.3~dfsg0/src/Params/Presets.cpp:58:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(type, "n");
data/yoshimi-1.7.3~dfsg0/src/Params/Presets.cpp:87:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(type, "n");
data/yoshimi-1.7.3~dfsg0/src/Params/Presets.cpp:158:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(type, "n");
data/yoshimi-1.7.3~dfsg0/src/Params/Presets.cpp:175:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(type, "n");
data/yoshimi-1.7.3~dfsg0/src/UI/MiscGui.cpp:158:38:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while (synth->interchange.toGUI->read(getData.bytes))
data/yoshimi-1.7.3~dfsg0/src/main.cpp:89:17:  [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(1000);
data/yoshimi-1.7.3~dfsg0/src/main.cpp:102:9:  [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(1000);
data/yoshimi-1.7.3~dfsg0/src/main.cpp:207:9:  [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(33333);
data/yoshimi-1.7.3~dfsg0/src/main.cpp:286:25:  [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(1000);
data/yoshimi-1.7.3~dfsg0/src/main.cpp:301:17:  [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(33333);

ANALYSIS SUMMARY:

Hits = 206
Lines analyzed = 65299 in approximately 1.50 seconds (43563 lines/second)
Physical Source Lines of Code (SLOC) = 52487
Hits@level = [0]  20 [1]  47 [2] 144 [3]   2 [4]  13 [5]   0
Hits@level+ = [0+] 226 [1+] 206 [2+] 159 [3+]  15 [4+]  13 [5+]   0
Hits/KSLOC@level+ = [0+] 4.30583 [1+] 3.92478 [2+] 3.02932 [3+] 0.285785 [4+] 0.24768 [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.