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/kconfig-5.74.0/autotests/ksharedconfig_in_global_object.cpp
Examining data/kconfig-5.74.0/autotests/kconfigloadertest.h
Examining data/kconfig-5.74.0/autotests/ksharedconfigtest.cpp
Examining data/kconfig-5.74.0/autotests/kstandardshortcuttest.cpp
Examining data/kconfig-5.74.0/autotests/kconfigguitest.h
Examining data/kconfig-5.74.0/autotests/kentrymaptest.cpp
Examining data/kconfig-5.74.0/autotests/kconfigtest.h
Examining data/kconfig-5.74.0/autotests/kconfig_compiler/test2main.cpp
Examining data/kconfig-5.74.0/autotests/kconfig_compiler/test1main.cpp
Examining data/kconfig-5.74.0/autotests/kconfig_compiler/test_qdebugcategory_debug.h
Examining data/kconfig-5.74.0/autotests/kconfig_compiler/test_translation_qt_main.cpp
Examining data/kconfig-5.74.0/autotests/kconfig_compiler/test_properties_minmax_main.cpp
Examining data/kconfig-5.74.0/autotests/kconfig_compiler/test_signal_main.cpp
Examining data/kconfig-5.74.0/autotests/kconfig_compiler/test11_types.h
Examining data/kconfig-5.74.0/autotests/kconfig_compiler/test13main.cpp
Examining data/kconfig-5.74.0/autotests/kconfig_compiler/test_dpointer_main.cpp
Examining data/kconfig-5.74.0/autotests/kconfig_compiler/myprefs.h
Examining data/kconfig-5.74.0/autotests/kconfig_compiler/test_qdebugcategory_debug.cpp
Examining data/kconfig-5.74.0/autotests/kconfig_compiler/test_subgroups_main.cpp
Examining data/kconfig-5.74.0/autotests/kconfig_compiler/test_qdebugcategorymain.cpp
Examining data/kconfig-5.74.0/autotests/kconfig_compiler/test5main.cpp
Examining data/kconfig-5.74.0/autotests/kconfig_compiler/test10main.cpp
Examining data/kconfig-5.74.0/autotests/kconfig_compiler/test12main.cpp
Examining data/kconfig-5.74.0/autotests/kconfig_compiler/test_translation_kde_main.cpp
Examining data/kconfig-5.74.0/autotests/kconfig_compiler/test6main.cpp
Examining data/kconfig-5.74.0/autotests/kconfig_compiler/kconfigcompiler_test.h
Examining data/kconfig-5.74.0/autotests/kconfig_compiler/test7main.cpp
Examining data/kconfig-5.74.0/autotests/kconfig_compiler/test_param_minmax_main.cpp
Examining data/kconfig-5.74.0/autotests/kconfig_compiler/kconfigcompiler_test_signals.cpp
Examining data/kconfig-5.74.0/autotests/kconfig_compiler/test_fileextensions_main.cxx
Examining data/kconfig-5.74.0/autotests/kconfig_compiler/test3amain.cpp
Examining data/kconfig-5.74.0/autotests/kconfig_compiler/test_translation_kde_domain_main.cpp
Examining data/kconfig-5.74.0/autotests/kconfig_compiler/test8main.cpp
Examining data/kconfig-5.74.0/autotests/kconfig_compiler/test11main.cpp
Examining data/kconfig-5.74.0/autotests/kconfig_compiler/test_emptyentries_main.cpp
Examining data/kconfig-5.74.0/autotests/kconfig_compiler/klocalizedstring.h
Examining data/kconfig-5.74.0/autotests/kconfig_compiler/test_notifiers_main.cpp
Examining data/kconfig-5.74.0/autotests/kconfig_compiler/test9main.cpp
Examining data/kconfig-5.74.0/autotests/kconfig_compiler/test4main.cpp
Examining data/kconfig-5.74.0/autotests/kconfig_compiler/kconfigcompiler_test.cpp
Examining data/kconfig-5.74.0/autotests/kconfig_compiler/test3main.cpp
Examining data/kconfig-5.74.0/autotests/kconfigskeletontest.h
Examining data/kconfig-5.74.0/autotests/kconfigguitest.cpp
Examining data/kconfig-5.74.0/autotests/test_kconf_update.h
Examining data/kconfig-5.74.0/autotests/test_kconfigutils.cpp
Examining data/kconfig-5.74.0/autotests/kconfigskeletontest.cpp
Examining data/kconfig-5.74.0/autotests/kstandardshortcuttest.h
Examining data/kconfig-5.74.0/autotests/kconfignokdehometest.cpp
Examining data/kconfig-5.74.0/autotests/helper.h
Examining data/kconfig-5.74.0/autotests/kconfigtest.cpp
Examining data/kconfig-5.74.0/autotests/test_kconf_update.cpp
Examining data/kconfig-5.74.0/autotests/test_kconfigutils.h
Examining data/kconfig-5.74.0/autotests/kdesktopfiletest.cpp
Examining data/kconfig-5.74.0/autotests/kentrymaptest.h
Examining data/kconfig-5.74.0/autotests/kconfigloadertest.cpp
Examining data/kconfig-5.74.0/autotests/kdesktopfiletest.h
Examining data/kconfig-5.74.0/autotests/fallbackconfigresourcestest.cpp
Examining data/kconfig-5.74.0/src/kconfig_compiler/KConfigParameters.h
Examining data/kconfig-5.74.0/src/kconfig_compiler/KConfigHeaderGenerator.cpp
Examining data/kconfig-5.74.0/src/kconfig_compiler/KConfigHeaderGenerator.h
Examining data/kconfig-5.74.0/src/kconfig_compiler/KConfigCodeGeneratorBase.cpp
Examining data/kconfig-5.74.0/src/kconfig_compiler/KConfigSourceGenerator.h
Examining data/kconfig-5.74.0/src/kconfig_compiler/KConfigXmlParser.h
Examining data/kconfig-5.74.0/src/kconfig_compiler/kconfig_compiler.cpp
Examining data/kconfig-5.74.0/src/kconfig_compiler/KConfigCommonStructs.h
Examining data/kconfig-5.74.0/src/kconfig_compiler/KConfigXmlParser.cpp
Examining data/kconfig-5.74.0/src/kconfig_compiler/KConfigCodeGeneratorBase.h
Examining data/kconfig-5.74.0/src/kconfig_compiler/KConfigSourceGenerator.cpp
Examining data/kconfig-5.74.0/src/kconfig_compiler/KConfigParameters.cpp
Examining data/kconfig-5.74.0/src/kconf_update/kconfigutils.cpp
Examining data/kconfig-5.74.0/src/kconf_update/kconf_update.cpp
Examining data/kconfig-5.74.0/src/kconf_update/kconfigutils.h
Examining data/kconfig-5.74.0/src/core/kconfigbase.h
Examining data/kconfig-5.74.0/src/core/kconfigwatcher.h
Examining data/kconfig-5.74.0/src/core/kdesktopfile.h
Examining data/kconfig-5.74.0/src/core/bufferfragment_p.h
Examining data/kconfig-5.74.0/src/core/kemailsettings.h
Examining data/kconfig-5.74.0/src/core/kauthorized.h
Examining data/kconfig-5.74.0/src/core/kconfigdata.h
Examining data/kconfig-5.74.0/src/core/kdesktopfile.cpp
Examining data/kconfig-5.74.0/src/core/kconfigbackend.cpp
Examining data/kconfig-5.74.0/src/core/kconfigini.cpp
Examining data/kconfig-5.74.0/src/core/kemailsettings.cpp
Examining data/kconfig-5.74.0/src/core/kconfigbase_p.h
Examining data/kconfig-5.74.0/src/core/kconfigbase.cpp
Examining data/kconfig-5.74.0/src/core/kconfig.cpp
Examining data/kconfig-5.74.0/src/core/kconfigini_p.h
Examining data/kconfig-5.74.0/src/core/kauthorized.cpp
Examining data/kconfig-5.74.0/src/core/kcoreconfigskeleton_p.h
Examining data/kconfig-5.74.0/src/core/kconfig_p.h
Examining data/kconfig-5.74.0/src/core/conversioncheck.h
Examining data/kconfig-5.74.0/src/core/kconfiggroup_p.h
Examining data/kconfig-5.74.0/src/core/ksharedconfig.cpp
Examining data/kconfig-5.74.0/src/core/kconfiggroup.h
Examining data/kconfig-5.74.0/src/core/kconfigbackend_p.h
Examining data/kconfig-5.74.0/src/core/kcoreconfigskeleton.h
Examining data/kconfig-5.74.0/src/core/kconfig.h
Examining data/kconfig-5.74.0/src/core/kcoreconfigskeleton.cpp
Examining data/kconfig-5.74.0/src/core/ksharedconfig.h
Examining data/kconfig-5.74.0/src/core/kconfiggroup.cpp
Examining data/kconfig-5.74.0/src/core/kconfigwatcher.cpp
Examining data/kconfig-5.74.0/src/core/kconfigdata.cpp
Examining data/kconfig-5.74.0/src/gui/kconfigskeleton.h
Examining data/kconfig-5.74.0/src/gui/kconfiggui.cpp
Examining data/kconfig-5.74.0/src/gui/kstandardshortcut.cpp
Examining data/kconfig-5.74.0/src/gui/kconfigloader.h
Examining data/kconfig-5.74.0/src/gui/kconfiggroupgui.cpp
Examining data/kconfig-5.74.0/src/gui/kstandardshortcut.h
Examining data/kconfig-5.74.0/src/gui/kconfigloader.cpp
Examining data/kconfig-5.74.0/src/gui/kconfigloader_p.h
Examining data/kconfig-5.74.0/src/gui/kconfigskeleton.cpp
Examining data/kconfig-5.74.0/src/gui/kwindowconfig.cpp
Examining data/kconfig-5.74.0/src/gui/kwindowconfig.h
Examining data/kconfig-5.74.0/src/gui/kconfiggui.h
Examining data/kconfig-5.74.0/src/gui/kconfigloaderhandler_p.h
Examining data/kconfig-5.74.0/src/kreadconfig/kreadconfig.cpp
Examining data/kconfig-5.74.0/src/kreadconfig/kwriteconfig.cpp

FINAL RESULTS:

data/kconfig-5.74.0/src/core/kconfigbackend.cpp:46:9:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if (system.compare(QLatin1String("INI"), Qt::CaseInsensitive) != 0) {
data/kconfig-5.74.0/src/core/kconfigbackend.cpp:47:95:  [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 QString constraint = QString::fromLatin1("[X-KDE-PluginInfo-Name] ~~ '%1'").arg(system);
data/kconfig-5.74.0/autotests/kconfig_compiler/kconfigcompiler_test.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 | QIODevice::Text)) {
data/kconfig-5.74.0/autotests/kconfig_compiler/kconfigcompiler_test.cpp:119: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 (!fileRef.open(QIODevice::ReadOnly | QIODevice::Text)) {
data/kconfig-5.74.0/autotests/kconfig_compiler/kconfigcompiler_test.cpp:181:27:  [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).
        QVERIFY2(diffFile.open(QIODevice::WriteOnly), qPrintable(QLatin1String("Could not save diff file for ") + oldFile));
data/kconfig-5.74.0/autotests/kconfig_compiler/kconfigcompiler_test_signals.cpp:43: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(tempFile1->open());
data/kconfig-5.74.0/autotests/kconfig_compiler/kconfigcompiler_test_signals.cpp:44: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(tempFile2->open());
data/kconfig-5.74.0/autotests/kconfig_compiler/kconfigcompiler_test_signals.cpp:45: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(tempFile3->open());
data/kconfig-5.74.0/autotests/kconfig_compiler/kconfigcompiler_test_signals.cpp:46: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(tempFile4->open());
data/kconfig-5.74.0/autotests/kconfigtest.cpp:261: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).
    const bool opened = file.open(QIODevice::ReadOnly | QIODevice::Text);
data/kconfig-5.74.0/autotests/kconfigtest.cpp:517:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        file.open(QIODevice::WriteOnly | QIODevice::Text);
data/kconfig-5.74.0/autotests/kconfigtest.cpp:579:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        file.open(QIODevice::WriteOnly | QIODevice::Text);
data/kconfig-5.74.0/autotests/kconfigtest.cpp:969: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).
    QVERIFY(global.open(QIODevice::WriteOnly | QIODevice::Text));
data/kconfig-5.74.0/autotests/kconfigtest.cpp:983: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(local.open(QIODevice::WriteOnly | QIODevice::Text));
data/kconfig-5.74.0/autotests/kconfigtest.cpp:1019:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        file.open(QIODevice::WriteOnly | QIODevice::Text);
data/kconfig-5.74.0/autotests/kconfigtest.cpp:1046:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        file.open(QIODevice::ReadOnly | QIODevice::Text);
data/kconfig-5.74.0/autotests/kconfigtest.cpp:1057:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        file.open(QIODevice::WriteOnly | QIODevice::Text);
data/kconfig-5.74.0/autotests/kconfigtest.cpp:1082:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        file.open(QIODevice::WriteOnly | QIODevice::Text);
data/kconfig-5.74.0/autotests/kconfigtest.cpp:1109:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        file.open(QIODevice::ReadOnly | QIODevice::Text);
data/kconfig-5.74.0/autotests/kconfigtest.cpp:1501: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).
    QVERIFY(f.open(QIODevice::WriteOnly));
data/kconfig-5.74.0/autotests/kconfigtest.cpp:1553: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).
    QVERIFY(f.open(QIODevice::WriteOnly));
data/kconfig-5.74.0/autotests/kconfigtest.cpp:1722: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).
    QVERIFY(file.open());
data/kconfig-5.74.0/autotests/kconfigtest.cpp:1734: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).
    QVERIFY(readFile.open(QFile::ReadOnly));
data/kconfig-5.74.0/autotests/kconfigtest.cpp:1778: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).
    QVERIFY(file.open());
data/kconfig-5.74.0/autotests/kconfigtest.cpp:1786: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).
    QVERIFY(readFile.open(QFile::ReadOnly));
data/kconfig-5.74.0/autotests/kconfigtest.cpp:1803: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).
    QVERIFY(file.open());
data/kconfig-5.74.0/autotests/kconfigtest.cpp:1812: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).
    QVERIFY(readFile.open(QFile::ReadOnly));
data/kconfig-5.74.0/autotests/kconfigtest.cpp:1824: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).
    QVERIFY(file.open());
data/kconfig-5.74.0/autotests/kdesktopfiletest.cpp:29: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).
    QVERIFY(file.open());
data/kconfig-5.74.0/autotests/kdesktopfiletest.cpp:57: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).
    QVERIFY(file.open());
data/kconfig-5.74.0/autotests/kdesktopfiletest.cpp:100: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).
    QVERIFY(file.open());
data/kconfig-5.74.0/autotests/kdesktopfiletest.cpp:129: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).
    QVERIFY(file.open());
data/kconfig-5.74.0/autotests/kdesktopfiletest.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).
    QVERIFY(file.open());
data/kconfig-5.74.0/autotests/kdesktopfiletest.cpp:161: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).
    QVERIFY(file.open());
data/kconfig-5.74.0/autotests/kdesktopfiletest.cpp:200: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).
    QVERIFY(file.open());
data/kconfig-5.74.0/autotests/kdesktopfiletest.cpp:232: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).
        QVERIFY(file.open());
data/kconfig-5.74.0/autotests/kdesktopfiletest.cpp:250: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).
        QVERIFY(file.open());
data/kconfig-5.74.0/autotests/test_kconf_update.cpp:35: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/kconfig-5.74.0/autotests/test_kconf_update.cpp:44: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/kconfig-5.74.0/autotests/test_kconf_update.cpp:58: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 ok = file->open();
data/kconfig-5.74.0/src/core/kconfigini.cpp:85: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 | QIODevice::Text)) {
data/kconfig-5.74.0/src/core/kconfigini.cpp:480: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::WriteOnly)) {
data/kconfig-5.74.0/src/core/kconfigini.cpp:521: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 (!f.open(fp, QIODevice::WriteOnly)) {
data/kconfig-5.74.0/src/core/kconfigini.cpp:531: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 (!f.open(QIODevice::WriteOnly | QIODevice::Truncate)) {
data/kconfig-5.74.0/src/core/kconfigini.cpp:661:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char bytes[4];
data/kconfig-5.74.0/src/gui/kconfigloader.cpp:38: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 (!input->open(QIODevice::ReadOnly)) {
data/kconfig-5.74.0/src/gui/kstandardshortcut.cpp:379: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).
const QList<QKeySequence> &open()
data/kconfig-5.74.0/src/gui/kstandardshortcut.h:250:46:  [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).
KCONFIGGUI_EXPORT const QList<QKeySequence> &open();
data/kconfig-5.74.0/src/kconf_update/kconf_update.cpp:211: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/kconfig-5.74.0/src/kconf_update/kconf_update.cpp:296: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/kconfig-5.74.0/src/kconf_update/kconf_update.cpp:787: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 (!scriptIn.open() || !scriptOut.open()) {
data/kconfig-5.74.0/src/kconf_update/kconf_update.cpp:787: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).
    if (!scriptIn.open() || !scriptOut.open()) {
data/kconfig-5.74.0/src/kconf_update/kconf_update.cpp:823: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 (scriptFile.open(QIODevice::ReadOnly)) {
data/kconfig-5.74.0/src/kconf_update/kconf_update.cpp:861: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).
        if (output.open(QIODevice::ReadOnly)) {
data/kconfig-5.74.0/src/kconf_update/kconf_update.cpp:870: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).
        if (output.open(QIODevice::ReadOnly)) {
data/kconfig-5.74.0/src/kconfig_compiler/KConfigCodeGeneratorBase.cpp:36: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 (!m_file.open(QIODevice::WriteOnly)) {
data/kconfig-5.74.0/autotests/kconfigskeletontest.cpp:79:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    s->read();
data/kconfig-5.74.0/autotests/kconfigskeletontest.cpp:166:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    s->read();
data/kconfig-5.74.0/src/core/kcoreconfigskeleton.cpp:1238:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read();
data/kconfig-5.74.0/src/core/kcoreconfigskeleton.cpp:1241:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void KCoreConfigSkeleton::read()
data/kconfig-5.74.0/src/core/kcoreconfigskeleton.h:1194:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    void read();

ANALYSIS SUMMARY:

Hits = 61
Lines analyzed = 24822 in approximately 0.69 seconds (36090 lines/second)
Physical Source Lines of Code (SLOC) = 16784
Hits@level = [0]   4 [1]   5 [2]  54 [3]   0 [4]   2 [5]   0
Hits@level+ = [0+]  65 [1+]  61 [2+]  56 [3+]   2 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 3.87274 [1+] 3.63441 [2+] 3.33651 [3+] 0.119161 [4+] 0.119161 [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.