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/bbswitch-0.8/bbswitch.c FINAL RESULTS: data/bbswitch-0.8/bbswitch.c:68: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 acpi_optimus_dsm_muid[16] = { data/bbswitch-0.8/bbswitch.c:73: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 acpi_nvidia_dsm_muid[16] = { data/bbswitch-0.8/bbswitch.c:110:52: [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 int acpi_call_dsm(acpi_handle handle, const char muid[16], int revid, data/bbswitch-0.8/bbswitch.c:111:15: [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. int func, char args[4], uint32_t *result) { data/bbswitch-0.8/bbswitch.c:143: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 muid_str[5 * 16]; data/bbswitch-0.8/bbswitch.c:144: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 args_str[5 * 4]; data/bbswitch-0.8/bbswitch.c:177:31: [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 int has_dsm_func(const char muid[16], int revid, int sfnc) { data/bbswitch-0.8/bbswitch.c:316: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 cmd[8]; ANALYSIS SUMMARY: Hits = 8 Lines analyzed = 525 in approximately 0.02 seconds (24628 lines/second) Physical Source Lines of Code (SLOC) = 369 Hits@level = [0] 1 [1] 0 [2] 8 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 9 [1+] 8 [2+] 8 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 24.3902 [1+] 21.6802 [2+] 21.6802 [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.