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/puzzle-jigsaw-1.0.2+git20201007.527c529+dfsg/BoxMessage.h Examining data/puzzle-jigsaw-1.0.2+git20201007.527c529+dfsg/FormAbout.cpp Examining data/puzzle-jigsaw-1.0.2+git20201007.527c529+dfsg/FormAbout.h Examining data/puzzle-jigsaw-1.0.2+git20201007.527c529+dfsg/WidgetPreview.h Examining data/puzzle-jigsaw-1.0.2+git20201007.527c529+dfsg/MainWindow.cpp Examining data/puzzle-jigsaw-1.0.2+git20201007.527c529+dfsg/MainWindow.h Examining data/puzzle-jigsaw-1.0.2+git20201007.527c529+dfsg/main.cpp Examining data/puzzle-jigsaw-1.0.2+git20201007.527c529+dfsg/BoxMessage.cpp Examining data/puzzle-jigsaw-1.0.2+git20201007.527c529+dfsg/config_puzzle.h Examining data/puzzle-jigsaw-1.0.2+git20201007.527c529+dfsg/WidgetPreview.cpp FINAL RESULTS: data/puzzle-jigsaw-1.0.2+git20201007.527c529+dfsg/MainWindow.cpp:617:47: [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. QRandomGenerator *gen = QRandomGenerator::system(); data/puzzle-jigsaw-1.0.2+git20201007.527c529+dfsg/main.cpp:31: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. QString locale = QLocale::system().name(); data/puzzle-jigsaw-1.0.2+git20201007.527c529+dfsg/MainWindow.cpp:652: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 | QIODevice::Text)){ data/puzzle-jigsaw-1.0.2+git20201007.527c529+dfsg/MainWindow.cpp:663: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). buffer.open(QIODevice::WriteOnly); data/puzzle-jigsaw-1.0.2+git20201007.527c529+dfsg/MainWindow.cpp:688: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)){ ANALYSIS SUMMARY: Hits = 5 Lines analyzed = 1159 in approximately 0.05 seconds (24208 lines/second) Physical Source Lines of Code (SLOC) = 875 Hits@level = [0] 0 [1] 0 [2] 3 [3] 0 [4] 2 [5] 0 Hits@level+ = [0+] 5 [1+] 5 [2+] 5 [3+] 2 [4+] 2 [5+] 0 Hits/KSLOC@level+ = [0+] 5.71429 [1+] 5.71429 [2+] 5.71429 [3+] 2.28571 [4+] 2.28571 [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.