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/kcollectd-0.11.99.0/kcollectd/graph.cc Examining data/kcollectd-0.11.99.0/kcollectd/graph.h Examining data/kcollectd-0.11.99.0/kcollectd/gui.cc Examining data/kcollectd-0.11.99.0/kcollectd/gui.h Examining data/kcollectd-0.11.99.0/kcollectd/kcollectd.cc Examining data/kcollectd-0.11.99.0/kcollectd/misc.cc Examining data/kcollectd-0.11.99.0/kcollectd/misc.h Examining data/kcollectd-0.11.99.0/kcollectd/rrd_interface.cc Examining data/kcollectd-0.11.99.0/kcollectd/rrd_interface.h Examining data/kcollectd-0.11.99.0/kcollectd/timeaxis.cc Examining data/kcollectd-0.11.99.0/kcollectd/timeaxis.h FINAL RESULTS: data/kcollectd-0.11.99.0/kcollectd/gui.cc:448: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 (in.open(QIODevice::ReadOnly)) { data/kcollectd-0.11.99.0/kcollectd/gui.cc:480: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 (out.open(QIODevice::WriteOnly)) { data/kcollectd-0.11.99.0/kcollectd/gui.cc:521:5: [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. char hostname[100]; data/kcollectd-0.11.99.0/kcollectd/misc.cc:79:3: [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. char buffer[50]; data/kcollectd-0.11.99.0/kcollectd/rrd_interface.cc:45:3: [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. char c_file[filename.length() + 1]; ANALYSIS SUMMARY: Hits = 5 Lines analyzed = 2663 in approximately 0.10 seconds (27341 lines/second) Physical Source Lines of Code (SLOC) = 1850 Hits@level = [0] 0 [1] 0 [2] 5 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 5 [1+] 5 [2+] 5 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 2.7027 [1+] 2.7027 [2+] 2.7027 [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.