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/cutecom-0.30.3/controlpanel.cpp Examining data/cutecom-0.30.3/controlpanel.h Examining data/cutecom-0.30.3/datadisplay.cpp Examining data/cutecom-0.30.3/datadisplay.h Examining data/cutecom-0.30.3/devicecombo.cpp Examining data/cutecom-0.30.3/devicecombo.h Examining data/cutecom-0.30.3/main.cpp Examining data/cutecom-0.30.3/mainwindow.cpp Examining data/cutecom-0.30.3/mainwindow.h Examining data/cutecom-0.30.3/serialdevicelistmodel.cpp Examining data/cutecom-0.30.3/serialdevicelistmodel.h Examining data/cutecom-0.30.3/sessionmanager.cpp Examining data/cutecom-0.30.3/sessionmanager.h Examining data/cutecom-0.30.3/settings.cpp Examining data/cutecom-0.30.3/settings.h Examining data/cutecom-0.30.3/statusbar.cpp Examining data/cutecom-0.30.3/statusbar.h FINAL RESULTS: data/cutecom-0.30.3/controlpanel.cpp:127:38: [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 ControlPanel::toggleDevice(bool open) data/cutecom-0.30.3/controlpanel.cpp:129:9: [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 (open) { data/cutecom-0.30.3/controlpanel.h:78: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). void toggleDevice(bool open); data/cutecom-0.30.3/mainwindow.cpp:298: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 (m_device->open(session.openMode)) { data/cutecom-0.30.3/mainwindow.cpp:400: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 (!m_logFile.open(mode)) { data/cutecom-0.30.3/mainwindow.cpp:655: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 (!fd.open(QIODevice::ReadOnly)) { data/cutecom-0.30.3/mainwindow.cpp:690: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 (!fd.open(QIODevice::ReadOnly)) { ANALYSIS SUMMARY: Hits = 7 Lines analyzed = 3252 in approximately 0.23 seconds (14275 lines/second) Physical Source Lines of Code (SLOC) = 2177 Hits@level = [0] 0 [1] 0 [2] 7 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 7 [1+] 7 [2+] 7 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 3.21543 [1+] 3.21543 [2+] 3.21543 [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.