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/seq24-0.9.3/src/options.h
Examining data/seq24-0.9.3/src/perfroll_input.cpp
Examining data/seq24-0.9.3/src/maintime.cpp
Examining data/seq24-0.9.3/src/sequence.cpp
Examining data/seq24-0.9.3/src/mainwid.cpp
Examining data/seq24-0.9.3/src/midifile.cpp
Examining data/seq24-0.9.3/src/controllers.h
Examining data/seq24-0.9.3/src/mainwnd.h
Examining data/seq24-0.9.3/src/seq24.cpp
Examining data/seq24-0.9.3/src/keybindentry.cpp
Examining data/seq24-0.9.3/src/perfroll_input.h
Examining data/seq24-0.9.3/src/seqmenu.h
Examining data/seq24-0.9.3/src/userfile.cpp
Examining data/seq24-0.9.3/src/configwin32.h
Examining data/seq24-0.9.3/src/midibus.cpp
Examining data/seq24-0.9.3/src/perftime.cpp
Examining data/seq24-0.9.3/src/midibus_portmidi.cpp
Examining data/seq24-0.9.3/src/maintime.h
Examining data/seq24-0.9.3/src/configfile.cpp
Examining data/seq24-0.9.3/src/seqtime.h
Examining data/seq24-0.9.3/src/event.h
Examining data/seq24-0.9.3/src/seqevent.h
Examining data/seq24-0.9.3/src/perfnames.cpp
Examining data/seq24-0.9.3/src/globals.h
Examining data/seq24-0.9.3/src/font.cpp
Examining data/seq24-0.9.3/src/keybindentry.h
Examining data/seq24-0.9.3/src/seqedit.h
Examining data/seq24-0.9.3/src/perfnames.h
Examining data/seq24-0.9.3/src/userfile.h
Examining data/seq24-0.9.3/src/seqmenu.cpp
Examining data/seq24-0.9.3/src/options.cpp
Examining data/seq24-0.9.3/src/seqroll.cpp
Examining data/seq24-0.9.3/src/configfile.h
Examining data/seq24-0.9.3/src/event.cpp
Examining data/seq24-0.9.3/src/optionsfile.cpp
Examining data/seq24-0.9.3/src/seqdata.h
Examining data/seq24-0.9.3/src/perftime.h
Examining data/seq24-0.9.3/src/font.h
Examining data/seq24-0.9.3/src/midifile.h
Examining data/seq24-0.9.3/src/mainwnd.cpp
Examining data/seq24-0.9.3/src/optionsfile.h
Examining data/seq24-0.9.3/src/seqedit.cpp
Examining data/seq24-0.9.3/src/perfedit.h
Examining data/seq24-0.9.3/src/mainwid.h
Examining data/seq24-0.9.3/src/perfedit.cpp
Examining data/seq24-0.9.3/src/seqdata.cpp
Examining data/seq24-0.9.3/src/seqkeys.cpp
Examining data/seq24-0.9.3/src/lash.h
Examining data/seq24-0.9.3/src/seqevent.cpp
Examining data/seq24-0.9.3/src/seqtime.cpp
Examining data/seq24-0.9.3/src/seqkeys.h
Examining data/seq24-0.9.3/src/lash.cpp
Examining data/seq24-0.9.3/src/seqroll.h
Examining data/seq24-0.9.3/src/perfroll.cpp
Examining data/seq24-0.9.3/src/midibus.h
Examining data/seq24-0.9.3/src/midibus_portmidi.h
Examining data/seq24-0.9.3/src/perform.cpp
Examining data/seq24-0.9.3/src/perform.h
Examining data/seq24-0.9.3/src/perfroll.h
Examining data/seq24-0.9.3/src/sequence.h

FINAL RESULTS:

data/seq24-0.9.3/src/seq24.cpp:137:10:  [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.
    if ( getenv( HOME ) != NULL )
data/seq24-0.9.3/src/seq24.cpp:139: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.
        Glib::ustring home( getenv( HOME ));
data/seq24-0.9.3/src/seq24.cpp:179: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, "C:hi:jJmM:pPsSU:Vx:", long_options,
data/seq24-0.9.3/src/seq24.cpp:311:10:  [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.
    if ( getenv( HOME ) != NULL )
data/seq24-0.9.3/src/seq24.cpp:313: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.
        string home( getenv( HOME ));
data/seq24-0.9.3/src/configfile.h:41: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 m_line[1024];
data/seq24-0.9.3/src/event.h:62: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 m_data[2];
data/seq24-0.9.3/src/globals.h:250:7:  [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 c_scales_text[c_scale_size][6] =
data/seq24-0.9.3/src/keybindentry.cpp:48:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256] = "";
data/seq24-0.9.3/src/mainwid.cpp:187:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    char name[20];
data/seq24-0.9.3/src/mainwid.cpp:209:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    char str[20];
data/seq24-0.9.3/src/mainwid.h:95: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 m_seq_to_char[c_seqs_in_set];
data/seq24-0.9.3/src/midibus.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 name[60];
data/seq24-0.9.3/src/midibus.cpp: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 tmp[60];
data/seq24-0.9.3/src/midibus.cpp:92:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmp[60];
data/seq24-0.9.3/src/midibus.cpp:111:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmp[60];
data/seq24-0.9.3/src/midibus.cpp:348:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char buffer[3];
data/seq24-0.9.3/src/midibus.cpp:1207:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[60];
data/seq24-0.9.3/src/midibus.cpp:1233:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[60];
data/seq24-0.9.3/src/midibus.cpp:1466: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[0x1000];
data/seq24-0.9.3/src/midibus_portmidi.cpp:34:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmp[60];
data/seq24-0.9.3/src/midibus_portmidi.cpp:148: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.
	unsigned char buffer[3];
data/seq24-0.9.3/src/midifile.cpp:134: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 TrackName[256];
data/seq24-0.9.3/src/midifile.cpp:681: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 file_buffer[1024];
data/seq24-0.9.3/src/options.cpp:299: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 buf[16];
data/seq24-0.9.3/src/options.cpp:321: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 buf[16];
data/seq24-0.9.3/src/optionsfile.cpp:266: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 outs[1024];
data/seq24-0.9.3/src/perfedit.cpp: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 b[20];
data/seq24-0.9.3/src/perfedit.cpp:366: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 b[10];
data/seq24-0.9.3/src/perfedit.cpp:376: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 b[10];
data/seq24-0.9.3/src/perfedit.cpp:387: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 b[10];
data/seq24-0.9.3/src/perfnames.cpp:120: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 ss[3];
data/seq24-0.9.3/src/perfnames.cpp:158: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 name[50];
data/seq24-0.9.3/src/perfnames.cpp:168: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 str[20];
data/seq24-0.9.3/src/perform.cpp:1972:42:  [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[2] = {0,0};
data/seq24-0.9.3/src/perftime.cpp:168:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char bar[5];
data/seq24-0.9.3/src/seq24.cpp:248: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).
                if (atoi( optarg ) > 0) {
data/seq24-0.9.3/src/seq24.cpp:263:44:  [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).
                global_device_ignore_num = atoi( optarg );
data/seq24-0.9.3/src/seq24.cpp:276:66:  [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).
                global_interactionmethod = (interaction_method_e)atoi(optarg);
data/seq24-0.9.3/src/seqdata.cpp:119: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 val[5];
data/seq24-0.9.3/src/seqdata.cpp:121: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 num[6];
data/seq24-0.9.3/src/seqedit.cpp:312: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 b[20];
data/seq24-0.9.3/src/seqedit.cpp:574: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[11];
data/seq24-0.9.3/src/seqedit.cpp:971: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 b[16];
data/seq24-0.9.3/src/seqedit.cpp:1015: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 name[30];
data/seq24-0.9.3/src/seqedit.cpp:1043: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[30];
data/seq24-0.9.3/src/seqedit.cpp:1080: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 b[20];
data/seq24-0.9.3/src/seqedit.cpp:1193: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 b[10];
data/seq24-0.9.3/src/seqedit.cpp:1215: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 b[10];
data/seq24-0.9.3/src/seqedit.cpp:1232: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 b[10];
data/seq24-0.9.3/src/seqedit.cpp:1248:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char b[10];
data/seq24-0.9.3/src/seqedit.cpp:1315: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 b[10];
data/seq24-0.9.3/src/seqedit.cpp:1328: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 b[4];
data/seq24-0.9.3/src/seqedit.cpp: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 b[4];
data/seq24-0.9.3/src/seqedit.cpp:1439: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 text[100];
data/seq24-0.9.3/src/seqedit.cpp:1440: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 hex[20];
data/seq24-0.9.3/src/seqedit.cpp:1441: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[80];
data/seq24-0.9.3/src/seqkeys.cpp:160: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 notes[20];
data/seq24-0.9.3/src/seqmenu.cpp:95: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 b[4];
data/seq24-0.9.3/src/seqtime.cpp:240: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 bar[5];
data/seq24-0.9.3/src/userfile.cpp:52: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 bus_num[4];
data/seq24-0.9.3/src/userfile.cpp:77: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 instrument_num[4];
data/seq24-0.9.3/src/userfile.cpp:89: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 cc_name[1024];
data/seq24-0.9.3/src/font.cpp:55:18:  [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).
        length = strlen(str);
data/seq24-0.9.3/src/keybindentry.cpp:50:24:  [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* p_buf = &buf[strlen(buf)];
data/seq24-0.9.3/src/keybindentry.cpp:58:17:  [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).
    int width = strlen(buf)-1;
data/seq24-0.9.3/src/mainwnd.cpp:1048:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(m_sigpipe[0], &message, sizeof(message)) == -1)
data/seq24-0.9.3/src/midibus.cpp:419: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(80000);
data/seq24-0.9.3/src/midifile.cpp:113:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    file.read ((char *) &m_d[0], file_size);

ANALYSIS SUMMARY:

Hits = 69
Lines analyzed = 27000 in approximately 0.51 seconds (52909 lines/second)
Physical Source Lines of Code (SLOC) = 17743
Hits@level = [0] 238 [1]   6 [2]  58 [3]   5 [4]   0 [5]   0
Hits@level+ = [0+] 307 [1+]  69 [2+]  63 [3+]   5 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 17.3026 [1+] 3.88886 [2+] 3.5507 [3+] 0.281801 [4+]   0 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.