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/dde-qt5integration-5.0.0/dstyleplugin/checkboxhelper.cpp Examining data/dde-qt5integration-5.0.0/dstyleplugin/colorutils.cpp Examining data/dde-qt5integration-5.0.0/dstyleplugin/colorutils.h Examining data/dde-qt5integration-5.0.0/dstyleplugin/comboboxhelper.cpp Examining data/dde-qt5integration-5.0.0/dstyleplugin/common.h Examining data/dde-qt5integration-5.0.0/dstyleplugin/commonhelper.cpp Examining data/dde-qt5integration-5.0.0/dstyleplugin/commonhelper.h Examining data/dde-qt5integration-5.0.0/dstyleplugin/config.tests/dtkwidget/main.cpp Examining data/dde-qt5integration-5.0.0/dstyleplugin/dstyleanimation.cpp Examining data/dde-qt5integration-5.0.0/dstyleplugin/dstyleanimation.h Examining data/dde-qt5integration-5.0.0/dstyleplugin/dstyleplugin.cpp Examining data/dde-qt5integration-5.0.0/dstyleplugin/dstyleplugin.h Examining data/dde-qt5integration-5.0.0/dstyleplugin/framehelper.cpp Examining data/dde-qt5integration-5.0.0/dstyleplugin/geometryutils.cpp Examining data/dde-qt5integration-5.0.0/dstyleplugin/geometryutils.h Examining data/dde-qt5integration-5.0.0/dstyleplugin/headerviewhelper.cpp Examining data/dde-qt5integration-5.0.0/dstyleplugin/hidpihelper.cpp Examining data/dde-qt5integration-5.0.0/dstyleplugin/hidpihelper.h Examining data/dde-qt5integration-5.0.0/dstyleplugin/lineedithelper.cpp Examining data/dde-qt5integration-5.0.0/dstyleplugin/menuhelper.cpp Examining data/dde-qt5integration-5.0.0/dstyleplugin/painterhelper.h Examining data/dde-qt5integration-5.0.0/dstyleplugin/paletteextended.cpp Examining data/dde-qt5integration-5.0.0/dstyleplugin/paletteextended.h Examining data/dde-qt5integration-5.0.0/dstyleplugin/progressbarhelper.cpp Examining data/dde-qt5integration-5.0.0/dstyleplugin/rubberbandhelper.cpp Examining data/dde-qt5integration-5.0.0/dstyleplugin/scrollbarhelper.cpp Examining data/dde-qt5integration-5.0.0/dstyleplugin/sliderhelper.cpp Examining data/dde-qt5integration-5.0.0/dstyleplugin/spinboxhelper.cpp Examining data/dde-qt5integration-5.0.0/dstyleplugin/style.cpp Examining data/dde-qt5integration-5.0.0/dstyleplugin/style.h Examining data/dde-qt5integration-5.0.0/dstyleplugin/toolbuttonhelper.cpp Examining data/dde-qt5integration-5.0.0/dstyleplugin/painterhelper.cpp Examining data/dde-qt5integration-5.0.0/dstyleplugin/pushbuttonhelper.cpp Examining data/dde-qt5integration-5.0.0/dstyleplugin/tabbarhelper.cpp Examining data/dde-qt5integration-5.0.0/dstyleplugin/tabwidgethelper.cpp Examining data/dde-qt5integration-5.0.0/iconengineplugins/svgiconengine/main.cpp Examining data/dde-qt5integration-5.0.0/iconengineplugins/svgiconengine/qsvgiconengine.cpp Examining data/dde-qt5integration-5.0.0/iconengineplugins/svgiconengine/qsvgiconengine.h Examining data/dde-qt5integration-5.0.0/imageformatplugins/svg/main.cpp Examining data/dde-qt5integration-5.0.0/imageformatplugins/svg/qsvgiohandler.cpp Examining data/dde-qt5integration-5.0.0/imageformatplugins/svg/qsvgiohandler.h Examining data/dde-qt5integration-5.0.0/platformthemeplugin/config.tests/dthemed_icon_lookup/main.cpp Examining data/dde-qt5integration-5.0.0/platformthemeplugin/diconengine.cpp Examining data/dde-qt5integration-5.0.0/platformthemeplugin/diconengine.h Examining data/dde-qt5integration-5.0.0/platformthemeplugin/diconproxyengine.cpp Examining data/dde-qt5integration-5.0.0/platformthemeplugin/diconproxyengine.h Examining data/dde-qt5integration-5.0.0/platformthemeplugin/dthemesettings.cpp Examining data/dde-qt5integration-5.0.0/platformthemeplugin/dthemesettings.h Examining data/dde-qt5integration-5.0.0/platformthemeplugin/main.cpp Examining data/dde-qt5integration-5.0.0/platformthemeplugin/qdeepinfiledialoghelper.cpp Examining data/dde-qt5integration-5.0.0/platformthemeplugin/qdeepinfiledialoghelper.h Examining data/dde-qt5integration-5.0.0/platformthemeplugin/qdeepintheme.h Examining data/dde-qt5integration-5.0.0/platformthemeplugin/xdgiconenginecreator.cpp Examining data/dde-qt5integration-5.0.0/platformthemeplugin/xdgiconenginecreator.h Examining data/dde-qt5integration-5.0.0/platformthemeplugin/qdeepintheme.cpp Examining data/dde-qt5integration-5.0.0/styles/main.cpp Examining data/dde-qt5integration-5.0.0/styles/norwegianwoodstyle.cpp Examining data/dde-qt5integration-5.0.0/styles/norwegianwoodstyle.h Examining data/dde-qt5integration-5.0.0/styles/widgetgallery.cpp Examining data/dde-qt5integration-5.0.0/styles/widgetgallery.h FINAL RESULTS: data/dde-qt5integration-5.0.0/dstyleplugin/paletteextended.cpp:297: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/dde-qt5integration-5.0.0/iconengineplugins/svgiconengine/qsvgiconengine.cpp:341: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 (f.open(QIODevice::ReadOnly)) data/dde-qt5integration-5.0.0/iconengineplugins/svgiconengine/qsvgiconengine.cpp:362: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 (f.open(QIODevice::ReadOnly)) data/dde-qt5integration-5.0.0/platformthemeplugin/dthemesettings.cpp:67: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). file.open(QFile::WriteOnly); data/dde-qt5integration-5.0.0/platformthemeplugin/qdeepintheme.cpp:105: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 (device.open(QIODevice::ReadOnly)) data/dde-qt5integration-5.0.0/dstyleplugin/hidpihelper.cpp:22:48: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). pixmap = QPixmap::fromImage(reader.read()); data/dde-qt5integration-5.0.0/iconengineplugins/svgiconengine/qsvgiconengine.cpp:270:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool QSvgIconEngine::read(QDataStream &in) data/dde-qt5integration-5.0.0/iconengineplugins/svgiconengine/qsvgiconengine.h:70:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool read(QDataStream &in); data/dde-qt5integration-5.0.0/imageformatplugins/svg/qsvgiohandler.cpp:146:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool QSvgIOHandler::read(QImage *image) data/dde-qt5integration-5.0.0/imageformatplugins/svg/qsvgiohandler.h:62:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual bool read(QImage *image); data/dde-qt5integration-5.0.0/platformthemeplugin/diconproxyengine.cpp:47:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool DIconProxyEngine::read(QDataStream &in) data/dde-qt5integration-5.0.0/platformthemeplugin/diconproxyengine.h:32:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool read(QDataStream &in) Q_DECL_OVERRIDE; data/dde-qt5integration-5.0.0/platformthemeplugin/qdeepintheme.cpp:246:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool read(QDataStream &in) override { data/dde-qt5integration-5.0.0/platformthemeplugin/qdeepintheme.cpp:247:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return engine->read(in); ANALYSIS SUMMARY: Hits = 14 Lines analyzed = 10483 in approximately 0.37 seconds (28699 lines/second) Physical Source Lines of Code (SLOC) = 6994 Hits@level = [0] 0 [1] 9 [2] 5 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 14 [1+] 14 [2+] 5 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 2.00172 [1+] 2.00172 [2+] 0.714898 [3+] 0 [4+] 0 [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.