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/deepin-screenshot-5.0.0/src/controller/menucontroller.cpp Examining data/deepin-screenshot-5.0.0/src/controller/menucontroller.h Examining data/deepin-screenshot-5.0.0/src/dbusinterface/dbuscontrolcenter.cpp Examining data/deepin-screenshot-5.0.0/src/dbusinterface/dbuscontrolcenter.h Examining data/deepin-screenshot-5.0.0/src/dbusinterface/dbusnotify.cpp Examining data/deepin-screenshot-5.0.0/src/dbusinterface/dbusnotify.h Examining data/deepin-screenshot-5.0.0/src/dbusinterface/dbussoundeffect.cpp Examining data/deepin-screenshot-5.0.0/src/dbusinterface/dbussoundeffect.h Examining data/deepin-screenshot-5.0.0/src/dbusinterface/dbuszone.cpp Examining data/deepin-screenshot-5.0.0/src/dbusinterface/dbuszone.h Examining data/deepin-screenshot-5.0.0/src/dbusservice/dbusscreenshot.cpp Examining data/deepin-screenshot-5.0.0/src/dbusservice/dbusscreenshot.h Examining data/deepin-screenshot-5.0.0/src/dbusservice/dbusscreenshotservice.cpp Examining data/deepin-screenshot-5.0.0/src/dbusservice/dbusscreenshotservice.h Examining data/deepin-screenshot-5.0.0/src/eventcontainer.cpp Examining data/deepin-screenshot-5.0.0/src/eventcontainer.h Examining data/deepin-screenshot-5.0.0/src/main.cpp Examining data/deepin-screenshot-5.0.0/src/mainwindow.cpp Examining data/deepin-screenshot-5.0.0/src/mainwindow.h Examining data/deepin-screenshot-5.0.0/src/screenshot.cpp Examining data/deepin-screenshot-5.0.0/src/screenshot.h Examining data/deepin-screenshot-5.0.0/src/utils/baseutils.cpp Examining data/deepin-screenshot-5.0.0/src/utils/baseutils.h Examining data/deepin-screenshot-5.0.0/src/utils/calculaterect.cpp Examining data/deepin-screenshot-5.0.0/src/utils/calculaterect.h Examining data/deepin-screenshot-5.0.0/src/utils/configsettings.cpp Examining data/deepin-screenshot-5.0.0/src/utils/configsettings.h Examining data/deepin-screenshot-5.0.0/src/utils/saveutils.h Examining data/deepin-screenshot-5.0.0/src/utils/screenutils.cpp Examining data/deepin-screenshot-5.0.0/src/utils/screenutils.h Examining data/deepin-screenshot-5.0.0/src/utils/shapesutils.cpp Examining data/deepin-screenshot-5.0.0/src/utils/shapesutils.h Examining data/deepin-screenshot-5.0.0/src/utils/shortcut.cpp Examining data/deepin-screenshot-5.0.0/src/utils/shortcut.h Examining data/deepin-screenshot-5.0.0/src/utils/tempfile.cpp Examining data/deepin-screenshot-5.0.0/src/utils/tempfile.h Examining data/deepin-screenshot-5.0.0/src/widgets/bigcolorbutton.cpp Examining data/deepin-screenshot-5.0.0/src/widgets/bigcolorbutton.h Examining data/deepin-screenshot-5.0.0/src/widgets/colorbutton.cpp Examining data/deepin-screenshot-5.0.0/src/widgets/colorbutton.h Examining data/deepin-screenshot-5.0.0/src/widgets/fontsizewidget.cpp Examining data/deepin-screenshot-5.0.0/src/widgets/fontsizewidget.h Examining data/deepin-screenshot-5.0.0/src/widgets/majtoolbar.cpp Examining data/deepin-screenshot-5.0.0/src/widgets/majtoolbar.h Examining data/deepin-screenshot-5.0.0/src/widgets/savebutton.cpp Examining data/deepin-screenshot-5.0.0/src/widgets/savebutton.h Examining data/deepin-screenshot-5.0.0/src/widgets/savetips.cpp Examining data/deepin-screenshot-5.0.0/src/widgets/savetips.h Examining data/deepin-screenshot-5.0.0/src/widgets/shapeswidget.h Examining data/deepin-screenshot-5.0.0/src/widgets/subtoolbar.cpp Examining data/deepin-screenshot-5.0.0/src/widgets/subtoolbar.h Examining data/deepin-screenshot-5.0.0/src/widgets/textbutton.cpp Examining data/deepin-screenshot-5.0.0/src/widgets/textbutton.h Examining data/deepin-screenshot-5.0.0/src/widgets/textedit.cpp Examining data/deepin-screenshot-5.0.0/src/widgets/textedit.h Examining data/deepin-screenshot-5.0.0/src/widgets/toolbar.cpp Examining data/deepin-screenshot-5.0.0/src/widgets/toolbar.h Examining data/deepin-screenshot-5.0.0/src/widgets/toolbutton.h Examining data/deepin-screenshot-5.0.0/src/widgets/toptips.cpp Examining data/deepin-screenshot-5.0.0/src/widgets/toptips.h Examining data/deepin-screenshot-5.0.0/src/widgets/zoomIndicator.cpp Examining data/deepin-screenshot-5.0.0/src/widgets/zoomIndicator.h Examining data/deepin-screenshot-5.0.0/src/widgets/shapeswidget.cpp FINAL RESULTS: data/deepin-screenshot-5.0.0/src/main.cpp:41:52: [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. a.loadTranslator(QList<QLocale>() << QLocale::system()); data/deepin-screenshot-5.0.0/src/utils/baseutils.cpp:101: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(QFile::ReadOnly)) ANALYSIS SUMMARY: Hits = 2 Lines analyzed = 13108 in approximately 0.52 seconds (25104 lines/second) Physical Source Lines of Code (SLOC) = 10247 Hits@level = [0] 0 [1] 0 [2] 1 [3] 0 [4] 1 [5] 0 Hits@level+ = [0+] 2 [1+] 2 [2+] 2 [3+] 1 [4+] 1 [5+] 0 Hits/KSLOC@level+ = [0+] 0.195179 [1+] 0.195179 [2+] 0.195179 [3+] 0.0975895 [4+] 0.0975895 [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.