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/switcheroo-control-2.1/data/scripts/generate-hwdb.c Examining data/switcheroo-control-2.1/src/switcheroo-control-resources.h Examining data/switcheroo-control-2.1/src/switcheroo-control.c Examining data/switcheroo-control-2.1/src/info-cleanup.c Examining data/switcheroo-control-2.1/src/switcheroo-control-resources.c Examining data/switcheroo-control-2.1/src/info-cleanup.h FINAL RESULTS: data/switcheroo-control-2.1/data/scripts/generate-hwdb.c:45:60: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_print (" SWITCHEROO_CONTROL_PRODUCT_NAME=%s\n", name + strlen ("Intel(R) ")); data/switcheroo-control-2.1/src/switcheroo-control-resources.c:318:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). __pragma(section(".CRT$XCU",read)) \ data/switcheroo-control-2.1/src/switcheroo-control-resources.c:326:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). __pragma(section(".CRT$XCU",read)) \ data/switcheroo-control-2.1/src/switcheroo-control-resources.c:338:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). section(".CRT$XCU",read) data/switcheroo-control-2.1/src/switcheroo-control-resources.c:345:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). section(".CRT$XCU",read) ANALYSIS SUMMARY: Hits = 5 Lines analyzed = 1069 in approximately 0.07 seconds (15917 lines/second) Physical Source Lines of Code (SLOC) = 829 Hits@level = [0] 0 [1] 5 [2] 0 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 5 [1+] 5 [2+] 0 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 6.03136 [1+] 6.03136 [2+] 0 [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.