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/fluidsynth-2.1.5/doc/android/fluidsynth-assetloader/fluid_androidasset.c
Examining data/fluidsynth-2.1.5/doc/android/fluidsynth-assetloader/fluid_androidasset.h
Examining data/fluidsynth-2.1.5/doc/example.c
Examining data/fluidsynth-2.1.5/doc/fluidsynth_arpeggio.c
Examining data/fluidsynth-2.1.5/doc/fluidsynth_fx.c
Examining data/fluidsynth-2.1.5/doc/fluidsynth_metronome.c
Examining data/fluidsynth-2.1.5/doc/fluidsynth_process.c
Examining data/fluidsynth-2.1.5/doc/fluidsynth_register_adriver.c
Examining data/fluidsynth-2.1.5/doc/fluidsynth_sfload_mem.c
Examining data/fluidsynth-2.1.5/doc/fluidsynth_simple.c
Examining data/fluidsynth-2.1.5/include/fluidsynth/audio.h
Examining data/fluidsynth-2.1.5/include/fluidsynth/event.h
Examining data/fluidsynth-2.1.5/include/fluidsynth/gen.h
Examining data/fluidsynth-2.1.5/include/fluidsynth/ladspa.h
Examining data/fluidsynth-2.1.5/include/fluidsynth/log.h
Examining data/fluidsynth-2.1.5/include/fluidsynth/midi.h
Examining data/fluidsynth-2.1.5/include/fluidsynth/misc.h
Examining data/fluidsynth-2.1.5/include/fluidsynth/mod.h
Examining data/fluidsynth-2.1.5/include/fluidsynth/seq.h
Examining data/fluidsynth-2.1.5/include/fluidsynth/seqbind.h
Examining data/fluidsynth-2.1.5/include/fluidsynth/settings.h
Examining data/fluidsynth-2.1.5/include/fluidsynth/sfont.h
Examining data/fluidsynth-2.1.5/include/fluidsynth/shell.h
Examining data/fluidsynth-2.1.5/include/fluidsynth/synth.h
Examining data/fluidsynth-2.1.5/include/fluidsynth/types.h
Examining data/fluidsynth-2.1.5/include/fluidsynth/voice.h
Examining data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c
Examining data/fluidsynth-2.1.5/src/bindings/fluid_cmd.h
Examining data/fluidsynth-2.1.5/src/bindings/fluid_filerenderer.c
Examining data/fluidsynth-2.1.5/src/bindings/fluid_ladspa.c
Examining data/fluidsynth-2.1.5/src/bindings/fluid_ladspa.h
Examining data/fluidsynth-2.1.5/src/bindings/fluid_lash.c
Examining data/fluidsynth-2.1.5/src/bindings/fluid_lash.h
Examining data/fluidsynth-2.1.5/src/bindings/fluid_rtkit.c
Examining data/fluidsynth-2.1.5/src/bindings/fluid_rtkit.h
Examining data/fluidsynth-2.1.5/src/drivers/fluid_adriver.c
Examining data/fluidsynth-2.1.5/src/drivers/fluid_adriver.h
Examining data/fluidsynth-2.1.5/src/drivers/fluid_alsa.c
Examining data/fluidsynth-2.1.5/src/drivers/fluid_aufile.c
Examining data/fluidsynth-2.1.5/src/drivers/fluid_coreaudio.c
Examining data/fluidsynth-2.1.5/src/drivers/fluid_coremidi.c
Examining data/fluidsynth-2.1.5/src/drivers/fluid_dart.c
Examining data/fluidsynth-2.1.5/src/drivers/fluid_dsound.c
Examining data/fluidsynth-2.1.5/src/drivers/fluid_jack.c
Examining data/fluidsynth-2.1.5/src/drivers/fluid_mdriver.c
Examining data/fluidsynth-2.1.5/src/drivers/fluid_mdriver.h
Examining data/fluidsynth-2.1.5/src/drivers/fluid_midishare.c
Examining data/fluidsynth-2.1.5/src/drivers/fluid_oboe.cpp
Examining data/fluidsynth-2.1.5/src/drivers/fluid_opensles.c
Examining data/fluidsynth-2.1.5/src/drivers/fluid_oss.c
Examining data/fluidsynth-2.1.5/src/drivers/fluid_portaudio.c
Examining data/fluidsynth-2.1.5/src/drivers/fluid_pulse.c
Examining data/fluidsynth-2.1.5/src/drivers/fluid_sdl2.c
Examining data/fluidsynth-2.1.5/src/drivers/fluid_sndmgr.c
Examining data/fluidsynth-2.1.5/src/drivers/fluid_waveout.c
Examining data/fluidsynth-2.1.5/src/drivers/fluid_winmidi.c
Examining data/fluidsynth-2.1.5/src/fluidsynth.c
Examining data/fluidsynth-2.1.5/src/gentables/gen_conv.c
Examining data/fluidsynth-2.1.5/src/gentables/gen_rvoice_dsp.c
Examining data/fluidsynth-2.1.5/src/gentables/make_tables.c
Examining data/fluidsynth-2.1.5/src/gentables/make_tables.h
Examining data/fluidsynth-2.1.5/src/midi/fluid_midi.c
Examining data/fluidsynth-2.1.5/src/midi/fluid_midi.h
Examining data/fluidsynth-2.1.5/src/midi/fluid_midi_router.c
Examining data/fluidsynth-2.1.5/src/midi/fluid_midi_router.h
Examining data/fluidsynth-2.1.5/src/midi/fluid_seq.c
Examining data/fluidsynth-2.1.5/src/midi/fluid_seqbind.c
Examining data/fluidsynth-2.1.5/src/rvoice/fluid_adsr_env.c
Examining data/fluidsynth-2.1.5/src/rvoice/fluid_adsr_env.h
Examining data/fluidsynth-2.1.5/src/rvoice/fluid_chorus.c
Examining data/fluidsynth-2.1.5/src/rvoice/fluid_chorus.h
Examining data/fluidsynth-2.1.5/src/rvoice/fluid_iir_filter.c
Examining data/fluidsynth-2.1.5/src/rvoice/fluid_iir_filter.h
Examining data/fluidsynth-2.1.5/src/rvoice/fluid_lfo.c
Examining data/fluidsynth-2.1.5/src/rvoice/fluid_lfo.h
Examining data/fluidsynth-2.1.5/src/rvoice/fluid_phase.h
Examining data/fluidsynth-2.1.5/src/rvoice/fluid_rev.c
Examining data/fluidsynth-2.1.5/src/rvoice/fluid_rev.h
Examining data/fluidsynth-2.1.5/src/rvoice/fluid_rvoice.c
Examining data/fluidsynth-2.1.5/src/rvoice/fluid_rvoice.h
Examining data/fluidsynth-2.1.5/src/rvoice/fluid_rvoice_dsp.c
Examining data/fluidsynth-2.1.5/src/rvoice/fluid_rvoice_dsp_tables.h
Examining data/fluidsynth-2.1.5/src/rvoice/fluid_rvoice_event.c
Examining data/fluidsynth-2.1.5/src/rvoice/fluid_rvoice_event.h
Examining data/fluidsynth-2.1.5/src/rvoice/fluid_rvoice_mixer.c
Examining data/fluidsynth-2.1.5/src/rvoice/fluid_rvoice_mixer.h
Examining data/fluidsynth-2.1.5/src/sfloader/fluid_defsfont.c
Examining data/fluidsynth-2.1.5/src/sfloader/fluid_defsfont.h
Examining data/fluidsynth-2.1.5/src/sfloader/fluid_instpatch.c
Examining data/fluidsynth-2.1.5/src/sfloader/fluid_instpatch.h
Examining data/fluidsynth-2.1.5/src/sfloader/fluid_samplecache.c
Examining data/fluidsynth-2.1.5/src/sfloader/fluid_samplecache.h
Examining data/fluidsynth-2.1.5/src/sfloader/fluid_sffile.c
Examining data/fluidsynth-2.1.5/src/sfloader/fluid_sffile.h
Examining data/fluidsynth-2.1.5/src/sfloader/fluid_sfont.c
Examining data/fluidsynth-2.1.5/src/sfloader/fluid_sfont.h
Examining data/fluidsynth-2.1.5/src/synth/fluid_chan.c
Examining data/fluidsynth-2.1.5/src/synth/fluid_chan.h
Examining data/fluidsynth-2.1.5/src/synth/fluid_event.c
Examining data/fluidsynth-2.1.5/src/synth/fluid_event.h
Examining data/fluidsynth-2.1.5/src/synth/fluid_gen.c
Examining data/fluidsynth-2.1.5/src/synth/fluid_gen.h
Examining data/fluidsynth-2.1.5/src/synth/fluid_mod.c
Examining data/fluidsynth-2.1.5/src/synth/fluid_mod.h
Examining data/fluidsynth-2.1.5/src/synth/fluid_synth.c
Examining data/fluidsynth-2.1.5/src/synth/fluid_synth.h
Examining data/fluidsynth-2.1.5/src/synth/fluid_synth_monopoly.c
Examining data/fluidsynth-2.1.5/src/synth/fluid_tuning.c
Examining data/fluidsynth-2.1.5/src/synth/fluid_tuning.h
Examining data/fluidsynth-2.1.5/src/synth/fluid_voice.c
Examining data/fluidsynth-2.1.5/src/synth/fluid_voice.h
Examining data/fluidsynth-2.1.5/src/utils/fluid_conv.c
Examining data/fluidsynth-2.1.5/src/utils/fluid_conv.h
Examining data/fluidsynth-2.1.5/src/utils/fluid_conv_tables.h
Examining data/fluidsynth-2.1.5/src/utils/fluid_hash.c
Examining data/fluidsynth-2.1.5/src/utils/fluid_hash.h
Examining data/fluidsynth-2.1.5/src/utils/fluid_list.c
Examining data/fluidsynth-2.1.5/src/utils/fluid_list.h
Examining data/fluidsynth-2.1.5/src/utils/fluid_ringbuffer.c
Examining data/fluidsynth-2.1.5/src/utils/fluid_ringbuffer.h
Examining data/fluidsynth-2.1.5/src/utils/fluid_settings.c
Examining data/fluidsynth-2.1.5/src/utils/fluid_settings.h
Examining data/fluidsynth-2.1.5/src/utils/fluid_sys.c
Examining data/fluidsynth-2.1.5/src/utils/fluid_sys.h
Examining data/fluidsynth-2.1.5/src/utils/fluidsynth_priv.h
Examining data/fluidsynth-2.1.5/test/test.h
Examining data/fluidsynth-2.1.5/test/test_bug_635.c
Examining data/fluidsynth-2.1.5/test/test_ct2hz.c
Examining data/fluidsynth-2.1.5/test/test_jack_obtaining_synth.c
Examining data/fluidsynth-2.1.5/test/test_pointer_alignment.c
Examining data/fluidsynth-2.1.5/test/test_preset_sample_loading.c
Examining data/fluidsynth-2.1.5/test/test_sample_cache.c
Examining data/fluidsynth-2.1.5/test/test_sample_rate_change.c
Examining data/fluidsynth-2.1.5/test/test_sample_validate.c
Examining data/fluidsynth-2.1.5/test/test_seq_event_queue_sort.c
Examining data/fluidsynth-2.1.5/test/test_seq_scale.c
Examining data/fluidsynth-2.1.5/test/test_seqbind_unregister.c
Examining data/fluidsynth-2.1.5/test/test_sf3_sfont_loading.c
Examining data/fluidsynth-2.1.5/test/test_sfont_loading.c
Examining data/fluidsynth-2.1.5/test/test_snprintf.c
Examining data/fluidsynth-2.1.5/test/test_synth_chorus_reverb.c
Examining data/fluidsynth-2.1.5/test/test_synth_process.c

FINAL RESULTS:

data/fluidsynth-2.1.5/include/fluidsynth/log.h:82:25:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
__attribute__ ((format (printf, 2, 3)))
data/fluidsynth-2.1.5/src/drivers/fluid_alsa.c:71:22:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    snd_pcm_access_t access;
data/fluidsynth-2.1.5/src/drivers/fluid_alsa.c:219:83:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if(snd_pcm_hw_params_set_access(dev->pcm, hwparams, fluid_alsa_formats[i].access) < 0)
data/fluidsynth-2.1.5/src/gentables/make_tables.c:53:5:  [4] (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).
    strcat(buf, dir);
data/fluidsynth-2.1.5/src/gentables/make_tables.c:54:5:  [4] (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).
    strcat(buf, file);
data/fluidsynth-2.1.5/src/utils/fluid_settings.c:1827:13:  [4] (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).
            strcat(str, option);
data/fluidsynth-2.1.5/src/utils/fluid_settings.c:1831:17:  [4] (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).
                strcat(str, separator);
data/fluidsynth-2.1.5/src/utils/fluid_settings.c:1872:5:  [4] (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).
    strcat(bag->path, keystr);
data/fluidsynth-2.1.5/src/utils/fluidsynth_priv.h:208:38:  [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).
#define FLUID_STRCPY(_dst,_src)      strcpy(_dst,_src)
data/fluidsynth-2.1.5/src/utils/fluidsynth_priv.h:224:38:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#define FLUID_SPRINTF                sprintf
data/fluidsynth-2.1.5/src/utils/fluidsynth_priv.h:225:38:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define FLUID_FPRINTF                fprintf
data/fluidsynth-2.1.5/src/utils/fluidsynth_priv.h:234:34:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define FLUID_SNPRINTF           snprintf
data/fluidsynth-2.1.5/src/utils/fluidsynth_priv.h:240:34:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define FLUID_VSNPRINTF          vsnprintf
data/fluidsynth-2.1.5/src/utils/fluidsynth_priv.h:263:38:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define FLUID_PRINTF                 printf
data/fluidsynth-2.1.5/test/test.h:26:47:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define TEST_ASSERT(COND) do { if (!(COND)) { fprintf(stderr, __FILE__ ":%d assertion (%s) failed\n", __LINE__, #COND); TEST_ABORT; } } while (0)
data/fluidsynth-2.1.5/doc/example.c:58:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand(getpid());
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:615:12:  [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.
    home = getenv("USERPROFILE");
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:619:12:  [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.
    home = getenv("HOME");
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:4088:22:  [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.
        char *home = getenv("HOME");
data/fluidsynth-2.1.5/src/fluidsynth.c:417:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        c = getopt_long(argc, argv, optchars, long_options, &option_index);
data/fluidsynth-2.1.5/doc/fluidsynth_arpeggio.c:136:21:  [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).
                n = atoi(argv[2]);
data/fluidsynth-2.1.5/doc/fluidsynth_arpeggio.c:146:21:  [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).
                n = atoi(argv[3]);
data/fluidsynth-2.1.5/doc/fluidsynth_metronome.c:126:21:  [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).
                n = atoi(argv[2]);
data/fluidsynth-2.1.5/doc/fluidsynth_metronome.c:136:21:  [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).
                n = atoi(argv[3]);
data/fluidsynth-2.1.5/doc/fluidsynth_register_adriver.c:19:11:  [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 *adrivers[2];
data/fluidsynth-2.1.5/doc/fluidsynth_sfload_mem.c:67: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 abused_filename[64];
data/fluidsynth-2.1.5/doc/fluidsynth_sfload_mem.c:69: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(abused_filename, "&%p", pointer_to_sf2_in_mem);
data/fluidsynth-2.1.5/include/fluidsynth/sfont.h:150:40:  [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).
        fluid_sfloader_callback_open_t open,
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:496: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 workline[FLUID_WORKLINELENGTH];
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:580:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = open(filename, O_RDONLY);
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:676:47:  [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).
    return fluid_synth_noteon(handler->synth, atoi(av[0]), atoi(av[1]), atoi(av[2]));
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:676:60:  [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).
    return fluid_synth_noteon(handler->synth, atoi(av[0]), atoi(av[1]), atoi(av[2]));
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:676:73:  [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).
    return fluid_synth_noteon(handler->synth, atoi(av[0]), atoi(av[1]), atoi(av[2]));
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:696:48:  [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).
    return fluid_synth_noteoff(handler->synth, atoi(av[0]), atoi(av[1]));
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:696:61:  [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).
    return fluid_synth_noteoff(handler->synth, atoi(av[0]), atoi(av[1]));
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:716:51:  [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).
    return fluid_synth_pitch_bend(handler->synth, atoi(av[0]), atoi(av[1]));
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:716:64:  [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).
    return fluid_synth_pitch_bend(handler->synth, atoi(av[0]), atoi(av[1]));
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:738:15:  [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).
    channum = atoi(av[0]);
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:739:13:  [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).
    value = atoi(av[1]);
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:761:43:  [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).
    return fluid_synth_cc(handler->synth, atoi(av[0]), atoi(av[1]), atoi(av[2]));
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:761:56:  [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).
    return fluid_synth_cc(handler->synth, atoi(av[0]), atoi(av[1]), atoi(av[2]));
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:761:69:  [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).
    return fluid_synth_cc(handler->synth, atoi(av[0]), atoi(av[1]), atoi(av[2]));
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:781:55:  [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).
    return fluid_synth_program_change(handler->synth, atoi(av[0]), atoi(av[1]));
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:781:68:  [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).
    return fluid_synth_program_change(handler->synth, atoi(av[0]), atoi(av[1]));
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:806: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).
    chan = atoi(av[0]);
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:807: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).
    sfont_id = atoi(av[1]);
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:808: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).
    bank = atoi(av[2]);
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:809: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).
    prog = atoi(av[3]);
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:847: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).
    font = atoi(av[0]);
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:916: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[1024];
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:929: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).
        reset = atoi(av[1]);
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:934: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).
        offset = atoi(av[2]);
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:985: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).
        reset = atoi(av[1]);
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:988:45:  [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).
    if(fluid_synth_sfunload(handler->synth, atoi(av[0]), reset) != 0)
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:1014:45:  [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).
    if(fluid_synth_sfreload(handler->synth, atoi(av[0])) == -1)
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:1078:28:  [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).
    reverb_preset_number = atoi(av[0]);
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:1261:10:  [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).
    nr = atoi(av[0]);
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:1400: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).
    fluid_msleep(atoi(av[0]));	/* delay in milliseconds */
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:1474:14:  [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).
    interp = atoi(av[0]);
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:1502: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).
    chan = atoi(av[0]);
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:1503:14:  [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).
    interp = atoi(av[1]);
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:1543: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).
    bank = atoi(av[1]);
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:1557: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).
    prog = atoi(av[2]);
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:1589: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).
    bank = atoi(av[0]);
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:1603: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).
    prog = atoi(av[1]);
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:1617:11:  [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).
    key = atoi(av[2]);
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:1656: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).
    chan = atoi(av[0]);
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:1670: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).
    bank = atoi(av[1]);
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:1684: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).
    prog = atoi(av[2]);
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:1715: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).
    chan = atoi(av[0]);
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:1733: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 name[256];
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:1759: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 name[256];
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:1773: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).
    bank = atoi(av[0]);
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:1787: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).
    prog = atoi(av[1]);
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:1845:24:  [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).
                ival = atoi(av[1]);
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:1850: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).
            ival = atoi(av[1]);
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:2410:56:  [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).
    fluid_midi_router_rule_set_chan(handler->cmd_rule, atoi(av[0]), atoi(av[1]),
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:2410:69:  [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).
    fluid_midi_router_rule_set_chan(handler->cmd_rule, atoi(av[0]), atoi(av[1]),
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:2411:50:  [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).
                                    atof(av[2]), atoi(av[3]));
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:2435:58:  [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).
    fluid_midi_router_rule_set_param1(handler->cmd_rule, atoi(av[0]), atoi(av[1]),
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:2435:71:  [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).
    fluid_midi_router_rule_set_param1(handler->cmd_rule, atoi(av[0]), atoi(av[1]),
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:2436:52:  [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).
                                      atof(av[2]), atoi(av[3]));
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:2460:58:  [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).
    fluid_midi_router_rule_set_param2(handler->cmd_rule, atoi(av[0]), atoi(av[1]),
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:2460:71:  [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).
    fluid_midi_router_rule_set_param2(handler->cmd_rule, atoi(av[0]), atoi(av[1]),
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:2461:52:  [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).
                                      atof(av[2]), atoi(av[3]));
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:2545: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.
    static const char * const name_channel_mode [FLUID_CHANNEL_MODE_LAST] =
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:2594:30:  [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).
                             atoi(av[((ac / 3) * 3)]), too_few_arg_msg);
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:2659:24:  [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 chan = atoi(av[i]);
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:2725:21:  [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).
        basicchan = atoi(av[(i * 3)]);  /* chan is numeric */
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:2730: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).
            mode = atoi(av[(i * 3) + 1]);
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:2738:15:  [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).
        val = atoi(av[(i * 3) + 2]);    /* val is numeric */
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:2827:25:  [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 chan = ac ? atoi(av[i]) : i;
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:2843: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.
                    char nbr[10]; /* field Nbr */
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:2933: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.
    static const char *const name_legato_mode[FLUID_CHANNEL_LEGATO_MODE_LAST] =
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:2961:25:  [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 chan = ac ? atoi(av[i]) : i;
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:3002:34:  [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).
                                 atoi(av[((ac / nbr_arg_group) * nbr_arg_group)]),
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:3058: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).
        int chan = atoi(av[(i * 2)]);
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:3059: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).
        int mode = atoi(av[(i * 2) + 1]);
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:3089: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.
    static const char *const name_portamento_mode[FLUID_CHANNEL_PORTAMENTO_MODE_LAST] =
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:3117:25:  [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 chan = ac ? atoi(av[i]) : i;
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:3148: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).
        int chan = atoi(av[(i * 2)]);
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:3149: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).
        int mode = atoi(av[(i * 2) + 1]);
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:3206:25:  [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 chan = ac ? atoi(av[i]) : i;
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:3295: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).
        int chan = atoi(av[(i * 4)]);
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:3296:27:  [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 poly_breath = atoi(av[(i * 4) + 1]);
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:3297:27:  [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 mono_breath = atoi(av[(i * 4) + 2]);
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:3298:27:  [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 breath_sync = atoi(av[(i * 4) + 3]);
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:3354: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 error[LADSPA_ERR_LEN];
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:3438: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 error[LADSPA_ERR_LEN];
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:3725:15:  [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).
        nbr = atoi(av[0]);	/* get nbr parameter */
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:3736:28:  [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).
                    bank = atoi(av[1]);	/* gets bank parameter */
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:3737:28:  [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).
                    prog = atoi(av[2]);	/* gets prog parameter */
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:3800:32:  [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).
        fluid_profile_print =  atoi(av[0]);	/* gets and saves mode parameter */
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:3915:22:  [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).
            n_prof = atoi(av[0]);	/* gets n_prof parameter */
data/fluidsynth-2.1.5/src/bindings/fluid_cmd.c:3923:27:  [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).
                    dur = atoi(av[1]);/* gets dur parameter */
data/fluidsynth-2.1.5/src/bindings/fluid_ladspa.c:285: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 name[99];
data/fluidsynth-2.1.5/src/bindings/fluid_lash.c:63: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 num[32];
data/fluidsynth-2.1.5/src/bindings/fluid_lash.c:77:9:  [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(num, "%d", i);
data/fluidsynth-2.1.5/src/drivers/fluid_alsa.c:106: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 buffer[BUFFER_LENGTH];
data/fluidsynth-2.1.5/src/drivers/fluid_alsa.c:991: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 full_id[64];
data/fluidsynth-2.1.5/src/drivers/fluid_alsa.c:992: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 full_name[64];
data/fluidsynth-2.1.5/src/drivers/fluid_alsa.c:1039:9:  [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(id, "%d", getpid());
data/fluidsynth-2.1.5/src/drivers/fluid_coreaudio.c:135: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.
                char name [1024];
data/fluidsynth-2.1.5/src/drivers/fluid_coreaudio.c:252: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.
                    char name [1024];
data/fluidsynth-2.1.5/src/drivers/fluid_coremidi.c:106: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 clientid[32];
data/fluidsynth-2.1.5/src/drivers/fluid_dsound.c:84: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(devsel->devGUID, guid, sizeof(GUID));
data/fluidsynth-2.1.5/src/drivers/fluid_jack.c:156: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 name[64];
data/fluidsynth-2.1.5/src/drivers/fluid_jack.c:333: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 name[64];
data/fluidsynth-2.1.5/src/drivers/fluid_jack.c:430:13:  [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(name, "l_%02d", i);
data/fluidsynth-2.1.5/src/drivers/fluid_jack.c:439:13:  [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(name, "r_%02d", i);
data/fluidsynth-2.1.5/src/drivers/fluid_jack.c:473:13:  [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(name, "fx_l_%02d", i);
data/fluidsynth-2.1.5/src/drivers/fluid_jack.c:482:13:  [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(name, "fx_r_%02d", i);
data/fluidsynth-2.1.5/src/drivers/fluid_midishare.c:65: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 sysexbuf[FLUID_MIDI_PARSER_MAX_DATA_SIZE];
data/fluidsynth-2.1.5/src/drivers/fluid_oss.c:97: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 buffer[BUFFER_LENGTH];
data/fluidsynth-2.1.5/src/drivers/fluid_oss.c:202:18:  [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).
    dev->dspfd = open(devname, O_WRONLY, 0);
data/fluidsynth-2.1.5/src/drivers/fluid_oss.c:348:18:  [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).
    dev->dspfd = open(devname, O_WRONLY, 0);
data/fluidsynth-2.1.5/src/drivers/fluid_oss.c:658:15:  [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).
    dev->fd = open(device, O_RDONLY, 0);
data/fluidsynth-2.1.5/src/drivers/fluid_waveout.c:122: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 dev_name[MAXPNAMELEN];
data/fluidsynth-2.1.5/src/drivers/fluid_waveout.c:165: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 dev_name[MAXPNAMELEN];
data/fluidsynth-2.1.5/src/drivers/fluid_waveout.c:249:9:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
        MultiByteToWideChar(CP_UTF8, 0, dev_name, -1, lpwDevName, MAXPNAMELEN);
data/fluidsynth-2.1.5/src/drivers/fluid_winmidi.c:56: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 sysExBuf[MIDI_SYSEX_BUF_COUNT * MIDI_SYSEX_MAX_SIZE];
data/fluidsynth-2.1.5/src/drivers/fluid_winmidi.c:217: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 strError[MAXERRORLENGTH];
data/fluidsynth-2.1.5/src/drivers/fluid_winmidi.c:218: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 dev_name[MAXPNAMELEN];
data/fluidsynth-2.1.5/src/drivers/fluid_winmidi.c:255:17:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
                MultiByteToWideChar(CP_UTF8, 0, dev_name, -1, wDevName, MAXPNAMELEN);
data/fluidsynth-2.1.5/src/fluidsynth.c:109:24:  [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).
                ival = atoi(val);
data/fluidsynth-2.1.5/src/fluidsynth.c:114: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).
            ival = atoi(val);
data/fluidsynth-2.1.5/src/fluidsynth.c:331: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[512];
data/fluidsynth-2.1.5/src/fluidsynth.c:514:65:  [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).
            if(fluid_settings_setint(settings, "audio.periods", atoi(optarg)) != FLUID_OK)
data/fluidsynth-2.1.5/src/fluidsynth.c:563:28:  [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).
            audio_groups = atoi(optarg);
data/fluidsynth-2.1.5/src/fluidsynth.c:590:71:  [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).
            if(fluid_settings_setint(settings, "synth.midi-channels", atoi(optarg)) != FLUID_OK)
data/fluidsynth-2.1.5/src/fluidsynth.c:597:30:  [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).
            audio_channels = atoi(optarg);
data/fluidsynth-2.1.5/src/fluidsynth.c:746:69:  [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).
            if(fluid_settings_setint(settings, "audio.period-size", atoi(optarg)) != FLUID_OK)
data/fluidsynth-2.1.5/src/gentables/make_tables.c:51: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[2048] = {0};
data/fluidsynth-2.1.5/src/gentables/make_tables.c:57:11:  [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).
    *fp = fopen(buf, "w");
data/fluidsynth-2.1.5/src/midi/fluid_midi.c:338: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 mthd[14];
data/fluidsynth-2.1.5/src/midi/fluid_midi.c:435: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 length[5];
data/fluidsynth-2.1.5/src/midi/fluid_midi.c:472: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 id[5], length[5];
data/fluidsynth-2.1.5/src/midi/fluid_midi.c:618: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 static_buf[256];
data/fluidsynth-2.1.5/src/midi/fluid_midi.h:345: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 data[FLUID_MIDI_PARSER_MAX_DATA_SIZE]; /* The parameters or SYSEX data */
data/fluidsynth-2.1.5/src/midi/fluid_midi_router.c:64: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 keys_cc[128];                       /* Flags, whether a key is down / controller is set (sustain) */
data/fluidsynth-2.1.5/src/rvoice/fluid_rvoice_mixer.c:1322: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 name[16];
data/fluidsynth-2.1.5/src/sfloader/fluid_defsfont.c:1009: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 zone_name[256];
data/fluidsynth-2.1.5/src/sfloader/fluid_defsfont.c:1327: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 zone_mod_name[256];
data/fluidsynth-2.1.5/src/sfloader/fluid_defsfont.c:1716: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 zone_name[256];
data/fluidsynth-2.1.5/src/sfloader/fluid_defsfont.h:146: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 name[21];                        /* the name of the preset */
data/fluidsynth-2.1.5/src/sfloader/fluid_defsfont.h:192: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 name[21];
data/fluidsynth-2.1.5/src/sfloader/fluid_instpatch.c:11: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 name[256];
data/fluidsynth-2.1.5/src/sfloader/fluid_sffile.c:420:26:  [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).
    if((sf->sffd = fcbs->fopen(fname)) == NULL)
data/fluidsynth-2.1.5/src/sfloader/fluid_sffile.h:100: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 name[21]; /* Name of sample */
data/fluidsynth-2.1.5/src/sfloader/fluid_sffile.h:122: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 name[21]; /* Name of instrument */
data/fluidsynth-2.1.5/src/sfloader/fluid_sffile.h:130: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 name[21]; /* preset name */
data/fluidsynth-2.1.5/src/sfloader/fluid_sffile.h:186: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 name[20]; /* preset name */
data/fluidsynth-2.1.5/src/sfloader/fluid_sffile.h:203: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 name[20]; /* Name of instrument */
data/fluidsynth-2.1.5/src/sfloader/fluid_sffile.h:210: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 name[20]; /* Sample name */
data/fluidsynth-2.1.5/src/sfloader/fluid_sfont.c:170:65:  [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).
                                 fluid_sfloader_callback_open_t open,
data/fluidsynth-2.1.5/src/sfloader/fluid_sfont.c:179:30:  [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).
    fluid_return_val_if_fail(open != NULL, FLUID_FAILED);
data/fluidsynth-2.1.5/src/sfloader/fluid_sfont.c:187: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).
    cb->fopen = open;
data/fluidsynth-2.1.5/src/sfloader/fluid_sfont.h:65:37:  [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).
    fluid_sfloader_callback_open_t  fopen;
data/fluidsynth-2.1.5/src/sfloader/fluid_sfont.h:148: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 name[21];                /**< Sample name */
data/fluidsynth-2.1.5/src/synth/fluid_chan.h:100: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 cc[128];                         /**< MIDI controller values from [0;127] */
data/fluidsynth-2.1.5/src/synth/fluid_chan.h:101: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 key_pressure[128];               /**< MIDI polyphonic key pressure from [0;127] */
data/fluidsynth-2.1.5/src/synth/fluid_synth.c:1948: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 name[17]={0};
data/fluidsynth-2.1.5/src/utils/fluid_settings.c:385: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 *tokens[MAX_SETTINGS_TOKENS];
data/fluidsynth-2.1.5/src/utils/fluid_settings.c:386: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[MAX_SETTINGS_LABEL + 1];
data/fluidsynth-2.1.5/src/utils/fluid_settings.c:431: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 *tokens[MAX_SETTINGS_TOKENS];
data/fluidsynth-2.1.5/src/utils/fluid_settings.c:432: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[MAX_SETTINGS_LABEL + 1];
data/fluidsynth-2.1.5/src/utils/fluid_settings.c:1851: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 path[MAX_SETTINGS_LABEL + 1];    /* Maximum settings label length */
data/fluidsynth-2.1.5/src/utils/fluid_settings.c:1975: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).
        buf[n++] = atoi(tok);
data/fluidsynth-2.1.5/src/utils/fluid_sys.c:183: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 errbuf[1024];
data/fluidsynth-2.1.5/src/utils/fluid_sys.c:623: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 max_voices_available[20];
data/fluidsynth-2.1.5/src/utils/fluid_sys.c:1345: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[4096];
data/fluidsynth-2.1.5/src/utils/fluid_sys.c:1464: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 straddr[INET6_ADDRSTRLEN];
data/fluidsynth-2.1.5/src/utils/fluid_sys.c:1466: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 straddr[INET_ADDRSTRLEN];
data/fluidsynth-2.1.5/src/utils/fluid_sys.h:410: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(&ival, &val, 4);
data/fluidsynth-2.1.5/src/utils/fluid_sys.h:420: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(&fval, &ival, 4);
data/fluidsynth-2.1.5/src/utils/fluidsynth_priv.h:194:38:  [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).
#define FLUID_FOPEN(_f,_m)           fopen(_f,_m)
data/fluidsynth-2.1.5/src/utils/fluidsynth_priv.h:201:38:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define FLUID_MEMCPY(_dst,_src,_n)   memcpy(_dst,_src,_n)
data/fluidsynth-2.1.5/test/test_snprintf.c:9: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[2 + 1];
data/fluidsynth-2.1.5/doc/fluidsynth_arpeggio.c:164:17:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            n = getchar();
data/fluidsynth-2.1.5/doc/fluidsynth_fx.c:161:5:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    fgetc(stdin);
data/fluidsynth-2.1.5/doc/fluidsynth_metronome.c:152:17:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            n = getchar();
data/fluidsynth-2.1.5/doc/fluidsynth_simple.c:75:5:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    fgetc(stdin);
data/fluidsynth-2.1.5/include/fluidsynth/sfont.h:151:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        fluid_sfloader_callback_read_t read,
data/fluidsynth-2.1.5/src/bindings/fluid_lash.c:164: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(10000);
data/fluidsynth-2.1.5/src/drivers/fluid_coreaudio.c:236:27:  [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).
            && devname && strlen(devname) > 0)
data/fluidsynth-2.1.5/src/drivers/fluid_coremidi.c:163:21:  [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(!portname || strlen(portname) == 0)
data/fluidsynth-2.1.5/src/drivers/fluid_dsound.c:176: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).
            && devsel.devname && strlen(devsel.devname) > 0)
data/fluidsynth-2.1.5/src/drivers/fluid_oss.c:68:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    fluid_audio_callback_t read;
data/fluidsynth-2.1.5/src/drivers/fluid_oss.c:538:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        dev->read(synth, len, buffer, 0, 2, buffer, 1, 2);
data/fluidsynth-2.1.5/src/drivers/fluid_oss.c:763:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        n = read(dev->fd, dev->buffer, BUFFER_LENGTH);
data/fluidsynth-2.1.5/src/drivers/fluid_portaudio.c:51:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    fluid_audio_callback_t read;
data/fluidsynth-2.1.5/src/drivers/fluid_portaudio.c:368:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    dev->read(dev->synth, frameCount, output, 0, 2, output, 1, 2);
data/fluidsynth-2.1.5/src/sfloader/fluid_sfont.c:171:65:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                                 fluid_sfloader_callback_read_t read,
data/fluidsynth-2.1.5/src/sfloader/fluid_sfont.c:180:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    fluid_return_val_if_fail(read != NULL, FLUID_FAILED);
data/fluidsynth-2.1.5/src/sfloader/fluid_sfont.c:188:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    cb->fread = read;
data/fluidsynth-2.1.5/src/utils/fluid_sys.c:1277:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        n = read(in, &c, 1);
data/fluidsynth-2.1.5/src/utils/fluid_sys.c:1292:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            n = read(in, &c, 1);
data/fluidsynth-2.1.5/src/utils/fluidsynth_priv.h:205:38:  [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).
#define FLUID_STRLEN(_s)             strlen(_s)
data/fluidsynth-2.1.5/src/utils/fluidsynth_priv.h:211:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
do { strncpy(_dst,_src,_n); \

ANALYSIS SUMMARY:

Hits = 219
Lines analyzed = 63773 in approximately 4.04 seconds (15790 lines/second)
Physical Source Lines of Code (SLOC) = 39041
Hits@level = [0] 215 [1]  21 [2] 178 [3]   5 [4]  15 [5]   0
Hits@level+ = [0+] 434 [1+] 219 [2+] 198 [3+]  20 [4+]  15 [5+]   0
Hits/KSLOC@level+ = [0+] 11.1165 [1+] 5.60949 [2+] 5.07159 [3+] 0.512282 [4+] 0.384211 [5+]   0
Dot directories skipped = 3 (--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.