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/konqueror-20.08.3/libkonq/autotests/konqpopupmenutest.h Examining data/konqueror-20.08.3/libkonq/autotests/konqpopupmenutest.cpp Examining data/konqueror-20.08.3/libkonq/src/konq_historyentry.h Examining data/konqueror-20.08.3/libkonq/src/konq_historyloader_p.h Examining data/konqueror-20.08.3/libkonq/src/konq_historyloader.cpp Examining data/konqueror-20.08.3/libkonq/src/konq_historyprovider.cpp Examining data/konqueror-20.08.3/libkonq/src/konq_events.h Examining data/konqueror-20.08.3/libkonq/src/konq_popupmenu.h Examining data/konqueror-20.08.3/libkonq/src/konq_historyprovider.h Examining data/konqueror-20.08.3/libkonq/src/konq_historyentry.cpp Examining data/konqueror-20.08.3/libkonq/src/konq_popupmenu.cpp Examining data/konqueror-20.08.3/libkonq/src/konq_events.cpp Examining data/konqueror-20.08.3/autotests/historymanagertest.cpp Examining data/konqueror-20.08.3/autotests/undomanagertest.cpp Examining data/konqueror-20.08.3/autotests/konqviewmgrtest.cpp Examining data/konqueror-20.08.3/autotests/konqhtmltest.cpp Examining data/konqueror-20.08.3/autotests/konqviewtest.cpp Examining data/konqueror-20.08.3/autotests/konqviewmgrtest.h Examining data/konqueror-20.08.3/webenginepart/autotests/webengine_testutils.h Examining data/konqueror-20.08.3/webenginepart/autotests/webenginepartcookiejar_test.h Examining data/konqueror-20.08.3/webenginepart/autotests/webenginepartcookiejar_test.cpp Examining data/konqueror-20.08.3/webenginepart/autotests/webengine_partapi_test.cpp Examining data/konqueror-20.08.3/webenginepart/tests/webenginepart_tester.cpp Examining data/konqueror-20.08.3/webenginepart/src/webenginepart_ext.cpp Examining data/konqueror-20.08.3/webenginepart/src/webenginepart.cpp Examining data/konqueror-20.08.3/webenginepart/src/webengineview.h Examining data/konqueror-20.08.3/webenginepart/src/webenginepart_ext.h Examining data/konqueror-20.08.3/webenginepart/src/webengineparterrorschemehandler.cpp Examining data/konqueror-20.08.3/webenginepart/src/ui/searchbar.h Examining data/konqueror-20.08.3/webenginepart/src/ui/featurepermissionbar.cpp Examining data/konqueror-20.08.3/webenginepart/src/ui/featurepermissionbar.h Examining data/konqueror-20.08.3/webenginepart/src/ui/passwordbar.cpp Examining data/konqueror-20.08.3/webenginepart/src/ui/searchbar.cpp Examining data/konqueror-20.08.3/webenginepart/src/ui/passwordbar.h Examining data/konqueror-20.08.3/webenginepart/src/webenginepage.cpp Examining data/konqueror-20.08.3/webenginepart/src/webenginewallet.h Examining data/konqueror-20.08.3/webenginepart/src/webenginepartkiohandler.h Examining data/konqueror-20.08.3/webenginepart/src/utils.h Examining data/konqueror-20.08.3/webenginepart/src/websslinfo.cpp Examining data/konqueror-20.08.3/webenginepart/src/webenginepartfactory.cpp Examining data/konqueror-20.08.3/webenginepart/src/websslinfo.h Examining data/konqueror-20.08.3/webenginepart/src/webenginepartdownloadmanager.cpp Examining data/konqueror-20.08.3/webenginepart/src/webenginepartkiohandler.cpp Examining data/konqueror-20.08.3/webenginepart/src/webhistoryinterface.cpp Examining data/konqueror-20.08.3/webenginepart/src/webengineparterrorschemehandler.h Examining data/konqueror-20.08.3/webenginepart/src/webenginepage.h Examining data/konqueror-20.08.3/webenginepart/src/settings/webenginesettings.h Examining data/konqueror-20.08.3/webenginepart/src/settings/webengine_filter.cpp Examining data/konqueror-20.08.3/webenginepart/src/settings/webengine_filter.h Examining data/konqueror-20.08.3/webenginepart/src/settings/webenginesettings.cpp Examining data/konqueror-20.08.3/webenginepart/src/webengineparthtmlembedder.h Examining data/konqueror-20.08.3/webenginepart/src/webengineview.cpp Examining data/konqueror-20.08.3/webenginepart/src/about/konq_aboutpage.h Examining data/konqueror-20.08.3/webenginepart/src/about/konq_aboutpage.cpp Examining data/konqueror-20.08.3/webenginepart/src/webhistoryinterface.h Examining data/konqueror-20.08.3/webenginepart/src/webenginepart.h Examining data/konqueror-20.08.3/webenginepart/src/webenginepartcookiejar.cpp Examining data/konqueror-20.08.3/webenginepart/src/webenginewallet.cpp Examining data/konqueror-20.08.3/webenginepart/src/webenginepartcookiejar.h Examining data/konqueror-20.08.3/webenginepart/src/webenginepartdownloadmanager.h Examining data/konqueror-20.08.3/webenginepart/src/webenginepartfactory.h Examining data/konqueror-20.08.3/webenginepart/src/webengineparthtmlembedder.cpp Examining data/konqueror-20.08.3/sidebar/sidebar_widget.cpp Examining data/konqueror-20.08.3/sidebar/tree_module/tree_module.h Examining data/konqueror-20.08.3/sidebar/tree_module/tree_module.cpp Examining data/konqueror-20.08.3/sidebar/sidebar_part.h Examining data/konqueror-20.08.3/sidebar/web_module/web_module.cpp Examining data/konqueror-20.08.3/sidebar/web_module/web_module.h Examining data/konqueror-20.08.3/sidebar/test/konqsidebartest.cpp Examining data/konqueror-20.08.3/sidebar/test/konqsidebartest.h Examining data/konqueror-20.08.3/sidebar/test/modulemanagertest.cpp Examining data/konqueror-20.08.3/sidebar/trees/dirtree_module/dirtree_module.h Examining data/konqueror-20.08.3/sidebar/trees/dirtree_module/dirtree_item.h Examining data/konqueror-20.08.3/sidebar/trees/dirtree_module/dirtree_module.cpp Examining data/konqueror-20.08.3/sidebar/trees/dirtree_module/dirtree_item.cpp Examining data/konqueror-20.08.3/sidebar/trees/konq_sidebartreeitem.cpp Examining data/konqueror-20.08.3/sidebar/trees/konq_sidebartreetoplevelitem.h Examining data/konqueror-20.08.3/sidebar/trees/konq_sidebartree.h Examining data/konqueror-20.08.3/sidebar/trees/konqsidebar_oldtreemodule.cpp Examining data/konqueror-20.08.3/sidebar/trees/konq_sidebartree.cpp Examining data/konqueror-20.08.3/sidebar/trees/konq_sidebartreetoplevelitem.cpp Examining data/konqueror-20.08.3/sidebar/trees/konq_sidebartreeitem.h Examining data/konqueror-20.08.3/sidebar/trees/konqsidebar_oldtreemodule.h Examining data/konqueror-20.08.3/sidebar/trees/konq_sidebartreemodule.h Examining data/konqueror-20.08.3/sidebar/trees/bookmark_module/bookmark_item.h Examining data/konqueror-20.08.3/sidebar/trees/bookmark_module/bookmark_module.cpp Examining data/konqueror-20.08.3/sidebar/trees/bookmark_module/bookmark_item.cpp Examining data/konqueror-20.08.3/sidebar/trees/bookmark_module/bookmark_module.h Examining data/konqueror-20.08.3/sidebar/history_module/history_module.h Examining data/konqueror-20.08.3/sidebar/history_module/kcmhistory.h Examining data/konqueror-20.08.3/sidebar/history_module/history_module.cpp Examining data/konqueror-20.08.3/sidebar/history_module/kcmhistory.cpp Examining data/konqueror-20.08.3/sidebar/konqmultitabbar.h Examining data/konqueror-20.08.3/sidebar/places_module/places_module.cpp Examining data/konqueror-20.08.3/sidebar/places_module/places_module.h Examining data/konqueror-20.08.3/sidebar/bookmarks_module/bookmarks_module.h Examining data/konqueror-20.08.3/sidebar/bookmarks_module/bookmarks_module.cpp Examining data/konqueror-20.08.3/sidebar/module_manager.cpp Examining data/konqueror-20.08.3/sidebar/module_manager.h Examining data/konqueror-20.08.3/sidebar/konqsidebarplugin.cpp Examining data/konqueror-20.08.3/sidebar/konqmultitabbar.cpp Examining data/konqueror-20.08.3/sidebar/sidebar_part.cpp Examining data/konqueror-20.08.3/sidebar/sidebar_widget.h Examining data/konqueror-20.08.3/sidebar/konqsidebarplugin.h Examining data/konqueror-20.08.3/settings/performance/konqueror.cpp Examining data/konqueror-20.08.3/settings/performance/konqueror.h Examining data/konqueror-20.08.3/settings/performance/system.cpp Examining data/konqueror-20.08.3/settings/performance/system.h Examining data/konqueror-20.08.3/settings/performance/kcmperformance.h Examining data/konqueror-20.08.3/settings/performance/kcmperformance.cpp Examining data/konqueror-20.08.3/settings/konqhtml/policies.h Examining data/konqueror-20.08.3/settings/konqhtml/policydlg.h Examining data/konqueror-20.08.3/settings/konqhtml/javaopts.cpp Examining data/konqueror-20.08.3/settings/konqhtml/policydlg.cpp Examining data/konqueror-20.08.3/settings/konqhtml/khttpoptdlg.h Examining data/konqueror-20.08.3/settings/konqhtml/appearance.cpp Examining data/konqueror-20.08.3/settings/konqhtml/htmlopts.cpp Examining data/konqueror-20.08.3/settings/konqhtml/filteropts.h Examining data/konqueror-20.08.3/settings/konqhtml/generalopts.h Examining data/konqueror-20.08.3/settings/konqhtml/pluginopts.h Examining data/konqueror-20.08.3/settings/konqhtml/appearance.h Examining data/konqueror-20.08.3/settings/konqhtml/policies.cpp Examining data/konqueror-20.08.3/settings/konqhtml/khttpoptdlg.cpp Examining data/konqueror-20.08.3/settings/konqhtml/javaopts.h Examining data/konqueror-20.08.3/settings/konqhtml/css/template.h Examining data/konqueror-20.08.3/settings/konqhtml/css/kcmcss.h Examining data/konqueror-20.08.3/settings/konqhtml/css/template.cpp Examining data/konqueror-20.08.3/settings/konqhtml/css/kcmcss.cpp Examining data/konqueror-20.08.3/settings/konqhtml/domainlistview.h Examining data/konqueror-20.08.3/settings/konqhtml/htmlopts.h Examining data/konqueror-20.08.3/settings/konqhtml/jspolicies.cpp Examining data/konqueror-20.08.3/settings/konqhtml/main.cpp Examining data/konqueror-20.08.3/settings/konqhtml/jspolicies.h Examining data/konqueror-20.08.3/settings/konqhtml/domainlistview.cpp Examining data/konqueror-20.08.3/settings/konqhtml/pluginopts.cpp Examining data/konqueror-20.08.3/settings/konqhtml/filteropts.cpp Examining data/konqueror-20.08.3/settings/konqhtml/main.h Examining data/konqueror-20.08.3/settings/konqhtml/generalopts.cpp Examining data/konqueror-20.08.3/settings/konqhtml/jsopts.cpp Examining data/konqueror-20.08.3/settings/konqhtml/jsopts.h Examining data/konqueror-20.08.3/settings/konq/kcustommenueditor.h Examining data/konqueror-20.08.3/settings/konq/konqkcmfactory.h Examining data/konqueror-20.08.3/settings/konq/tests/kcustommenueditortest.cpp Examining data/konqueror-20.08.3/settings/konq/kcustommenueditor.cpp Examining data/konqueror-20.08.3/settings/konq/behaviour.h Examining data/konqueror-20.08.3/settings/konq/konqkcmfactory.cpp Examining data/konqueror-20.08.3/settings/konq/behaviour.cpp Examining data/konqueror-20.08.3/settings/bookmarks/main.cpp Examining data/konqueror-20.08.3/settings/bookmarks/bookmarks.h Examining data/konqueror-20.08.3/settings/bookmarks/bookmarks.cpp Examining data/konqueror-20.08.3/client/kfmclient.h Examining data/konqueror-20.08.3/client/konqclientrequest.h Examining data/konqueror-20.08.3/client/kfmclient.cpp Examining data/konqueror-20.08.3/client/konqclientrequest.cpp Examining data/konqueror-20.08.3/src/konqrun.h Examining data/konqueror-20.08.3/src/konqbookmarkbar.cpp Examining data/konqueror-20.08.3/src/konqhistorysettings.cpp Examining data/konqueror-20.08.3/src/delayedinitializer.h Examining data/konqueror-20.08.3/src/konqfactory.h Examining data/konqueror-20.08.3/src/konqdraggablelabel.cpp Examining data/konqueror-20.08.3/src/konqprivate_export.h Examining data/konqueror-20.08.3/src/htmldefaults.h Examining data/konqueror-20.08.3/src/konqmouseeventfilter.h Examining data/konqueror-20.08.3/src/konqhistorydialog.cpp Examining data/konqueror-20.08.3/src/konqcloseditem.cpp Examining data/konqueror-20.08.3/src/konqsessionmanager.cpp Examining data/konqueror-20.08.3/src/konqmouseeventfilter.cpp Examining data/konqueror-20.08.3/src/konqview.h Examining data/konqueror-20.08.3/src/konqcombo.cpp Examining data/konqueror-20.08.3/src/konqmainwindowfactory.cpp Examining data/konqueror-20.08.3/src/konqclosedwindowsmanager.cpp Examining data/konqueror-20.08.3/src/konqmainwindowfactory.h Examining data/konqueror-20.08.3/src/konqopenurlrequest.h Examining data/konqueror-20.08.3/src/konqundomanager.cpp Examining data/konqueror-20.08.3/src/konqhistorymanager.cpp Examining data/konqueror-20.08.3/src/ktabwidget.cpp Examining data/konqueror-20.08.3/src/konqextensionmanager.cpp Examining data/konqueror-20.08.3/src/ktabwidget.h Examining data/konqueror-20.08.3/src/konqdraggablelabel.h Examining data/konqueror-20.08.3/src/konqanimatedlogo_p.h Examining data/konqueror-20.08.3/src/KonqMainWindowAdaptor.cpp Examining data/konqueror-20.08.3/src/konqapplication.cpp Examining data/konqueror-20.08.3/src/konqurl.h Examining data/konqueror-20.08.3/src/konqbookmarkbar.h Examining data/konqueror-20.08.3/src/tests/centralwidget.cpp Examining data/konqueror-20.08.3/src/tests/centralwidget.h Examining data/konqueror-20.08.3/src/konqsessionmanager.h Examining data/konqueror-20.08.3/src/KonqMainWindowAdaptor.h Examining data/konqueror-20.08.3/src/konqactions.h Examining data/konqueror-20.08.3/src/konqguiclients.h Examining data/konqueror-20.08.3/src/konqframecontainer.h Examining data/konqueror-20.08.3/src/konqpixmapprovider.cpp Examining data/konqueror-20.08.3/src/konqframestatusbar.cpp Examining data/konqueror-20.08.3/src/konqtabs.h Examining data/konqueror-20.08.3/src/konqsessiondlg.h Examining data/konqueror-20.08.3/src/konqguiclients.cpp Examining data/konqueror-20.08.3/src/konqhistorymodel.cpp Examining data/konqueror-20.08.3/src/konqhistoryview.h Examining data/konqueror-20.08.3/src/konqcloseditem.h Examining data/konqueror-20.08.3/src/konqurl.cpp Examining data/konqueror-20.08.3/src/konqapplication.h Examining data/konqueror-20.08.3/src/konqactions.cpp Examining data/konqueror-20.08.3/src/konqhistorymanager.h Examining data/konqueror-20.08.3/src/konqviewmanager.h Examining data/konqueror-20.08.3/src/konqmisc.cpp Examining data/konqueror-20.08.3/src/konqfactory.cpp Examining data/konqueror-20.08.3/src/konqstatusbarmessagelabel.cpp Examining data/konqueror-20.08.3/src/konqbookmarkmenu.h Examining data/konqueror-20.08.3/src/konqbookmarkmenu_p.h Examining data/konqueror-20.08.3/src/konqpixmapprovider.h Examining data/konqueror-20.08.3/src/konqsessiondlg.cpp Examining data/konqueror-20.08.3/src/konqframevisitor.h Examining data/konqueror-20.08.3/src/konqhistorysettings.h Examining data/konqueror-20.08.3/src/konqviewmanager.cpp Examining data/konqueror-20.08.3/src/delayedinitializer.cpp Examining data/konqueror-20.08.3/src/konqcombo.h Examining data/konqueror-20.08.3/src/konqhistory.h Examining data/konqueror-20.08.3/src/konqanimatedlogo.cpp Examining data/konqueror-20.08.3/src/konqframecontainer.cpp Examining data/konqueror-20.08.3/src/konqframe.cpp Examining data/konqueror-20.08.3/src/konqframestatusbar.h Examining data/konqueror-20.08.3/src/konqhistoryproxymodel.h Examining data/konqueror-20.08.3/src/konqextendedbookmarkowner.h Examining data/konqueror-20.08.3/src/konqhistoryproxymodel.cpp Examining data/konqueror-20.08.3/src/konqframe.h Examining data/konqueror-20.08.3/src/konqmain.cpp Examining data/konqueror-20.08.3/src/konqsettings.h Examining data/konqueror-20.08.3/src/konqmisc.h Examining data/konqueror-20.08.3/src/konqhistoryview.cpp Examining data/konqueror-20.08.3/src/ktabbar.h Examining data/konqueror-20.08.3/src/KonquerorAdaptor.h Examining data/konqueror-20.08.3/src/konqview.cpp Examining data/konqueror-20.08.3/src/KonquerorAdaptor.cpp Examining data/konqueror-20.08.3/src/konqrun.cpp Examining data/konqueror-20.08.3/src/konqmainwindow.cpp Examining data/konqueror-20.08.3/src/konqextensionmanager.h Examining data/konqueror-20.08.3/src/konqstatusbarmessagelabel.h Examining data/konqueror-20.08.3/src/konqsettings.cpp Examining data/konqueror-20.08.3/src/konqmainwindow.h Examining data/konqueror-20.08.3/src/konqbookmarkmenu.cpp Examining data/konqueror-20.08.3/src/ksortfilterproxymodel.h Examining data/konqueror-20.08.3/src/konqtabs.cpp Examining data/konqueror-20.08.3/src/ktabbar.cpp Examining data/konqueror-20.08.3/src/konqundomanager.h Examining data/konqueror-20.08.3/src/konqhistorymodel.h Examining data/konqueror-20.08.3/src/konqframevisitor.cpp Examining data/konqueror-20.08.3/src/ksortfilterproxymodel.cpp Examining data/konqueror-20.08.3/src/konqhistorydialog.h Examining data/konqueror-20.08.3/src/KonqViewAdaptor.cpp Examining data/konqueror-20.08.3/src/KonqViewAdaptor.h Examining data/konqueror-20.08.3/src/konqclosedwindowsmanager.h Examining data/konqueror-20.08.3/plugins/fsview/fsview.cpp Examining data/konqueror-20.08.3/plugins/fsview/fsview_part.cpp Examining data/konqueror-20.08.3/plugins/fsview/inode.cpp Examining data/konqueror-20.08.3/plugins/fsview/tests/scantest.cpp Examining data/konqueror-20.08.3/plugins/fsview/fsview.h Examining data/konqueror-20.08.3/plugins/fsview/main.cpp Examining data/konqueror-20.08.3/plugins/fsview/fsview_part.h Examining data/konqueror-20.08.3/plugins/fsview/treemap.h Examining data/konqueror-20.08.3/plugins/fsview/inode.h Examining data/konqueror-20.08.3/plugins/fsview/scan.h Examining data/konqueror-20.08.3/plugins/fsview/treemap.cpp Examining data/konqueror-20.08.3/plugins/fsview/scan.cpp Examining data/konqueror-20.08.3/plugins/kimgalleryplugin/imgalleryplugin.h Examining data/konqueror-20.08.3/plugins/kimgalleryplugin/imgallerydialog.cpp Examining data/konqueror-20.08.3/plugins/kimgalleryplugin/imgallerydialog.h Examining data/konqueror-20.08.3/plugins/kimgalleryplugin/imgalleryplugin.cpp Examining data/konqueror-20.08.3/plugins/shellcmdplugin/kshellcmdexecutor.cpp Examining data/konqueror-20.08.3/plugins/shellcmdplugin/kshellcmdexecutor.h Examining data/konqueror-20.08.3/plugins/shellcmdplugin/kshellcmddialog.h Examining data/konqueror-20.08.3/plugins/shellcmdplugin/kshellcmddialog.cpp Examining data/konqueror-20.08.3/plugins/shellcmdplugin/kshellcmdplugin.cpp Examining data/konqueror-20.08.3/plugins/shellcmdplugin/kshellcmdplugin.h Examining data/konqueror-20.08.3/plugins/ttsplugin/khtmltts.cpp Examining data/konqueror-20.08.3/plugins/ttsplugin/khtmltts.h Examining data/konqueror-20.08.3/plugins/akregator/pluginutil.h Examining data/konqueror-20.08.3/plugins/akregator/feeddetector.cpp Examining data/konqueror-20.08.3/plugins/akregator/konqfeedicon.h Examining data/konqueror-20.08.3/plugins/akregator/konqfeedicon.cpp Examining data/konqueror-20.08.3/plugins/akregator/pluginutil.cpp Examining data/konqueror-20.08.3/plugins/akregator/feeddetector.h Examining data/konqueror-20.08.3/plugins/akregator/akregatorplugin.cpp Examining data/konqueror-20.08.3/plugins/akregator/akregatorplugin.h Examining data/konqueror-20.08.3/plugins/dirfilter/dirfilterplugin.h Examining data/konqueror-20.08.3/plugins/dirfilter/dirfilterplugin.cpp Examining data/konqueror-20.08.3/plugins/searchbar/WebShortcutWidget.h Examining data/konqueror-20.08.3/plugins/searchbar/searchbar.h Examining data/konqueror-20.08.3/plugins/searchbar/SuggestionEngine.cpp Examining data/konqueror-20.08.3/plugins/searchbar/OpenSearchManager.cpp Examining data/konqueror-20.08.3/plugins/searchbar/SuggestionEngine.h Examining data/konqueror-20.08.3/plugins/searchbar/WebShortcutWidget.cpp Examining data/konqueror-20.08.3/plugins/searchbar/opensearch/OpenSearchEngine.cpp Examining data/konqueror-20.08.3/plugins/searchbar/opensearch/OpenSearchReader.h Examining data/konqueror-20.08.3/plugins/searchbar/opensearch/OpenSearchEngine.h Examining data/konqueror-20.08.3/plugins/searchbar/opensearch/OpenSearchWriter.h Examining data/konqueror-20.08.3/plugins/searchbar/opensearch/OpenSearchWriter.cpp Examining data/konqueror-20.08.3/plugins/searchbar/opensearch/OpenSearchReader.cpp Examining data/konqueror-20.08.3/plugins/searchbar/OpenSearchManager.h Examining data/konqueror-20.08.3/plugins/searchbar/searchbar.cpp Examining data/konqueror-20.08.3/plugins/uachanger/uachangerplugin.h Examining data/konqueror-20.08.3/plugins/uachanger/uachangerplugin.cpp Examining data/konqueror-20.08.3/plugins/khtmlsettingsplugin/settingsplugin.cpp Examining data/konqueror-20.08.3/plugins/khtmlsettingsplugin/settingsplugin.h Examining data/konqueror-20.08.3/plugins/autorefresh/autorefresh.h Examining data/konqueror-20.08.3/plugins/autorefresh/autorefresh.cpp Examining data/konqueror-20.08.3/plugins/babelfish/plugin_babelfish.cpp Examining data/konqueror-20.08.3/plugins/babelfish/plugin_babelfish.h FINAL RESULTS: data/konqueror-20.08.3/client/kfmclient.cpp:136:13: [4] (shell) execvp: 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. execvp(wrapper, newargv); data/konqueror-20.08.3/sidebar/trees/konq_sidebartree.cpp:697: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. ::system(QFile::encodeName(cp)); data/konqueror-20.08.3/client/kfmclient.cpp:120:34: [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 int version = atoi(getenv("KDE_SESSION_VERSION")); data/konqueror-20.08.3/plugins/shellcmdplugin/kshellcmdexecutor.cpp:75:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. QByteArray shell(getenv("SHELL")); data/konqueror-20.08.3/src/konqview.cpp:92: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. m_randID = KRandom::random(); data/konqueror-20.08.3/autotests/konqhtmltest.cpp:143: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). QVERIFY(tempFile.open()); data/konqueror-20.08.3/autotests/konqhtmltest.cpp:147:30: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). QVERIFY(origTempFile.open()); data/konqueror-20.08.3/client/kfmclient.cpp:120:29: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). const int version = atoi(getenv("KDE_SESSION_VERSION")); data/konqueror-20.08.3/client/kfmclient.cpp:123:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char wrapper[ 10 ]; data/konqueror-20.08.3/client/kfmclient.cpp:124:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(wrapper, "kde%d", version); data/konqueror-20.08.3/client/kfmclient.cpp:125:34: [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 **newargv = new char *[ argc + 2 ]; data/konqueror-20.08.3/libkonq/src/konq_historyloader.cpp:63: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/konqueror-20.08.3/libkonq/src/konq_historyprovider.cpp:413: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::WriteOnly)) { data/konqueror-20.08.3/plugins/kimgalleryplugin/imgalleryplugin.cpp:336:35: [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 (imageDir.exists() && file.open(QIODevice::WriteOnly)) { data/konqueror-20.08.3/plugins/kimgalleryplugin/imgalleryplugin.cpp:408: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/konqueror-20.08.3/plugins/searchbar/OpenSearchManager.cpp:58: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 | QIODevice::Text)) { data/konqueror-20.08.3/plugins/searchbar/opensearch/OpenSearchReader.cpp:48: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). device->open(QIODevice::ReadOnly); data/konqueror-20.08.3/plugins/searchbar/opensearch/OpenSearchWriter.cpp:39: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). device->open(QIODevice::WriteOnly); data/konqueror-20.08.3/plugins/shellcmdplugin/kshellcmdexecutor.cpp:100:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[16 * 1024]; data/konqueror-20.08.3/settings/konqhtml/css/kcmcss.cpp:262:15: [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 *blackOnWhiteFG[2] = {"White", "Black"}; data/konqueror-20.08.3/settings/konqhtml/css/kcmcss.cpp:268:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *notImportant[2] = {"", "! important"}; data/konqueror-20.08.3/settings/konqhtml/css/kcmcss.cpp:277:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *bgNoneImportant[2] = {"", "background-image : none ! important"}; data/konqueror-20.08.3/settings/konqhtml/css/template.cpp:12: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 (!inf.open(QIODevice::ReadOnly)) { data/konqueror-20.08.3/settings/konqhtml/css/template.cpp:18: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 (!outf.open(QIODevice::WriteOnly)) { data/konqueror-20.08.3/settings/konqhtml/css/template.cpp:33: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 (!inf.open(QIODevice::ReadOnly)) { data/konqueror-20.08.3/settings/konqhtml/filteropts.cpp:274: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 (f.open(QIODevice::ReadOnly)) { data/konqueror-20.08.3/settings/konqhtml/filteropts.cpp:320: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 (f.open(QIODevice::WriteOnly)) { data/konqueror-20.08.3/settings/konqhtml/pluginopts.cpp:547: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). if (!cachef.exists() || !cachef.open(QIODevice::ReadOnly)) { data/konqueror-20.08.3/sidebar/trees/bookmark_module/bookmark_module.cpp:491: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 (!open) { data/konqueror-20.08.3/sidebar/trees/bookmark_module/bookmark_module.cpp:494:49: [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_folderOpenState[bookmark.address()] = open; data/konqueror-20.08.3/sidebar/trees/dirtree_module/dirtree_item.cpp:95:43: [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 KonqSidebarDirTreeItem::setOpen(bool open) data/konqueror-20.08.3/sidebar/trees/dirtree_module/dirtree_item.cpp:97:59: [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). kDebug(1201) << "KonqSidebarDirTreeItem::setOpen " << open; data/konqueror-20.08.3/sidebar/trees/dirtree_module/dirtree_item.cpp:98: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 (open && !childCount() && m_bListable) { data/konqueror-20.08.3/sidebar/trees/dirtree_module/dirtree_item.cpp:102: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 (open) { data/konqueror-20.08.3/sidebar/trees/dirtree_module/dirtree_item.cpp:108:34: [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). KonqSidebarTreeItem::setOpen(open); data/konqueror-20.08.3/sidebar/trees/dirtree_module/dirtree_item.h:44:31: [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). virtual void setOpen(bool open); data/konqueror-20.08.3/sidebar/trees/konq_sidebartree.cpp:747:40: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). open = group.readEntry("Open", open); data/konqueror-20.08.3/sidebar/trees/konq_sidebartree.cpp:762: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). item->setOpen(open); data/konqueror-20.08.3/sidebar/trees/konq_sidebartree.cpp:816: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 (open && item->isExpandable()) { data/konqueror-20.08.3/sidebar/trees/konq_sidebartreetoplevelitem.cpp:46:48: [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 KonqSidebarTreeTopLevelItem::setOpen(bool open) data/konqueror-20.08.3/sidebar/trees/konq_sidebartreetoplevelitem.cpp:48: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 (open && module()) { data/konqueror-20.08.3/sidebar/trees/konq_sidebartreetoplevelitem.cpp:51:34: [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). KonqSidebarTreeItem::setOpen(open); data/konqueror-20.08.3/sidebar/trees/konq_sidebartreetoplevelitem.h:73:31: [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). virtual void setOpen(bool open); data/konqueror-20.08.3/src/konqmainwindow.cpp:670: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 (!open) { data/konqueror-20.08.3/src/konqmainwindow.cpp:678:25: [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) { data/konqueror-20.08.3/src/konqmainwindow.cpp:682: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). if (open) { data/konqueror-20.08.3/src/konqmainwindow.cpp:1484: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 (!zip.open(QIODevice::WriteOnly)) { data/konqueror-20.08.3/src/konqviewmanager.cpp:293: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). tempFile.open(); data/konqueror-20.08.3/src/konqviewmanager.cpp:327: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). tempFile.open(); data/konqueror-20.08.3/src/konqviewmanager.cpp:1442: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). tempFile.open(); data/konqueror-20.08.3/webenginepart/src/about/konq_aboutpage.cpp:28: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 (!f.open(QIODevice::ReadOnly)) { data/konqueror-20.08.3/webenginepart/src/about/konq_aboutpage.cpp:360: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). buf->open(QBuffer::ReadWrite); data/konqueror-20.08.3/webenginepart/src/settings/webenginesettings.cpp:145: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/konqueror-20.08.3/webenginepart/src/settings/webenginesettings.cpp:173: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 ( file.open(QFile::WriteOnly) ) data/konqueror-20.08.3/webenginepart/src/webenginepart.cpp:618: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). dlg->open(); data/konqueror-20.08.3/webenginepart/src/webenginepart_ext.cpp:92: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 (!buffer.open(QIODevice::ReadOnly)) { data/konqueror-20.08.3/webenginepart/src/webenginepart_ext.cpp:166: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). if (buffer.open(QIODevice::ReadOnly)) { data/konqueror-20.08.3/webenginepart/src/webenginepart_ext.cpp:552: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 (tempFile.open()) { data/konqueror-20.08.3/webenginepart/src/webenginepart_ext.cpp:800: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 (buff.open(QIODevice::WriteOnly)) { data/konqueror-20.08.3/webenginepart/src/webengineparterrorschemehandler.cpp:54: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). if (f.open(QIODevice::ReadOnly)) { data/konqueror-20.08.3/webenginepart/src/webengineparterrorschemehandler.cpp:69: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). buf->open(QBuffer::ReadWrite); data/konqueror-20.08.3/webenginepart/src/webengineparterrorschemehandler.cpp:107: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/konqueror-20.08.3/webenginepart/src/webengineparthtmlembedder.cpp:115: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/konqueror-20.08.3/webenginepart/src/webenginepartkiohandler.cpp:54: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). buf->open(QBuffer::ReadWrite); data/konqueror-20.08.3/webenginepart/tests/webenginepart_tester.cpp:346: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 (inputFile.open(QIODevice::ReadOnly | QIODevice::Text)) { data/konqueror-20.08.3/plugins/searchbar/OpenSearchManager.cpp:64:43: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). OpenSearchEngine *engine = reader.read(&file); data/konqueror-20.08.3/plugins/searchbar/OpenSearchManager.cpp:137:43: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). OpenSearchEngine *engine = reader.read(m_jobData); data/konqueror-20.08.3/plugins/searchbar/opensearch/OpenSearchReader.cpp:34:37: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). OpenSearchEngine *OpenSearchReader::read(const QByteArray &data) data/konqueror-20.08.3/plugins/searchbar/opensearch/OpenSearchReader.cpp:40:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return read(); data/konqueror-20.08.3/plugins/searchbar/opensearch/OpenSearchReader.cpp:43:37: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). OpenSearchEngine *OpenSearchReader::read(QIODevice *device) data/konqueror-20.08.3/plugins/searchbar/opensearch/OpenSearchReader.cpp:52:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return read(); data/konqueror-20.08.3/plugins/searchbar/opensearch/OpenSearchReader.cpp:55:37: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). OpenSearchEngine *OpenSearchReader::read() data/konqueror-20.08.3/plugins/searchbar/opensearch/OpenSearchReader.h:32:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). OpenSearchEngine *read(const QByteArray &data); data/konqueror-20.08.3/plugins/searchbar/opensearch/OpenSearchReader.h:33:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). OpenSearchEngine *read(QIODevice *device); data/konqueror-20.08.3/plugins/searchbar/opensearch/OpenSearchReader.h:36:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). OpenSearchEngine *read(); data/konqueror-20.08.3/plugins/shellcmdplugin/kshellcmdexecutor.cpp:101:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int bytesRead =::read(m_shellProcess->fd(), buffer, 16 * 1024 - 1); ANALYSIS SUMMARY: Hits = 76 Lines analyzed = 71809 in approximately 9.48 seconds (7574 lines/second) Physical Source Lines of Code (SLOC) = 48984 Hits@level = [0] 11 [1] 11 [2] 60 [3] 3 [4] 2 [5] 0 Hits@level+ = [0+] 87 [1+] 76 [2+] 65 [3+] 5 [4+] 2 [5+] 0 Hits/KSLOC@level+ = [0+] 1.77609 [1+] 1.55153 [2+] 1.32696 [3+] 0.102074 [4+] 0.0408297 [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.