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/dvorak7min-1.6.1+repack/lessons.h Examining data/dvorak7min-1.6.1+repack/lessons.c Examining data/dvorak7min-1.6.1+repack/dvorak7min.c FINAL RESULTS: data/dvorak7min-1.6.1+repack/dvorak7min.c:147:31: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. helpInterval = 10000 + (random() % 10000); data/dvorak7min-1.6.1+repack/dvorak7min.c:148:19: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. deviation = random() % 300; data/dvorak7min-1.6.1+repack/dvorak7min.c:159:22: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. helpInterval = random() % 1000; data/dvorak7min-1.6.1+repack/dvorak7min.c:160:20: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. helpLength = random() % 8; data/dvorak7min-1.6.1+repack/dvorak7min.c:162:16: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. deviation = random() % 300; data/dvorak7min-1.6.1+repack/dvorak7min.c:165:9: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if ((random() % 26) == 0) { data/dvorak7min-1.6.1+repack/dvorak7min.c:628:28: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. helpInterval = 10000 + (random() % 10000); data/dvorak7min-1.6.1+repack/dvorak7min.c:706: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, "HVnbfuk", long_opts, &opt_index); data/dvorak7min-1.6.1+repack/dvorak7min.c:195:11: [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, "r"); data/dvorak7min-1.6.1+repack/dvorak7min.c:547: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 buf[255]; data/dvorak7min-1.6.1+repack/dvorak7min.c:587:15: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). num = atoi (buf); data/dvorak7min-1.6.1+repack/dvorak7min.c:222:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc (file); data/dvorak7min-1.6.1+repack/dvorak7min.c:397:49: [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). this_page_size = i ? i - this_page_start : strlen(this_page_start); data/dvorak7min-1.6.1+repack/dvorak7min.c:508:55: [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). this_page_size = next ? next - this_page_start : strlen(this_page_start); ANALYSIS SUMMARY: Hits = 14 Lines analyzed = 1375 in approximately 0.11 seconds (12706 lines/second) Physical Source Lines of Code (SLOC) = 1131 Hits@level = [0] 3 [1] 3 [2] 3 [3] 8 [4] 0 [5] 0 Hits@level+ = [0+] 17 [1+] 14 [2+] 11 [3+] 8 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 15.0309 [1+] 12.3784 [2+] 9.72591 [3+] 7.07339 [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.