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/kfind-20.04.3/src/kfindtreeview.cpp Examining data/kfind-20.04.3/src/kfinddlg.h Examining data/kfind-20.04.3/src/kftabdlg.cpp Examining data/kfind-20.04.3/src/main.cpp Examining data/kfind-20.04.3/src/kfindtreeview.h Examining data/kfind-20.04.3/src/kftabdlg.h Examining data/kfind-20.04.3/src/kquery.h Examining data/kfind-20.04.3/src/kquery.cpp Examining data/kfind-20.04.3/src/kfinddlg.cpp FINAL RESULTS: data/kfind-20.04.3/src/kfindtreeview.cpp:50:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char *const perm[4] = { data/kfind-20.04.3/src/kfindtreeview.cpp:340: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). QAction *open = KStandardAction::open(this, SLOT(slotExecuteSelected()), this); data/kfind-20.04.3/src/kfindtreeview.cpp:341:64: [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). m_actionCollection->addAction(QStringLiteral("file_open"), open); data/kfind-20.04.3/src/kfindtreeview.cpp:488: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)) { data/kfind-20.04.3/src/kquery.cpp:410:25: [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 (zipfile.open(QIODevice::ReadOnly)) { data/kfind-20.04.3/src/kquery.cpp:435:26: [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 (!binfile.open(QIODevice::ReadOnly)) { data/kfind-20.04.3/src/kquery.cpp:454: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). qf.open(QIODevice::ReadOnly); data/kfind-20.04.3/src/kquery.cpp:439:48: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const QByteArray bindata = binfile.read(128); ANALYSIS SUMMARY: Hits = 8 Lines analyzed = 3216 in approximately 0.59 seconds (5484 lines/second) Physical Source Lines of Code (SLOC) = 2406 Hits@level = [0] 0 [1] 1 [2] 7 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 8 [1+] 8 [2+] 7 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 3.32502 [1+] 3.32502 [2+] 2.90939 [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.