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/tutka-1.1.3/src/alsamidi.h
Examining data/tutka-1.1.3/src/midi.h
Examining data/tutka-1.1.3/src/blocklisttablemodel.h
Examining data/tutka-1.1.3/src/alsamidiinterface.cpp
Examining data/tutka-1.1.3/src/player.cpp
Examining data/tutka-1.1.3/src/scheduler.cpp
Examining data/tutka-1.1.3/src/schedulernanosleep.h
Examining data/tutka-1.1.3/src/coremidi.h
Examining data/tutka-1.1.3/src/transposedialog.h
Examining data/tutka-1.1.3/src/playingsequencelistdialog.h
Examining data/tutka-1.1.3/src/tracker.cpp
Examining data/tutka-1.1.3/src/smf.cpp
Examining data/tutka-1.1.3/src/song.cpp
Examining data/tutka-1.1.3/src/messagelistdialog.h
Examining data/tutka-1.1.3/src/expandshrinkdialog.cpp
Examining data/tutka-1.1.3/src/clickablelabel.h
Examining data/tutka-1.1.3/src/coremidi.cpp
Examining data/tutka-1.1.3/src/player.h
Examining data/tutka-1.1.3/src/instrument.cpp
Examining data/tutka-1.1.3/src/sectionlisttablemodel.h
Examining data/tutka-1.1.3/src/blocklisttablemodel.cpp
Examining data/tutka-1.1.3/src/alsamidiinterface.h
Examining data/tutka-1.1.3/src/schedulerrtc.cpp
Examining data/tutka-1.1.3/src/buffermidiinterface.cpp
Examining data/tutka-1.1.3/src/instrumentspinbox.h
Examining data/tutka-1.1.3/src/blocklistdialog.h
Examining data/tutka-1.1.3/src/trackvolumewidget.h
Examining data/tutka-1.1.3/src/outputmidiinterfacestablemodel.cpp
Examining data/tutka-1.1.3/src/mainwindow.h
Examining data/tutka-1.1.3/src/track.cpp
Examining data/tutka-1.1.3/src/inputmidiinterfacestablemodel.h
Examining data/tutka-1.1.3/src/conversion.h
Examining data/tutka-1.1.3/src/scheduler.h
Examining data/tutka-1.1.3/src/sliderwithlabel.cpp
Examining data/tutka-1.1.3/src/sectionlisttablemodel.cpp
Examining data/tutka-1.1.3/src/playingsequencetablemodel.cpp
Examining data/tutka-1.1.3/src/sliderwithlabel.h
Examining data/tutka-1.1.3/src/coremidiinterface.h
Examining data/tutka-1.1.3/src/message.h
Examining data/tutka-1.1.3/src/buffermidiinterface.h
Examining data/tutka-1.1.3/src/tutkadialog.h
Examining data/tutka-1.1.3/src/messagelisttablemodel.cpp
Examining data/tutka-1.1.3/src/main.cpp
Examining data/tutka-1.1.3/src/outputmidiinterfacestablemodel.h
Examining data/tutka-1.1.3/src/playseq.cpp
Examining data/tutka-1.1.3/src/trackvolumesdialog.h
Examining data/tutka-1.1.3/src/playingsequencelisttablemodel.cpp
Examining data/tutka-1.1.3/src/playingsequencelistdialog.cpp
Examining data/tutka-1.1.3/src/mmd.h
Examining data/tutka-1.1.3/src/instrumentpropertiesdialog.h
Examining data/tutka-1.1.3/src/changeinstrumentdialog.cpp
Examining data/tutka-1.1.3/src/playingsequencelisttablemodel.h
Examining data/tutka-1.1.3/src/preferencesdialog.cpp
Examining data/tutka-1.1.3/src/midi.cpp
Examining data/tutka-1.1.3/src/blocklistdialog.cpp
Examining data/tutka-1.1.3/src/conversion.cpp
Examining data/tutka-1.1.3/src/block.cpp
Examining data/tutka-1.1.3/src/block.h
Examining data/tutka-1.1.3/src/playseq.h
Examining data/tutka-1.1.3/src/transposedialog.cpp
Examining data/tutka-1.1.3/src/helpdialog.h
Examining data/tutka-1.1.3/src/changeinstrumentdialog.h
Examining data/tutka-1.1.3/src/track.h
Examining data/tutka-1.1.3/src/helpdialog.cpp
Examining data/tutka-1.1.3/src/playingsequencedialog.cpp
Examining data/tutka-1.1.3/src/midiinterface.cpp
Examining data/tutka-1.1.3/src/messagelistdialog.cpp
Examining data/tutka-1.1.3/src/tracker.h
Examining data/tutka-1.1.3/src/songpropertiesdialog.cpp
Examining data/tutka-1.1.3/src/mainwindow.cpp
Examining data/tutka-1.1.3/src/preferencesdialog.h
Examining data/tutka-1.1.3/src/alsamidi.cpp
Examining data/tutka-1.1.3/src/midiinterface.h
Examining data/tutka-1.1.3/src/coremidiinterface.cpp
Examining data/tutka-1.1.3/src/buffermidi.cpp
Examining data/tutka-1.1.3/src/tutkadialog.cpp
Examining data/tutka-1.1.3/src/messagelisttablemodel.h
Examining data/tutka-1.1.3/src/song.h
Examining data/tutka-1.1.3/src/playingsequencetablemodel.h
Examining data/tutka-1.1.3/src/sectionlistdialog.h
Examining data/tutka-1.1.3/src/inputmidiinterfacestablemodel.cpp
Examining data/tutka-1.1.3/src/instrumentspinbox.cpp
Examining data/tutka-1.1.3/src/instrumentpropertiesdialog.cpp
Examining data/tutka-1.1.3/src/mmd.cpp
Examining data/tutka-1.1.3/src/smf.h
Examining data/tutka-1.1.3/src/sectionlistdialog.cpp
Examining data/tutka-1.1.3/src/spinboxdelegate.cpp
Examining data/tutka-1.1.3/src/spinboxdelegate.h
Examining data/tutka-1.1.3/src/playingsequencedialog.h
Examining data/tutka-1.1.3/src/message.cpp
Examining data/tutka-1.1.3/src/schedulerrtc.h
Examining data/tutka-1.1.3/src/schedulernanosleep.cpp
Examining data/tutka-1.1.3/src/songpropertiesdialog.h
Examining data/tutka-1.1.3/src/clickablelabel.cpp
Examining data/tutka-1.1.3/src/expandshrinkdialog.h
Examining data/tutka-1.1.3/src/trackvolumesdialog.cpp
Examining data/tutka-1.1.3/src/instrument.h
Examining data/tutka-1.1.3/src/buffermidi.h
Examining data/tutka-1.1.3/src/trackvolumewidget.cpp

FINAL RESULTS:

data/tutka-1.1.3/src/main.cpp:73:80:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    translator.load(QString("/usr/share/tutka/translations/tutka_") + QLocale::system().name());
data/tutka-1.1.3/src/alsamidi.cpp:203:30:  [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 temp[length];
data/tutka-1.1.3/src/block.cpp:152:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(commands, commands_, existingCommandPages * 2 * tracks_ * length_);
data/tutka-1.1.3/src/buffermidiinterface.cpp:92:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(newmessage + i + 1, data + 1, length - 1);
data/tutka-1.1.3/src/conversion.cpp:139: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 commandconversion[256];
data/tutka-1.1.3/src/conversion.cpp:298:66:  [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.
                song->message(number)->setData(QByteArray((const char *)dumps[number]->data, dumps[number]->length));
data/tutka-1.1.3/src/conversion.cpp:301:73:  [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.
                    song->message(number)->setName(QString::fromLatin1((char *)dumps[number]->name));
data/tutka-1.1.3/src/conversion.cpp:365: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 commandConversion[256];
data/tutka-1.1.3/src/conversion.cpp:550:46:  [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.
            dumps[message]->data = (unsigned char *)calloc(dumps[message]->length, sizeof(unsigned char));
data/tutka-1.1.3/src/conversion.cpp:551: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(dumps[message]->data, song->message(message)->data().constData(), dumps[message]->length);
data/tutka-1.1.3/src/conversion.cpp:553:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                strncpy((char *)dumps[message]->name, song->message(message)->name().toLatin1().constData(), 20);
data/tutka-1.1.3/src/conversion.cpp:555:57:  [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.
                dumps[message]->ext_len = strlen((const char *)dumps[message]->name);
data/tutka-1.1.3/src/conversion.cpp:575: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 endMTrk[3];
data/tutka-1.1.3/src/coremidiinterface.cpp:40: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(list.packet[0].data, data.constData(), data.length());
data/tutka-1.1.3/src/message.cpp:96:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (file.open(QIODevice::ReadOnly)) {
data/tutka-1.1.3/src/message.cpp:105:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (file.open(QIODevice::WriteOnly)) {
data/tutka-1.1.3/src/message.cpp:116: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 c[3];
data/tutka-1.1.3/src/mmd.cpp:175:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((file = fopen(filename, "r")) == NULL) {
data/tutka-1.1.3/src/mmd.cpp:228:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(data + offsets[0], mmd->song->playseqtable[i]->name, 32);
data/tutka-1.1.3/src/mmd.cpp:330:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(data + offsets[0], mmd->blockarr[i]->info->blockname, mmd->blockarr[i]->info->blocknamelen);
data/tutka-1.1.3/src/mmd.cpp:341:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(data + offsets[0], mmd->blockarr[i]->info->pagetable->page[j], (mmd->blockarr[i]->numtracks * (mmd->blockarr[i]->lines + 1)) * sizeof(unsigned short));
data/tutka-1.1.3/src/mmd.cpp:364:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(data + offsets[0] + 8, (unsigned char *)mmd->blockarr[i] + sizeof(struct MMD1Block), 4 * mmd->blockarr[i]->numtracks * (mmd->blockarr[i]->lines + 1));
data/tutka-1.1.3/src/mmd.cpp:374: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(data + offsets[0], mmd->expdata->annotxt, mmd->expdata->annolen);
data/tutka-1.1.3/src/mmd.cpp:405:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(data + offsets[0], mmd->expdata->iinfo[i].name, sizeof_struct_MMDInstrInfo);
data/tutka-1.1.3/src/mmd.cpp:420: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(data + offsets[0] + 12, mmd->expdata->n_info->trkshow, 96);
data/tutka-1.1.3/src/mmd.cpp:429: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(data + offsets[0] + 12, ((unsigned char *)mmd->expdata->mmdinfo) + sizeof(struct MMDInfo), mmd->expdata->mmdinfo->length);
data/tutka-1.1.3/src/mmd.cpp:436: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(data + offsets[0], mmd->expdata->songname, mmd->expdata->songnamelen);
data/tutka-1.1.3/src/mmd.cpp:454:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(data + offsets[0], dumps[i]->data, dumps[i]->length);
data/tutka-1.1.3/src/mmd.cpp:461:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(data + offsets[0] + 10, dumps[i]->name, dumps[i]->ext_len);
data/tutka-1.1.3/src/mmd.cpp:491:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(data + offsets[0], trigs[i]->cmd, trigs[i]->cmd_len);
data/tutka-1.1.3/src/mmd.cpp:497:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(data + offsets[0], trigs[i]->port, trigs[i]->port_len);
data/tutka-1.1.3/src/mmd.cpp:568:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((file = fopen(filename, "w")) == NULL) {
data/tutka-1.1.3/src/mmd.cpp:719:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(song->playseqtable[i]->name, data2, 32);
data/tutka-1.1.3/src/mmd.cpp:773: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(block->info->blockname, base + getlong(data2 + 4), block->info->blocknamelen);
data/tutka-1.1.3/src/mmd.cpp:841:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(mmd0exp->annotxt, base + getlong(data + 12), mmd0exp->annolen);
data/tutka-1.1.3/src/mmd.cpp:848:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&mmd0exp->iinfo[i], base + getlong(data + 20) + i * mmd0exp->i_ext_entrsz, sizeof_struct_MMDInstrInfo);
data/tutka-1.1.3/src/mmd.cpp:853: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(mmd0exp->rgbtable, data + 32, 16);
data/tutka-1.1.3/src/mmd.cpp:871:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(mmd0exp->n_info->trkshow, data2 + 12, 96);
data/tutka-1.1.3/src/mmd.cpp:876: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(mmd0exp->songname, base + getlong(data + 44), mmd0exp->songnamelen);
data/tutka-1.1.3/src/mmd.cpp:893:40:  [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.
            dumps[i]->data = (unsigned char *)calloc(dumps[i]->length, sizeof(unsigned char));
data/tutka-1.1.3/src/mmd.cpp:895: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(dumps[i]->data, base + getlong(data3 + 4), dumps[i]->length);
data/tutka-1.1.3/src/mmd.cpp:899:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(dumps[i]->name, data3 + 10, 20);
data/tutka-1.1.3/src/mmd.cpp:910:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(((unsigned char *)mmd0exp->mmdinfo) + sizeof(struct MMDInfo), data2 + 12, mmd0exp->mmdinfo->length);
data/tutka-1.1.3/src/mmd.cpp:932:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(trig->cmd, base + getlong(data2 + 8), trig->cmd_len);
data/tutka-1.1.3/src/mmd.cpp:937:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(trig->port, base + getlong(data2 + 12), trig->port_len);
data/tutka-1.1.3/src/mmd.h:63: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 reserved[3];
data/tutka-1.1.3/src/mmd.h:85: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 reserved[3];
data/tutka-1.1.3/src/mmd.h:111: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 playseq[256]; // offs: 508
data/tutka-1.1.3/src/mmd.h:117: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 trkvol[16]; // offs: 770
data/tutka-1.1.3/src/mmd.h:152: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 pad0[223]; // reserved for future expansion
data/tutka-1.1.3/src/mmd.h:159: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 pad1[16]; // used to be trackvols, in MMD2 reserved
data/tutka-1.1.3/src/mmd.h: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 name[32]; // (0)  31 chars + \0
data/tutka-1.1.3/src/mmd.h:209: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 reserved[3];
data/tutka-1.1.3/src/mmd.h:217: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 voltbl[128]; // offs: 22
data/tutka-1.1.3/src/mmd.h:218: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 wftbl[128]; // offs: 150
data/tutka-1.1.3/src/mmd.h:234: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 channelsplit[4];
data/tutka-1.1.3/src/mmd.h:264: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[40];
data/tutka-1.1.3/src/mmd.h:271: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 trkshow[16];
data/tutka-1.1.3/src/mmd.h:272: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 trkghost[16];
data/tutka-1.1.3/src/mmd.h:273: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 notetr[63];
data/tutka-1.1.3/src/mmd.h:287: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];
data/tutka-1.1.3/src/player.cpp:1031:14:  [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(QIODevice::ReadOnly);
data/tutka-1.1.3/src/schedulerrtc.cpp:44:11:  [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).
    rtc = open("/dev/rtc", O_RDONLY);
data/tutka-1.1.3/src/smf.cpp:38:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file.open(QIODevice::WriteOnly);
data/tutka-1.1.3/src/song.cpp:38: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).
        if (file.open(QIODevice::ReadOnly)) {
data/tutka-1.1.3/src/song.cpp:913:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file.open(QIODevice::WriteOnly);
data/tutka-1.1.3/src/tracker.cpp:364: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 noteNames[128] = {
data/tutka-1.1.3/src/tracker.cpp:412: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[TRACKER_TRACK_WIDTH + 1];
data/tutka-1.1.3/src/tracker.cpp:438:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "%03d", line);
data/tutka-1.1.3/src/conversion.cpp:399:37:  [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).
        mmd->expdata->songnamelen = strlen(mmd->expdata->songname) + 1;
data/tutka-1.1.3/src/conversion.cpp:422:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(PlaySeq->name, playseq->name().toLatin1().constData(), 31);
data/tutka-1.1.3/src/conversion.cpp:452:45:  [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).
            MMD1Block->info->blocknamelen = strlen(MMD1Block->info->blockname);
data/tutka-1.1.3/src/conversion.cpp:524:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy((char *)mmd->expdata->iinfo[instrument].name, song->instrument(instrument)->name().toLatin1().constData(), 40);
data/tutka-1.1.3/src/conversion.cpp:553:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy((char *)dumps[message]->name, song->message(message)->name().toLatin1().constData(), 20);
data/tutka-1.1.3/src/conversion.cpp:555:43:  [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).
                dumps[message]->ext_len = strlen((const char *)dumps[message]->name);
data/tutka-1.1.3/src/main.cpp:114:5:  [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(1000000);
data/tutka-1.1.3/src/message.cpp:98:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        file.read(data_.data(), file.size());
data/tutka-1.1.3/src/player.cpp:1032:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        QByteArray header = file.read(4);
data/tutka-1.1.3/src/schedulerrtc.cpp:101:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            ssize_t n = read(rtc, &l, sizeof(unsigned long));

ANALYSIS SUMMARY:

Hits = 79
Lines analyzed = 15956 in approximately 0.41 seconds (38512 lines/second)
Physical Source Lines of Code (SLOC) = 11026
Hits@level = [0]   4 [1]  10 [2]  68 [3]   0 [4]   1 [5]   0
Hits@level+ = [0+]  83 [1+]  79 [2+]  69 [3+]   1 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 7.52766 [1+] 7.16488 [2+] 6.25794 [3+] 0.0906947 [4+] 0.0906947 [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.