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/kaffeine-2.0.18/src/backend-mplayer/mplayermediawidget.cpp Examining data/kaffeine-2.0.18/src/backend-mplayer/mplayervideowidget.h Examining data/kaffeine-2.0.18/src/backend-mplayer/mplayervideowidget.cpp Examining data/kaffeine-2.0.18/src/backend-mplayer/mplayermediawidget.h Examining data/kaffeine-2.0.18/src/abstractmediawidget.h Examining data/kaffeine-2.0.18/src/ensurenopendingoperation.cpp Examining data/kaffeine-2.0.18/src/dbusobjects.cpp Examining data/kaffeine-2.0.18/src/iso-codes.cpp Examining data/kaffeine-2.0.18/src/mainwindow.h Examining data/kaffeine-2.0.18/src/mediawidget.cpp Examining data/kaffeine-2.0.18/src/main.cpp Examining data/kaffeine-2.0.18/src/ensurenopendingoperation.h Examining data/kaffeine-2.0.18/src/playlist/playlistmodel.cpp Examining data/kaffeine-2.0.18/src/playlist/playlistmodel.h Examining data/kaffeine-2.0.18/src/playlist/playlisttab.cpp Examining data/kaffeine-2.0.18/src/playlist/playlisttab.h Examining data/kaffeine-2.0.18/src/dvb/dvbliveview_p.h Examining data/kaffeine-2.0.18/src/dvb/dvbtransponder.h Examining data/kaffeine-2.0.18/src/dvb/dvbsi.cpp Examining data/kaffeine-2.0.18/src/dvb/dvbconfigdialog.cpp Examining data/kaffeine-2.0.18/src/dvb/dvbtransponder.cpp Examining data/kaffeine-2.0.18/src/dvb/dvbliveview.cpp Examining data/kaffeine-2.0.18/src/dvb/dvbtab.h Examining data/kaffeine-2.0.18/src/dvb/dvbcam_linux.cpp Examining data/kaffeine-2.0.18/src/dvb/dvbmanager.cpp Examining data/kaffeine-2.0.18/src/dvb/dvbbackenddevice.h Examining data/kaffeine-2.0.18/src/dvb/dvbchanneldialog_p.h Examining data/kaffeine-2.0.18/src/dvb/dvbepg.h Examining data/kaffeine-2.0.18/src/dvb/dvbdevice_linux.cpp Examining data/kaffeine-2.0.18/src/dvb/xmltv.cpp Examining data/kaffeine-2.0.18/src/dvb/dvbchannel.cpp Examining data/kaffeine-2.0.18/src/dvb/dvbepgdialog.cpp Examining data/kaffeine-2.0.18/src/dvb/dvbrecordingdialog.h Examining data/kaffeine-2.0.18/src/dvb/dvbepgdialog.h Examining data/kaffeine-2.0.18/src/dvb/dvbdevice_linux.h Examining data/kaffeine-2.0.18/src/dvb/dvbmanager.h Examining data/kaffeine-2.0.18/src/dvb/dvbscan.h Examining data/kaffeine-2.0.18/src/dvb/dvbdevice.h Examining data/kaffeine-2.0.18/src/dvb/dvbepg.cpp Examining data/kaffeine-2.0.18/src/dvb/dvbsi.h Examining data/kaffeine-2.0.18/src/dvb/dvbrecording.cpp Examining data/kaffeine-2.0.18/src/dvb/dvbscandialog.cpp Examining data/kaffeine-2.0.18/src/dvb/dvbrecording_p.h Examining data/kaffeine-2.0.18/src/dvb/dvbrecordingdialog_p.h Examining data/kaffeine-2.0.18/src/dvb/dvbchanneldialog.h Examining data/kaffeine-2.0.18/src/dvb/dvbtab.cpp Examining data/kaffeine-2.0.18/src/dvb/dvbmanager_p.h Examining data/kaffeine-2.0.18/src/dvb/dvbscan.cpp Examining data/kaffeine-2.0.18/src/dvb/dvbrecordingdialog.cpp Examining data/kaffeine-2.0.18/src/dvb/dvbcam_linux.h Examining data/kaffeine-2.0.18/src/dvb/dvbrecording.h Examining data/kaffeine-2.0.18/src/dvb/dvbconfigdialog.h Examining data/kaffeine-2.0.18/src/dvb/dvbchannel.h Examining data/kaffeine-2.0.18/src/dvb/dvbdevice_p.h Examining data/kaffeine-2.0.18/src/dvb/dvbdevice.cpp Examining data/kaffeine-2.0.18/src/dvb/dvbscandialog.h Examining data/kaffeine-2.0.18/src/dvb/dvbconfig.h Examining data/kaffeine-2.0.18/src/dvb/xmltv.h Examining data/kaffeine-2.0.18/src/dvb/dvbliveview.h Examining data/kaffeine-2.0.18/src/dvb/dvbchanneldialog.cpp Examining data/kaffeine-2.0.18/src/dvb/dvbepgdialog_p.h Examining data/kaffeine-2.0.18/src/dvb/dvbepg_p.h Examining data/kaffeine-2.0.18/src/mainwindow.cpp Examining data/kaffeine-2.0.18/src/iso-codes.h Examining data/kaffeine-2.0.18/src/sqlhelper.h Examining data/kaffeine-2.0.18/src/datetimeedit.h Examining data/kaffeine-2.0.18/src/abstractmediawidget.cpp Examining data/kaffeine-2.0.18/src/mediawidget_p.h Examining data/kaffeine-2.0.18/src/tablemodel.h Examining data/kaffeine-2.0.18/src/configuration.cpp Examining data/kaffeine-2.0.18/src/shareddata.h Examining data/kaffeine-2.0.18/src/configuration.h Examining data/kaffeine-2.0.18/src/sqlinterface.cpp Examining data/kaffeine-2.0.18/src/configurationdialog_p.h Examining data/kaffeine-2.0.18/src/log.h Examining data/kaffeine-2.0.18/src/sqlhelper.cpp Examining data/kaffeine-2.0.18/src/tabbase.h Examining data/kaffeine-2.0.18/src/configurationdialog.h Examining data/kaffeine-2.0.18/src/mediawidget.h Examining data/kaffeine-2.0.18/src/datetimeedit.cpp Examining data/kaffeine-2.0.18/src/osdwidget.cpp Examining data/kaffeine-2.0.18/src/configurationdialog.cpp Examining data/kaffeine-2.0.18/src/backend-vlc/vlcmediawidget.cpp Examining data/kaffeine-2.0.18/src/backend-vlc/vlcmediawidget.h Examining data/kaffeine-2.0.18/src/sqlinterface.h Examining data/kaffeine-2.0.18/src/osdwidget.h Examining data/kaffeine-2.0.18/src/dbusobjects.h Examining data/kaffeine-2.0.18/include/frontend.h Examining data/kaffeine-2.0.18/include/dmx.h Examining data/kaffeine-2.0.18/include/linuxtypes.h Examining data/kaffeine-2.0.18/tools/updatedvbsi.cpp Examining data/kaffeine-2.0.18/tools/convertscanfiles.cpp Examining data/kaffeine-2.0.18/tools/updatesource.cpp Examining data/kaffeine-2.0.18/tools/updatemimetypes.cpp FINAL RESULTS: data/kaffeine-2.0.18/src/dvb/dvbdevice_linux.cpp:64:2: [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. vsnprintf(log, sizeof(log), fmt, ap); data/kaffeine-2.0.18/src/dvb/dvbrecordingdialog.cpp:464:13: [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. QLocale::system().dayName(i + 1, QLocale::ShortFormat), widget); data/kaffeine-2.0.18/src/dvb/xmltv.cpp:374:8: [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. if (system != "") data/kaffeine-2.0.18/src/dvb/xmltv.cpp:390:8: [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. if (system != "") data/kaffeine-2.0.18/src/dvb/xmltv.cpp:442:8: [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. if (system != "xmltv_ns") data/kaffeine-2.0.18/src/dbusobjects.cpp:33:49: [3] (random) random: 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. argument << statusStruct.state << statusStruct.random << statusStruct.repeatTrack << data/kaffeine-2.0.18/src/dbusobjects.cpp:42:49: [3] (random) random: 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. argument >> statusStruct.state >> statusStruct.random >> statusStruct.repeatTrack >> data/kaffeine-2.0.18/src/dbusobjects.cpp:315:43: [3] (random) random: 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. void MprisTrackListObject::SetRandom(bool random) data/kaffeine-2.0.18/src/dbusobjects.cpp:317:25: [3] (random) random: 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. playlistTab->setRandom(random); data/kaffeine-2.0.18/src/dbusobjects.h:123:22: [3] (random) random: 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. void SetRandom(bool random); data/kaffeine-2.0.18/src/dbusobjects.h:166:6: [3] (random) random: 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. int random; data/kaffeine-2.0.18/src/playlist/playlisttab.cpp:576:34: [3] (random) random: 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. void PlaylistTab::setRandom(bool random) data/kaffeine-2.0.18/src/playlist/playlisttab.cpp:578:27: [3] (random) random: 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. randomAction->setChecked(random); data/kaffeine-2.0.18/src/playlist/playlisttab.h:86:22: [3] (random) random: 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. void setRandom(bool random); data/kaffeine-2.0.18/include/frontend.h:73: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 name[128]; data/kaffeine-2.0.18/src/backend-mplayer/mplayermediawidget.cpp:32:16: [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). standardError.open(stderr, QIODevice::WriteOnly); data/kaffeine-2.0.18/src/backend-vlc/vlcmediawidget.cpp:257:32: [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 **argv = new const char *[size]; data/kaffeine-2.0.18/src/dvb/dvbbackenddevice.h:86:33: [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. virtual void processData(const char data[188]) = 0; data/kaffeine-2.0.18/src/dvb/dvbcam_linux.cpp:66:9: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). caFd = open(QFile::encodeName(path).constData(), O_RDWR | O_NONBLOCK); data/kaffeine-2.0.18/src/dvb/dvbcam_linux.cpp:586:4: [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(messageData + index, descriptor.getData(), descriptor.getLength()); data/kaffeine-2.0.18/src/dvb/dvbcam_linux.cpp:614: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(messageData + index, descriptor.getData(), data/kaffeine-2.0.18/src/dvb/dvbchannel.cpp:148: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). if (!file.open(QIODevice::ReadOnly)) { data/kaffeine-2.0.18/src/dvb/dvbdevice.cpp:72:50: [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. void DvbSectionFilterInternal::processData(const char data[188]) data/kaffeine-2.0.18/src/dvb/dvbdevice.cpp:228:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!open(QIODevice::WriteOnly | QIODevice::Truncate)) { data/kaffeine-2.0.18/src/dvb/dvbdevice.cpp:237:39: [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. void DvbDataDumper::processData(const char data[188]) data/kaffeine-2.0.18/src/dvb/dvbdevice.h:126:25: [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. void processData(const char data[188]); data/kaffeine-2.0.18/src/dvb/dvbdevice_linux.cpp:61: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 log[1024]; data/kaffeine-2.0.18/src/dvb/dvbdevice_linux.cpp:271: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). dvrFd = open(QFile::encodeName(dvrPath).constData(), O_RDONLY | O_NONBLOCK | O_CLOEXEC); data/kaffeine-2.0.18/src/dvb/dvbdevice_linux.cpp:1386: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). int dmxFd = open(QFile::encodeName(demuxPath).constData(), O_RDONLY | O_NONBLOCK | O_CLOEXEC); data/kaffeine-2.0.18/src/dvb/dvbdevice_linux.cpp:1760: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 adapterstring[10]; data/kaffeine-2.0.18/src/dvb/dvbdevice_linux.cpp:1765:2: [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(adapterstring, "adapter%d", adapter); data/kaffeine-2.0.18/src/dvb/dvbdevice_linux.cpp:1840: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). if (!file.open(QIODevice::ReadOnly)) { data/kaffeine-2.0.18/src/dvb/dvbdevice_p.h:30: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 data[5 * 188]; data/kaffeine-2.0.18/src/dvb/dvbepg.cpp:78: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). if (!file.open(QIODevice::ReadOnly)) { data/kaffeine-2.0.18/src/dvb/dvbepg.cpp:184: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). if (!file.open(QIODevice::WriteOnly | QIODevice::Truncate)) { data/kaffeine-2.0.18/src/dvb/dvbliveview.cpp:451:32: [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). !internal->timeShiftFile.open(QIODevice::WriteOnly)) { data/kaffeine-2.0.18/src/dvb/dvbliveview.cpp:458:33: [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). !internal->timeShiftFile.open(QIODevice::WriteOnly)) { data/kaffeine-2.0.18/src/dvb/dvbliveview.cpp:601: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). readFd = open(QFile::encodeName(fileName).constData(), O_RDONLY | O_NONBLOCK); data/kaffeine-2.0.18/src/dvb/dvbliveview.cpp:608: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). writeFd = open(QFile::encodeName(fileName).constData(), O_WRONLY | O_NONBLOCK); data/kaffeine-2.0.18/src/dvb/dvbliveview.cpp:717:45: [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. void DvbLiveViewInternal::processData(const char data[188]) data/kaffeine-2.0.18/src/dvb/dvbliveview_p.h:135:25: [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. void processData(const char data[188]); data/kaffeine-2.0.18/src/dvb/dvbmanager.cpp:336: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). if (!file.open(QIODevice::WriteOnly | QIODevice::Truncate)) { data/kaffeine-2.0.18/src/dvb/dvbmanager.cpp:642: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). if (!file.open(QIODevice::ReadOnly)) { data/kaffeine-2.0.18/src/dvb/dvbmanager.cpp:722: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). if (!file.open(QIODevice::WriteOnly | QIODevice::Truncate)) { data/kaffeine-2.0.18/src/dvb/dvbmanager.cpp:802: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). if (globalFile.open(QIODevice::ReadOnly)) { data/kaffeine-2.0.18/src/dvb/dvbmanager.cpp:818:16: [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 (localFile.open(QIODevice::ReadOnly)) { data/kaffeine-2.0.18/src/dvb/dvbmanager.cpp:840: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). if (localFile.open(QIODevice::ReadOnly)) { data/kaffeine-2.0.18/src/dvb/dvbrecording.cpp:81: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). if (!file.open(QIODevice::ReadOnly)) { data/kaffeine-2.0.18/src/dvb/dvbrecording.cpp:816:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (file.open(QIODevice::WriteOnly)) { data/kaffeine-2.0.18/src/dvb/dvbrecording.cpp:845:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (file.open(QIODevice::ReadWrite)) data/kaffeine-2.0.18/src/dvb/dvbrecording.cpp:1047: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. void DvbRecordingFile::processData(const char data[188]) data/kaffeine-2.0.18/src/dvb/dvbrecording_p.h:50:25: [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. void processData(const char data[188]); data/kaffeine-2.0.18/src/dvb/dvbsi.cpp:1074:2: [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, section.getData(), entry.getData() - section.getData()); data/kaffeine-2.0.18/src/dvb/dvbsi.cpp:1079:4: [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 + size, entry.getData(), entry.getLength()); data/kaffeine-2.0.18/src/dvb/xmltv.cpp:586:9: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!f.open(QIODevice::ReadOnly)) { data/kaffeine-2.0.18/src/iso-codes.cpp:52: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). if (!f.open(QIODevice::ReadOnly)) { data/kaffeine-2.0.18/src/mainwindow.cpp:116:54: [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). connect(button, SIGNAL(clicked()), mainWindow, SLOT(open())); data/kaffeine-2.0.18/src/mainwindow.cpp:210:37: [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). QAction *action = KStandardAction::open(this, SLOT(open()), collection); data/kaffeine-2.0.18/src/mainwindow.cpp:210:53: [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). QAction *action = KStandardAction::open(this, SLOT(open()), collection); data/kaffeine-2.0.18/src/mainwindow.cpp:348:54: [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). connect(action, SIGNAL(triggered(bool)), this, SLOT(open())); data/kaffeine-2.0.18/src/mainwindow.cpp:706: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). void MainWindow::open() data/kaffeine-2.0.18/src/mainwindow.h:54:7: [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). void open(); data/kaffeine-2.0.18/src/playlist/playlistmodel.cpp:47: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). if (!file.open(QIODevice::ReadOnly)) { data/kaffeine-2.0.18/src/playlist/playlistmodel.cpp:80: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). if (!file.open(QIODevice::WriteOnly | QIODevice::Truncate)) { data/kaffeine-2.0.18/src/playlist/playlisttab.cpp:47: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). if (!file.open(QIODevice::ReadOnly)) { data/kaffeine-2.0.18/src/playlist/playlisttab.cpp:50:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!file.open(QIODevice::ReadOnly)) { data/kaffeine-2.0.18/src/playlist/playlisttab.cpp:128: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). if (!file.open(QIODevice::WriteOnly | QIODevice::Truncate)) { data/kaffeine-2.0.18/src/sqlhelper.cpp:54:26: [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 (!instance->database.open()) { data/kaffeine-2.0.18/tools/convertscanfiles.cpp:797:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!file.open(QIODevice::ReadOnly)) { data/kaffeine-2.0.18/tools/convertscanfiles.cpp:921: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). if (!file.open(QIODevice::WriteOnly | QIODevice::Truncate)) { data/kaffeine-2.0.18/tools/convertscanfiles.cpp:930:22: [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 (!compressedFile.open(QIODevice::WriteOnly | QIODevice::Truncate)) { data/kaffeine-2.0.18/tools/updatedvbsi.cpp:536: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 (!inFile.open(QIODevice::ReadOnly)) { data/kaffeine-2.0.18/tools/updatedvbsi.cpp:543: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). if (!outFile.open(QIODevice::WriteOnly | QIODevice::Truncate)) { data/kaffeine-2.0.18/tools/updatedvbsi.cpp:574: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). if (!xmlFile.open(QIODevice::ReadOnly)) { data/kaffeine-2.0.18/tools/updatedvbsi.cpp:640: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 (xmlFile.open(QIODevice::WriteOnly | QIODevice::Truncate)) { data/kaffeine-2.0.18/tools/updatemimetypes.cpp:47:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!file.open(QFile::ReadOnly)) { data/kaffeine-2.0.18/tools/updatemimetypes.cpp:217:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!file.open(QFile::WriteOnly | QFile::Truncate)) { data/kaffeine-2.0.18/tools/updatemimetypes.cpp:238:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!file.open(QFile::ReadOnly)) { data/kaffeine-2.0.18/tools/updatemimetypes.cpp:255:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!file.open(QFile::WriteOnly | QFile::Truncate)) { data/kaffeine-2.0.18/tools/updatesource.cpp:64:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!file.open(QIODevice::ReadOnly)) { data/kaffeine-2.0.18/tools/updatesource.cpp:171: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 | QIODevice::Truncate)) { data/kaffeine-2.0.18/src/dvb/dvbcam_linux.cpp:181:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int bytesRead = int(read(caFd, buffer.data() + size, buffer.size() - size)); data/kaffeine-2.0.18/src/dvb/dvbdevice.cpp:366:3: [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(15000); data/kaffeine-2.0.18/src/dvb/dvbdevice.cpp:368:3: [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(15000); data/kaffeine-2.0.18/src/dvb/dvbdevice.cpp:375:3: [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(15000); data/kaffeine-2.0.18/src/dvb/dvbdevice.cpp:377:3: [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(15000); data/kaffeine-2.0.18/src/dvb/dvbdevice_linux.cpp:1490:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int dataSize = int(read(dvrFd, dvrBuffer.data, bufferSize)); data/kaffeine-2.0.18/src/dvb/dvbdevice_linux.cpp:1501:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). dataSize = int(read(dvrFd, dvrBuffer.data, bufferSize)); data/kaffeine-2.0.18/src/dvb/dvbdevice_linux.cpp:1537:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(dvrPipe[0], &data, 1) != 1) { data/kaffeine-2.0.18/src/dvb/dvbdevice_linux.cpp:1569:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int dataSize = int(read(dvrFd, dvrBuffer.data, bufferSize)); data/kaffeine-2.0.18/src/dvb/dvbdevice_linux.cpp:1581:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). dataSize = int(read(dvrFd, dvrBuffer.data, bufferSize)); data/kaffeine-2.0.18/src/dvb/dvbdevice_linux.cpp:1844:25: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QByteArray data = file.read(8); data/kaffeine-2.0.18/src/dvb/dvbliveview.cpp:648:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (read(readFd, buffer.data(), buffer.size()) > 0) { data/kaffeine-2.0.18/src/dvb/dvbmanager.cpp:803:39: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). globalDate = DvbScanData(globalFile.read(1024)).readDate(); ANALYSIS SUMMARY: Hits = 94 Lines analyzed = 37100 in approximately 0.84 seconds (44310 lines/second) Physical Source Lines of Code (SLOC) = 28521 Hits@level = [0] 0 [1] 13 [2] 67 [3] 9 [4] 5 [5] 0 Hits@level+ = [0+] 94 [1+] 94 [2+] 81 [3+] 14 [4+] 5 [5+] 0 Hits/KSLOC@level+ = [0+] 3.29582 [1+] 3.29582 [2+] 2.84001 [3+] 0.490866 [4+] 0.175309 [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.