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/console-bridge-0.4.4+dfsg/test/console_TEST.cc Examining data/console-bridge-0.4.4+dfsg/include/console_bridge/console.h Examining data/console-bridge-0.4.4+dfsg/src/console.cpp FINAL RESULTS: data/console-bridge-0.4.4+dfsg/src/console.cpp:117:9: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(buf, sizeof(buf), m, __ap); data/console-bridge-0.4.4+dfsg/src/console.cpp:113:9: [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 buf[MAX_BUFFER_SIZE]; data/console-bridge-0.4.4+dfsg/src/console.cpp:161:13: [2] (misc) fopen: 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). file_ = fopen(filename, "a"); ANALYSIS SUMMARY: Hits = 3 Lines analyzed = 388 in approximately 0.06 seconds (6336 lines/second) Physical Source Lines of Code (SLOC) = 200 Hits@level = [0] 2 [1] 0 [2] 2 [3] 0 [4] 1 [5] 0 Hits@level+ = [0+] 5 [1+] 3 [2+] 3 [3+] 1 [4+] 1 [5+] 0 Hits/KSLOC@level+ = [0+] 25 [1+] 15 [2+] 15 [3+] 5 [4+] 5 [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.