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/ktuberling-20.08.3/action.cpp Examining data/ktuberling-20.08.3/main_mobile.cpp Examining data/ktuberling-20.08.3/filefactory.h Examining data/ktuberling-20.08.3/action.h Examining data/ktuberling-20.08.3/todraw.h Examining data/ktuberling-20.08.3/soundfactory.h Examining data/ktuberling-20.08.3/filefactory.cpp Examining data/ktuberling-20.08.3/playground.h Examining data/ktuberling-20.08.3/main.cpp Examining data/ktuberling-20.08.3/todraw.cpp Examining data/ktuberling-20.08.3/toplevel.h Examining data/ktuberling-20.08.3/playground.cpp Examining data/ktuberling-20.08.3/soundfactory.cpp Examining data/ktuberling-20.08.3/toplevel.cpp Examining data/ktuberling-20.08.3/playgrounddelegate.h Examining data/ktuberling-20.08.3/playgrounddelegate.cpp FINAL RESULTS: data/ktuberling-20.08.3/main_mobile.cpp:131:12: [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. QLocale::system().name(); // needed to workaround QTBUG-41385 data/ktuberling-20.08.3/main.cpp:63: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). toplevel->open(QUrl::fromUserInput(parser.positionalArguments().at(0), QDir::currentPath())); data/ktuberling-20.08.3/playground.cpp:78: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 (!f.open( QIODevice::WriteOnly ) ) data/ktuberling-20.08.3/playground.cpp:335: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 (layoutFile.open(QIODevice::ReadOnly)) data/ktuberling-20.08.3/playground.cpp:369: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 (!layoutFile.open(QIODevice::ReadOnly)) return false; data/ktuberling-20.08.3/playground.cpp:447: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 (!f.open(QIODevice::ReadOnly)) data/ktuberling-20.08.3/playground.cpp:468: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 (!f.open(QIODevice::ReadOnly | QIODevice::Text)) data/ktuberling-20.08.3/soundfactory.cpp:73: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/ktuberling-20.08.3/soundfactory.cpp:96: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 (!file.open(QIODevice::ReadOnly)) return false; data/ktuberling-20.08.3/toplevel.cpp:336:3: [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(url); data/ktuberling-20.08.3/toplevel.cpp:339: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). void TopLevel::open(const QUrl &url) data/ktuberling-20.08.3/toplevel.cpp:351: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). tmpFile.open(); data/ktuberling-20.08.3/toplevel.cpp:392: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 (tempFile.open()) name = tempFile.fileName(); data/ktuberling-20.08.3/toplevel.cpp:455: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/ktuberling-20.08.3/toplevel.h:32: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). void open(const QUrl &url); ANALYSIS SUMMARY: Hits = 15 Lines analyzed = 2136 in approximately 3.02 seconds (706 lines/second) Physical Source Lines of Code (SLOC) = 1524 Hits@level = [0] 0 [1] 0 [2] 14 [3] 0 [4] 1 [5] 0 Hits@level+ = [0+] 15 [1+] 15 [2+] 15 [3+] 1 [4+] 1 [5+] 0 Hits/KSLOC@level+ = [0+] 9.84252 [1+] 9.84252 [2+] 9.84252 [3+] 0.656168 [4+] 0.656168 [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.