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/multiboot-0.6.96+20101113/doc/kernel.c Examining data/multiboot-0.6.96+20101113/doc/multiboot.h Examining data/multiboot-0.6.96+20101113/util/mbchk.c FINAL RESULTS: data/multiboot-0.6.96+20101113/doc/kernel.c:48:6: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. void printf (const char *format, ...); data/multiboot-0.6.96+20101113/doc/kernel.c:326:1: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf (const char *format, ...) data/multiboot-0.6.96+20101113/util/mbchk.c:176:11: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long (argc, argv, optstring, longopts, 0); data/multiboot-0.6.96+20101113/doc/kernel.c:330: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 buf[20]; data/multiboot-0.6.96+20101113/util/mbchk.c:59: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 buf[8192]; data/multiboot-0.6.96+20101113/util/mbchk.c:208:9: [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). fp = fopen (argv[optind], "r"); ANALYSIS SUMMARY: Hits = 6 Lines analyzed = 889 in approximately 0.05 seconds (19128 lines/second) Physical Source Lines of Code (SLOC) = 609 Hits@level = [0] 31 [1] 0 [2] 3 [3] 1 [4] 2 [5] 0 Hits@level+ = [0+] 37 [1+] 6 [2+] 6 [3+] 3 [4+] 2 [5+] 0 Hits/KSLOC@level+ = [0+] 60.7553 [1+] 9.85222 [2+] 9.85222 [3+] 4.92611 [4+] 3.28407 [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.