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/copyq-3.13.0/plugins/itemencrypted/itemencrypted.cpp Examining data/copyq-3.13.0/plugins/itemencrypted/itemencrypted.h Examining data/copyq-3.13.0/plugins/itemencrypted/tests/itemencryptedtests.cpp Examining data/copyq-3.13.0/plugins/itemencrypted/tests/itemencryptedtests.h Examining data/copyq-3.13.0/plugins/itemfakevim/fakevim/fakevimactions.cpp Examining data/copyq-3.13.0/plugins/itemfakevim/fakevim/fakevimactions.h Examining data/copyq-3.13.0/plugins/itemfakevim/fakevim/fakevimhandler.cpp Examining data/copyq-3.13.0/plugins/itemfakevim/fakevim/fakevimhandler.h Examining data/copyq-3.13.0/plugins/itemfakevim/fakevim/fakevimtr.h Examining data/copyq-3.13.0/plugins/itemfakevim/fakevim/utils/hostosinfo.h Examining data/copyq-3.13.0/plugins/itemfakevim/fakevim/utils/qtcassert.cpp Examining data/copyq-3.13.0/plugins/itemfakevim/fakevim/utils/qtcassert.h Examining data/copyq-3.13.0/plugins/itemfakevim/fakevim/utils/utils_global.h Examining data/copyq-3.13.0/plugins/itemfakevim/itemfakevim.cpp Examining data/copyq-3.13.0/plugins/itemfakevim/itemfakevim.h Examining data/copyq-3.13.0/plugins/itemfakevim/tests/itemfakevimtests.cpp Examining data/copyq-3.13.0/plugins/itemfakevim/tests/itemfakevimtests.h Examining data/copyq-3.13.0/plugins/itemimage/itemimage.cpp Examining data/copyq-3.13.0/plugins/itemimage/itemimage.h Examining data/copyq-3.13.0/plugins/itemnotes/itemnotes.cpp Examining data/copyq-3.13.0/plugins/itemnotes/itemnotes.h Examining data/copyq-3.13.0/plugins/itempinned/itempinned.cpp Examining data/copyq-3.13.0/plugins/itempinned/itempinned.h Examining data/copyq-3.13.0/plugins/itempinned/tests/itempinnedtests.cpp Examining data/copyq-3.13.0/plugins/itempinned/tests/itempinnedtests.h Examining data/copyq-3.13.0/plugins/itemsync/filewatcher.cpp Examining data/copyq-3.13.0/plugins/itemsync/filewatcher.h Examining data/copyq-3.13.0/plugins/itemsync/itemsync.cpp Examining data/copyq-3.13.0/plugins/itemsync/itemsync.h Examining data/copyq-3.13.0/plugins/itemsync/tests/itemsynctests.cpp Examining data/copyq-3.13.0/plugins/itemsync/tests/itemsynctests.h Examining data/copyq-3.13.0/plugins/itemtags/itemtags.cpp Examining data/copyq-3.13.0/plugins/itemtags/itemtags.h Examining data/copyq-3.13.0/plugins/itemtags/tests/itemtagstests.cpp Examining data/copyq-3.13.0/plugins/itemtags/tests/itemtagstests.h Examining data/copyq-3.13.0/plugins/itemtext/itemtext.cpp Examining data/copyq-3.13.0/plugins/itemtext/itemtext.h Examining data/copyq-3.13.0/plugins/itemweb/itemweb.cpp Examining data/copyq-3.13.0/plugins/itemweb/itemweb.h Examining data/copyq-3.13.0/qt/bytearrayclass.cpp Examining data/copyq-3.13.0/qt/bytearrayclass.h Examining data/copyq-3.13.0/qt/bytearrayprototype.cpp Examining data/copyq-3.13.0/qt/bytearrayprototype.h Examining data/copyq-3.13.0/qxt/qxtglobalshortcut.cpp Examining data/copyq-3.13.0/qxt/qxtglobalshortcut.h Examining data/copyq-3.13.0/qxt/qxtglobalshortcut_mac.cpp Examining data/copyq-3.13.0/qxt/qxtglobalshortcut_p.h Examining data/copyq-3.13.0/qxt/qxtglobalshortcut_win.cpp Examining data/copyq-3.13.0/qxt/qxtglobalshortcut_x11.cpp Examining data/copyq-3.13.0/qxt/xcbkeyboard.h Examining data/copyq-3.13.0/src/app/app.cpp Examining data/copyq-3.13.0/src/app/app.h Examining data/copyq-3.13.0/src/app/applicationexceptionhandler.cpp Examining data/copyq-3.13.0/src/app/applicationexceptionhandler.h Examining data/copyq-3.13.0/src/app/clipboardclient.cpp Examining data/copyq-3.13.0/src/app/clipboardclient.h Examining data/copyq-3.13.0/src/app/clipboardmonitor.cpp Examining data/copyq-3.13.0/src/app/clipboardmonitor.h Examining data/copyq-3.13.0/src/app/clipboardownermonitor.cpp Examining data/copyq-3.13.0/src/app/clipboardownermonitor.h Examining data/copyq-3.13.0/src/app/clipboardserver.cpp Examining data/copyq-3.13.0/src/app/clipboardserver.h Examining data/copyq-3.13.0/src/common/action.cpp Examining data/copyq-3.13.0/src/common/action.h Examining data/copyq-3.13.0/src/common/actionhandlerenums.h Examining data/copyq-3.13.0/src/common/actionoutput.cpp Examining data/copyq-3.13.0/src/common/actionoutput.h Examining data/copyq-3.13.0/src/common/actiontablemodel.cpp Examining data/copyq-3.13.0/src/common/actiontablemodel.h Examining data/copyq-3.13.0/src/common/appconfig.cpp Examining data/copyq-3.13.0/src/common/appconfig.h Examining data/copyq-3.13.0/src/common/client_server.cpp Examining data/copyq-3.13.0/src/common/client_server.h Examining data/copyq-3.13.0/src/common/clientsocket.cpp Examining data/copyq-3.13.0/src/common/clientsocket.h Examining data/copyq-3.13.0/src/common/clipboardmode.h Examining data/copyq-3.13.0/src/common/command.h Examining data/copyq-3.13.0/src/common/commandstatus.h Examining data/copyq-3.13.0/src/common/commandstore.cpp Examining data/copyq-3.13.0/src/common/commandstore.h Examining data/copyq-3.13.0/src/common/common.cpp Examining data/copyq-3.13.0/src/common/common.h Examining data/copyq-3.13.0/src/common/config.cpp Examining data/copyq-3.13.0/src/common/config.h Examining data/copyq-3.13.0/src/common/contenttype.h Examining data/copyq-3.13.0/src/common/display.cpp Examining data/copyq-3.13.0/src/common/display.h Examining data/copyq-3.13.0/src/common/globalshortcutcommands.cpp Examining data/copyq-3.13.0/src/common/globalshortcutcommands.h Examining data/copyq-3.13.0/src/common/log.cpp Examining data/copyq-3.13.0/src/common/log.h Examining data/copyq-3.13.0/src/common/messagehandlerforqt.cpp Examining data/copyq-3.13.0/src/common/messagehandlerforqt.h Examining data/copyq-3.13.0/src/common/mimetypes.cpp Examining data/copyq-3.13.0/src/common/mimetypes.h Examining data/copyq-3.13.0/src/common/option.cpp Examining data/copyq-3.13.0/src/common/option.h Examining data/copyq-3.13.0/src/common/predefinedcommands.cpp Examining data/copyq-3.13.0/src/common/predefinedcommands.h Examining data/copyq-3.13.0/src/common/processsignals.h Examining data/copyq-3.13.0/src/common/regexp.h Examining data/copyq-3.13.0/src/common/sanitize_text_document.cpp Examining data/copyq-3.13.0/src/common/sanitize_text_document.h Examining data/copyq-3.13.0/src/common/server.cpp Examining data/copyq-3.13.0/src/common/server.h Examining data/copyq-3.13.0/src/common/settings.cpp Examining data/copyq-3.13.0/src/common/settings.h Examining data/copyq-3.13.0/src/common/shortcuts.cpp Examining data/copyq-3.13.0/src/common/shortcuts.h Examining data/copyq-3.13.0/src/common/sleeptimer.h Examining data/copyq-3.13.0/src/common/tabs.cpp Examining data/copyq-3.13.0/src/common/tabs.h Examining data/copyq-3.13.0/src/common/temporaryfile.cpp Examining data/copyq-3.13.0/src/common/temporaryfile.h Examining data/copyq-3.13.0/src/common/temporarysettings.cpp Examining data/copyq-3.13.0/src/common/temporarysettings.h Examining data/copyq-3.13.0/src/common/textdata.cpp Examining data/copyq-3.13.0/src/common/textdata.h Examining data/copyq-3.13.0/src/common/timer.h Examining data/copyq-3.13.0/src/gui/aboutdialog.cpp Examining data/copyq-3.13.0/src/gui/aboutdialog.h Examining data/copyq-3.13.0/src/gui/actiondialog.cpp Examining data/copyq-3.13.0/src/gui/actiondialog.h Examining data/copyq-3.13.0/src/gui/actionhandler.cpp Examining data/copyq-3.13.0/src/gui/actionhandler.h Examining data/copyq-3.13.0/src/gui/actionhandlerdialog.cpp Examining data/copyq-3.13.0/src/gui/actionhandlerdialog.h Examining data/copyq-3.13.0/src/gui/addcommanddialog.cpp Examining data/copyq-3.13.0/src/gui/addcommanddialog.h Examining data/copyq-3.13.0/src/gui/clipboardbrowser.cpp Examining data/copyq-3.13.0/src/gui/clipboardbrowser.h Examining data/copyq-3.13.0/src/gui/clipboardbrowserplaceholder.cpp Examining data/copyq-3.13.0/src/gui/clipboardbrowserplaceholder.h Examining data/copyq-3.13.0/src/gui/clipboardbrowsershared.h Examining data/copyq-3.13.0/src/gui/clipboarddialog.cpp Examining data/copyq-3.13.0/src/gui/clipboarddialog.h Examining data/copyq-3.13.0/src/gui/clipboardspy.cpp Examining data/copyq-3.13.0/src/gui/clipboardspy.h Examining data/copyq-3.13.0/src/gui/commandaction.cpp Examining data/copyq-3.13.0/src/gui/commandaction.h Examining data/copyq-3.13.0/src/gui/commandcompleter.cpp Examining data/copyq-3.13.0/src/gui/commandcompleter.h Examining data/copyq-3.13.0/src/gui/commandcompleterdocumentation.h Examining data/copyq-3.13.0/src/gui/commanddialog.cpp Examining data/copyq-3.13.0/src/gui/commanddialog.h Examining data/copyq-3.13.0/src/gui/commandedit.cpp Examining data/copyq-3.13.0/src/gui/commandedit.h Examining data/copyq-3.13.0/src/gui/commandhelpbutton.cpp Examining data/copyq-3.13.0/src/gui/commandhelpbutton.h Examining data/copyq-3.13.0/src/gui/commandsyntaxhighlighter.cpp Examining data/copyq-3.13.0/src/gui/commandsyntaxhighlighter.h Examining data/copyq-3.13.0/src/gui/commandwidget.cpp Examining data/copyq-3.13.0/src/gui/commandwidget.h Examining data/copyq-3.13.0/src/gui/configtabappearance.cpp Examining data/copyq-3.13.0/src/gui/configtabappearance.h Examining data/copyq-3.13.0/src/gui/configtabtabs.cpp Examining data/copyq-3.13.0/src/gui/configtabtabs.h Examining data/copyq-3.13.0/src/gui/configurationmanager.cpp Examining data/copyq-3.13.0/src/gui/configurationmanager.h Examining data/copyq-3.13.0/src/gui/execmenu.cpp Examining data/copyq-3.13.0/src/gui/execmenu.h Examining data/copyq-3.13.0/src/gui/fancylineedit.cpp Examining data/copyq-3.13.0/src/gui/fancylineedit.h Examining data/copyq-3.13.0/src/gui/filedialog.cpp Examining data/copyq-3.13.0/src/gui/filedialog.h Examining data/copyq-3.13.0/src/gui/filtercompleter.cpp Examining data/copyq-3.13.0/src/gui/filtercompleter.h Examining data/copyq-3.13.0/src/gui/filterlineedit.cpp Examining data/copyq-3.13.0/src/gui/filterlineedit.h Examining data/copyq-3.13.0/src/gui/fix_icon_id.h Examining data/copyq-3.13.0/src/gui/icon_list.h Examining data/copyq-3.13.0/src/gui/iconfactory.cpp Examining data/copyq-3.13.0/src/gui/iconfactory.h Examining data/copyq-3.13.0/src/gui/iconfont.cpp Examining data/copyq-3.13.0/src/gui/iconfont.h Examining data/copyq-3.13.0/src/gui/icons.h Examining data/copyq-3.13.0/src/gui/iconselectbutton.cpp Examining data/copyq-3.13.0/src/gui/iconselectbutton.h Examining data/copyq-3.13.0/src/gui/iconselectdialog.cpp Examining data/copyq-3.13.0/src/gui/iconselectdialog.h Examining data/copyq-3.13.0/src/gui/iconwidget.cpp Examining data/copyq-3.13.0/src/gui/iconwidget.h Examining data/copyq-3.13.0/src/gui/importexportdialog.cpp Examining data/copyq-3.13.0/src/gui/importexportdialog.h Examining data/copyq-3.13.0/src/gui/itemorderlist.cpp Examining data/copyq-3.13.0/src/gui/itemorderlist.h Examining data/copyq-3.13.0/src/gui/logdialog.cpp Examining data/copyq-3.13.0/src/gui/logdialog.h Examining data/copyq-3.13.0/src/gui/mainwindow.cpp Examining data/copyq-3.13.0/src/gui/mainwindow.h Examining data/copyq-3.13.0/src/gui/menuitems.cpp Examining data/copyq-3.13.0/src/gui/menuitems.h Examining data/copyq-3.13.0/src/gui/notification.cpp Examining data/copyq-3.13.0/src/gui/notification.h Examining data/copyq-3.13.0/src/gui/notificationbutton.h Examining data/copyq-3.13.0/src/gui/notificationdaemon.cpp Examining data/copyq-3.13.0/src/gui/notificationdaemon.h Examining data/copyq-3.13.0/src/gui/pixelratio.h Examining data/copyq-3.13.0/src/gui/pluginwidget.cpp Examining data/copyq-3.13.0/src/gui/pluginwidget.h Examining data/copyq-3.13.0/src/gui/screen.cpp Examining data/copyq-3.13.0/src/gui/screen.h Examining data/copyq-3.13.0/src/gui/shortcutbutton.cpp Examining data/copyq-3.13.0/src/gui/shortcutbutton.h Examining data/copyq-3.13.0/src/gui/shortcutdialog.cpp Examining data/copyq-3.13.0/src/gui/shortcutdialog.h Examining data/copyq-3.13.0/src/gui/shortcutswidget.cpp Examining data/copyq-3.13.0/src/gui/shortcutswidget.h Examining data/copyq-3.13.0/src/gui/tabbar.cpp Examining data/copyq-3.13.0/src/gui/tabbar.h Examining data/copyq-3.13.0/src/gui/tabdialog.cpp Examining data/copyq-3.13.0/src/gui/tabdialog.h Examining data/copyq-3.13.0/src/gui/tabicons.cpp Examining data/copyq-3.13.0/src/gui/tabicons.h Examining data/copyq-3.13.0/src/gui/tabpropertieswidget.cpp Examining data/copyq-3.13.0/src/gui/tabpropertieswidget.h Examining data/copyq-3.13.0/src/gui/tabswidgetinterface.h Examining data/copyq-3.13.0/src/gui/tabtree.cpp Examining data/copyq-3.13.0/src/gui/tabtree.h Examining data/copyq-3.13.0/src/gui/tabwidget.cpp Examining data/copyq-3.13.0/src/gui/tabwidget.h Examining data/copyq-3.13.0/src/gui/theme.cpp Examining data/copyq-3.13.0/src/gui/theme.h Examining data/copyq-3.13.0/src/gui/traymenu.cpp Examining data/copyq-3.13.0/src/gui/traymenu.h Examining data/copyq-3.13.0/src/gui/windowgeometryguard.cpp Examining data/copyq-3.13.0/src/gui/windowgeometryguard.h Examining data/copyq-3.13.0/src/item/clipboarditem.cpp Examining data/copyq-3.13.0/src/item/clipboarditem.h Examining data/copyq-3.13.0/src/item/clipboardmodel.cpp Examining data/copyq-3.13.0/src/item/clipboardmodel.h Examining data/copyq-3.13.0/src/item/itemdelegate.cpp Examining data/copyq-3.13.0/src/item/itemdelegate.h Examining data/copyq-3.13.0/src/item/itemeditor.cpp Examining data/copyq-3.13.0/src/item/itemeditor.h Examining data/copyq-3.13.0/src/item/itemeditorwidget.cpp Examining data/copyq-3.13.0/src/item/itemeditorwidget.h Examining data/copyq-3.13.0/src/item/itemfactory.cpp Examining data/copyq-3.13.0/src/item/itemfactory.h Examining data/copyq-3.13.0/src/item/itemstore.cpp Examining data/copyq-3.13.0/src/item/itemstore.h Examining data/copyq-3.13.0/src/item/itemwidget.cpp Examining data/copyq-3.13.0/src/item/itemwidget.h Examining data/copyq-3.13.0/src/item/itemwidgetwrapper.cpp Examining data/copyq-3.13.0/src/item/itemwidgetwrapper.h Examining data/copyq-3.13.0/src/item/persistentdisplayitem.cpp Examining data/copyq-3.13.0/src/item/persistentdisplayitem.h Examining data/copyq-3.13.0/src/item/serialize.cpp Examining data/copyq-3.13.0/src/item/serialize.h Examining data/copyq-3.13.0/src/main.cpp Examining data/copyq-3.13.0/src/platform/dummy/dummyclipboard.cpp Examining data/copyq-3.13.0/src/platform/dummy/dummyclipboard.h Examining data/copyq-3.13.0/src/platform/dummy/dummyplatform.cpp Examining data/copyq-3.13.0/src/platform/dummy/dummyplatform.h Examining data/copyq-3.13.0/src/platform/mac/copyqpasteboardmime.h Examining data/copyq-3.13.0/src/platform/mac/foregroundbackgroundfilter.h Examining data/copyq-3.13.0/src/platform/mac/macactivity.h Examining data/copyq-3.13.0/src/platform/mac/macclipboard.h Examining data/copyq-3.13.0/src/platform/mac/macplatform.h Examining data/copyq-3.13.0/src/platform/mac/macplatformwindow.h Examining data/copyq-3.13.0/src/platform/mac/mactimer.h Examining data/copyq-3.13.0/src/platform/mac/urlpasteboardmime.h Examining data/copyq-3.13.0/src/platform/platformclipboard.h Examining data/copyq-3.13.0/src/platform/platformcommon.cpp Examining data/copyq-3.13.0/src/platform/platformcommon.h Examining data/copyq-3.13.0/src/platform/platformnativeinterface.h Examining data/copyq-3.13.0/src/platform/platformwindow.h Examining data/copyq-3.13.0/src/platform/unix/unixsignalhandler.cpp Examining data/copyq-3.13.0/src/platform/unix/unixsignalhandler.h Examining data/copyq-3.13.0/src/platform/win/winplatform.cpp Examining data/copyq-3.13.0/src/platform/win/winplatform.h Examining data/copyq-3.13.0/src/platform/win/winplatformclipboard.cpp Examining data/copyq-3.13.0/src/platform/win/winplatformclipboard.h Examining data/copyq-3.13.0/src/platform/win/winplatformwindow.cpp Examining data/copyq-3.13.0/src/platform/win/winplatformwindow.h Examining data/copyq-3.13.0/src/platform/x11/x11platform.cpp Examining data/copyq-3.13.0/src/platform/x11/x11platform.h Examining data/copyq-3.13.0/src/platform/x11/x11platformclipboard.cpp Examining data/copyq-3.13.0/src/platform/x11/x11platformclipboard.h Examining data/copyq-3.13.0/src/platform/x11/x11platformwindow.cpp Examining data/copyq-3.13.0/src/platform/x11/x11platformwindow.h Examining data/copyq-3.13.0/src/scriptable/commandhelp.cpp Examining data/copyq-3.13.0/src/scriptable/commandhelp.h Examining data/copyq-3.13.0/src/scriptable/dirclass.cpp Examining data/copyq-3.13.0/src/scriptable/dirclass.h Examining data/copyq-3.13.0/src/scriptable/dirprototype.cpp Examining data/copyq-3.13.0/src/scriptable/dirprototype.h Examining data/copyq-3.13.0/src/scriptable/fileclass.cpp Examining data/copyq-3.13.0/src/scriptable/fileclass.h Examining data/copyq-3.13.0/src/scriptable/fileprototype.cpp Examining data/copyq-3.13.0/src/scriptable/fileprototype.h Examining data/copyq-3.13.0/src/scriptable/scriptable.cpp Examining data/copyq-3.13.0/src/scriptable/scriptable.h Examining data/copyq-3.13.0/src/scriptable/scriptableclass.cpp Examining data/copyq-3.13.0/src/scriptable/scriptableclass.h Examining data/copyq-3.13.0/src/scriptable/scriptableprototype.h Examining data/copyq-3.13.0/src/scriptable/scriptableproxy.cpp Examining data/copyq-3.13.0/src/scriptable/scriptableproxy.h Examining data/copyq-3.13.0/src/scriptable/temporaryfileclass.cpp Examining data/copyq-3.13.0/src/scriptable/temporaryfileclass.h Examining data/copyq-3.13.0/src/scriptable/temporaryfileprototype.cpp Examining data/copyq-3.13.0/src/scriptable/temporaryfileprototype.h Examining data/copyq-3.13.0/src/tests/test_utils.h Examining data/copyq-3.13.0/src/tests/testinterface.h Examining data/copyq-3.13.0/src/tests/tests.cpp Examining data/copyq-3.13.0/src/tests/tests.h FINAL RESULTS: data/copyq-3.13.0/src/app/app.cpp:86:31: [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. locale = QLocale::system().name(); data/copyq-3.13.0/src/common/globalshortcutcommands.cpp:55:34: [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. const auto format = QLocale::system().dateTimeFormat(QLocale::LongFormat) data/copyq-3.13.0/src/gui/commandsyntaxhighlighter.cpp:309:64: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (method.methodType() == QMetaMethod::Slot && method.access() == QMetaMethod::Public) { data/copyq-3.13.0/src/platform/x11/x11platform.cpp:82:24: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *path = getenv("XDG_CONFIG_HOME"); data/copyq-3.13.0/plugins/itemencrypted/itemencrypted.cpp:174: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 ( !secKey.open(QIODevice::WriteOnly) ) data/copyq-3.13.0/plugins/itemencrypted/itemencrypted.cpp:682: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 encryptedBytes[4096]; data/copyq-3.13.0/plugins/itemfakevim/fakevim/fakevimhandler.cpp:2166: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. signed char m_charClass[256]; data/copyq-3.13.0/plugins/itemfakevim/fakevim/fakevimhandler.cpp:5985: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). } else if (file1.open(QIODevice::ReadWrite)) { data/copyq-3.13.0/plugins/itemfakevim/fakevim/fakevimhandler.cpp:5993:19: [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 (file2.open(QIODevice::ReadWrite)) { data/copyq-3.13.0/plugins/itemfakevim/fakevim/fakevimhandler.cpp:6002: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). file3.open(QIODevice::ReadOnly); data/copyq-3.13.0/plugins/itemfakevim/fakevim/fakevimhandler.cpp:6032: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::ReadOnly); data/copyq-3.13.0/plugins/itemfakevim/fakevim/fakevimhandler.cpp:6188: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 (!file.open(QIODevice::ReadOnly)) { data/copyq-3.13.0/plugins/itemsync/filewatcher.cpp:193: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 ( !f.open(QIODevice::WriteOnly) || f.write(bytes) == -1 ) { data/copyq-3.13.0/plugins/itemsync/filewatcher.cpp:826: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 ( !f.open(QIODevice::ReadOnly) ) data/copyq-3.13.0/plugins/itemsync/tests/itemsynctests.cpp:107: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 ( !file->open(QIODevice::WriteOnly) ) data/copyq-3.13.0/plugins/itemsync/tests/itemsynctests.cpp:178: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). QVERIFY(f1->open(QIODevice::WriteOnly)); data/copyq-3.13.0/plugins/itemsync/tests/itemsynctests.cpp:364:19: [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). QVERIFY(file->open(QIODevice::ReadOnly)); data/copyq-3.13.0/plugins/itemsync/tests/itemsynctests.cpp:390:19: [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). QVERIFY(file->open(QIODevice::ReadOnly)); data/copyq-3.13.0/plugins/itemsync/tests/itemsynctests.cpp:399:19: [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). QVERIFY(file->open(QIODevice::ReadOnly)); data/copyq-3.13.0/plugins/itemsync/tests/itemsynctests.cpp:427:19: [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). QVERIFY(file->open(QIODevice::ReadWrite)); data/copyq-3.13.0/plugins/itemsync/tests/itemsynctests.cpp:516:19: [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). QVERIFY(file->open(QIODevice::ReadWrite)); data/copyq-3.13.0/plugins/itemsync/tests/itemsynctests.cpp:590:19: [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). QVERIFY(file->open(QIODevice::Append)); data/copyq-3.13.0/plugins/itemsync/tests/itemsynctests.cpp:612:19: [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). QVERIFY(file->open(QIODevice::ReadWrite)); data/copyq-3.13.0/src/app/applicationexceptionhandler.cpp:31: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). f.open(stderr, QIODevice::WriteOnly); data/copyq-3.13.0/src/common/log.cpp:198: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 ( !f.open(QIODevice::ReadOnly) ) data/copyq-3.13.0/src/common/log.cpp:231: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 ( !f.open(QIODevice::Append) ) data/copyq-3.13.0/src/common/log.cpp:349: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). ferr.open(stderr, QIODevice::WriteOnly); data/copyq-3.13.0/src/common/settings.cpp:73: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). lockFile.open(QIODevice::WriteOnly); data/copyq-3.13.0/src/common/temporaryfile.cpp:33: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 ( !file->open() ) { data/copyq-3.13.0/src/common/temporarysettings.cpp:31:20: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). QTemporaryFile tmpfile; data/copyq-3.13.0/src/common/temporarysettings.cpp:32:30: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). if ( !openTemporaryFile(&tmpfile, ".ini") ) data/copyq-3.13.0/src/common/temporarysettings.cpp:38:5: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). tmpfile.write(content); data/copyq-3.13.0/src/common/temporarysettings.cpp:39:5: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). tmpfile.setAutoRemove(false); data/copyq-3.13.0/src/common/temporarysettings.cpp:40:12: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). return tmpfile.fileName(); data/copyq-3.13.0/src/common/temporarysettings.cpp:70: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 (!file.open(QIODevice::ReadOnly)) { data/copyq-3.13.0/src/gui/actiondialog.cpp:121: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::ReadOnly); data/copyq-3.13.0/src/gui/actiondialog.cpp:144: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/copyq-3.13.0/src/gui/clipboarddialog.cpp:153:28: [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). m_animationBuffer->open(QIODevice::ReadWrite); data/copyq-3.13.0/src/gui/commanddialog.cpp:307: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). ini.open(QIODevice::WriteOnly); data/copyq-3.13.0/src/gui/configtabappearance.cpp:221:20: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). QTemporaryFile tmpfile; data/copyq-3.13.0/src/gui/configtabappearance.cpp:222:30: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). if ( !openTemporaryFile(&tmpfile, ".ini") ) data/copyq-3.13.0/src/gui/configtabappearance.cpp:225:5: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). tmpfile.write(bytes); data/copyq-3.13.0/src/gui/configtabappearance.cpp:226:5: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). tmpfile.flush(); data/copyq-3.13.0/src/gui/configtabappearance.cpp:228:24: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). QSettings settings(tmpfile.fileName(), QSettings::IniFormat); data/copyq-3.13.0/src/gui/iconselectbutton.cpp:97: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). dialog->open(); data/copyq-3.13.0/src/gui/mainwindow.cpp:1796: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 ( !file.open() ) { data/copyq-3.13.0/src/gui/mainwindow.cpp:3547: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 ( !file.open(QIODevice::WriteOnly | QIODevice::Truncate) ) data/copyq-3.13.0/src/gui/mainwindow.cpp:3612: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 ( !file.open(QIODevice::ReadOnly) ) data/copyq-3.13.0/src/gui/mainwindow.cpp:3652: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 ( !file.open(QIODevice::ReadOnly) ) data/copyq-3.13.0/src/gui/mainwindow.cpp:3776:8: [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). d->open(); data/copyq-3.13.0/src/gui/mainwindow.cpp:3798:8: [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). d->open(); data/copyq-3.13.0/src/gui/mainwindow.cpp:3824:8: [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). d->open(); data/copyq-3.13.0/src/gui/theme.cpp:541: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 ( !file.open(QIODevice::ReadOnly) ) { data/copyq-3.13.0/src/item/itemeditor.cpp:101:20: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). QTemporaryFile tmpfile; data/copyq-3.13.0/src/item/itemeditor.cpp:103:30: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). if ( !openTemporaryFile(&tmpfile, suffix) ) { data/copyq-3.13.0/src/item/itemeditor.cpp:108:27: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). const auto fileName = tmpfile.fileName(); data/copyq-3.13.0/src/item/itemeditor.cpp:111:5: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). tmpfile.write(m_data); data/copyq-3.13.0/src/item/itemeditor.cpp:114:5: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). tmpfile.setAutoRemove(false); data/copyq-3.13.0/src/item/itemeditor.cpp:115:5: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). tmpfile.close(); data/copyq-3.13.0/src/item/itemeditor.cpp:173:19: [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/copyq-3.13.0/src/item/itemstore.cpp:73:19: [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 ( !tabFile.open(QIODevice::ReadOnly) ) { data/copyq-3.13.0/src/item/itemstore.cpp:146:19: [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 ( !tmpFile.open(QIODevice::WriteOnly) ) { data/copyq-3.13.0/src/main.cpp:73: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). f.open(stderr, QIODevice::WriteOnly); data/copyq-3.13.0/src/main.cpp:75: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). f.open(stdout, QIODevice::WriteOnly); data/copyq-3.13.0/src/platform/x11/x11platform.cpp:150:23: [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 ( !desktopFile.open(QIODevice::ReadOnly | QIODevice::Text) ) data/copyq-3.13.0/src/platform/x11/x11platform.cpp:186:24: [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 ( !desktopFile2.open(QIODevice::WriteOnly | QIODevice::Truncate | QIODevice::Text) ) { data/copyq-3.13.0/src/platform/x11/x11platform.cpp:198: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 ( desktopFile.open(QIODevice::ReadOnly | QIODevice::Text) ) { data/copyq-3.13.0/src/platform/x11/x11platformwindow.cpp:59: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_keyMap[32]{}; data/copyq-3.13.0/src/scriptable/fileprototype.cpp:47:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). bool FilePrototype::open() data/copyq-3.13.0/src/scriptable/fileprototype.cpp:50:20: [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). return v && v->open(QIODevice::ReadWrite); data/copyq-3.13.0/src/scriptable/fileprototype.cpp:56:20: [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). return v && v->open(QIODevice::ReadOnly); data/copyq-3.13.0/src/scriptable/fileprototype.cpp:62:20: [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). return v && v->open(QIODevice::WriteOnly); data/copyq-3.13.0/src/scriptable/fileprototype.cpp:68:20: [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). return v && v->open(QIODevice::Append); data/copyq-3.13.0/src/scriptable/fileprototype.h:36: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). bool open(); data/copyq-3.13.0/src/scriptable/scriptable.cpp:1567: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 ( !scriptFile.open(QIODevice::ReadOnly) ) { data/copyq-3.13.0/src/scriptable/scriptable.cpp:1931: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). QScriptValue Scriptable::open() data/copyq-3.13.0/src/scriptable/scriptable.cpp:3297: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). f.open(stdout, QIODevice::WriteOnly); data/copyq-3.13.0/src/scriptable/scriptable.cpp:3308: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). f.open(stderr, QIODevice::WriteOnly); data/copyq-3.13.0/src/scriptable/scriptable.cpp:3454: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). in.open(stdin, QIODevice::ReadOnly); data/copyq-3.13.0/src/scriptable/scriptable.h:306: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). QScriptValue open(); data/copyq-3.13.0/src/scriptable/scriptableproxy.cpp:1919: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). buffer.open(QIODevice::WriteOnly); data/copyq-3.13.0/src/tests/tests.cpp:124:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). QVERIFY(tmp.open()); data/copyq-3.13.0/src/tests/tests.cpp:632: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). ferr.open(stderr, QIODevice::WriteOnly); data/copyq-3.13.0/src/tests/tests.cpp:932:24: [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). QVERIFY(scriptFile.open()); data/copyq-3.13.0/src/tests/tests.cpp:1635:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). QVERIFY(tmp.open()); data/copyq-3.13.0/src/tests/tests.cpp:1644:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). QVERIFY(tmp.open()); data/copyq-3.13.0/src/tests/tests.cpp:1654:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). QVERIFY(tmp.open()); data/copyq-3.13.0/src/tests/tests.cpp:1872: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). QVERIFY( f.open(QIODevice::WriteOnly) ); data/copyq-3.13.0/src/tests/tests.cpp:2584:23: [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). QVERIFY( file.open(QIODevice::ReadWrite) ); \ data/copyq-3.13.0/plugins/itempinned/tests/itempinnedtests.cpp:139:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). RUN(read << "0" << "1", "a b"); data/copyq-3.13.0/plugins/itempinned/tests/itempinnedtests.cpp:142:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). RUN(read << "0" << "1" << "2", "a c b"); data/copyq-3.13.0/plugins/itempinned/tests/itempinnedtests.cpp:146:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). RUN(read << "0" << "1" << "2" << "3", "a c d b"); data/copyq-3.13.0/plugins/itempinned/tests/itempinnedtests.cpp:150:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). RUN(read << "0" << "1" << "2", "a b d"); data/copyq-3.13.0/src/common/action.cpp:62:72: [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). *script = cmd.string()->mid( cmd.position() + static_cast<int>(strlen(label)) ); data/copyq-3.13.0/src/common/action.h:99:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void setReadOutput(bool read) { m_readOutput = read; } data/copyq-3.13.0/src/common/action.h:99:52: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void setReadOutput(bool read) { m_readOutput = read; } data/copyq-3.13.0/src/common/clientsocket.cpp:220:33: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). m_message.append( m_socket->read(available) ); data/copyq-3.13.0/src/common/common.cpp:232:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const auto prefixLength = static_cast<int>(strlen(imageMimePrefix)); data/copyq-3.13.0/src/platform/unix/unixsignalhandler.cpp:61:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ( ::read(signalFd[SignalAction::Read], &pid, sizeof(pid)) != sizeof(pid) ) { data/copyq-3.13.0/src/platform/x11/x11platformwindow.cpp:100: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(waitForModsReleaseMs * 1000); data/copyq-3.13.0/src/platform/x11/x11platformwindow.cpp:117: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(50000); // This is needed to paste into URL bar in Chrome. data/copyq-3.13.0/src/platform/x11/x11platformwindow.cpp:281: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(150000); data/copyq-3.13.0/src/scriptable/fileprototype.cpp:78:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QScriptValue FilePrototype::read(qint64 maxSize) data/copyq-3.13.0/src/scriptable/fileprototype.cpp:81:32: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return v ? newByteArray(v->read(maxSize)) : QScriptValue(); data/copyq-3.13.0/src/scriptable/fileprototype.h:43:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QScriptValue read(qint64 maxSize); data/copyq-3.13.0/src/scriptable/scriptable.cpp:1215:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QScriptValue Scriptable::read() data/copyq-3.13.0/src/scriptable/scriptable.h:220:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QScriptValue read(); ANALYSIS SUMMARY: Hits = 107 Lines analyzed = 76312 in approximately 1.91 seconds (40036 lines/second) Physical Source Lines of Code (SLOC) = 54772 Hits@level = [0] 0 [1] 18 [2] 85 [3] 1 [4] 3 [5] 0 Hits@level+ = [0+] 107 [1+] 107 [2+] 89 [3+] 4 [4+] 3 [5+] 0 Hits/KSLOC@level+ = [0+] 1.95355 [1+] 1.95355 [2+] 1.62492 [3+] 0.07303 [4+] 0.0547725 [5+] 0 Dot directories skipped = 2 (--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.