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/wmload-0.9.7/wmload.c FINAL RESULTS: data/wmload-0.9.7/wmload.c:148:7: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (system( Execute ) == -1) data/wmload-0.9.7/wmload.c:176:6: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (system( Execute ) == -1) data/wmload-0.9.7/wmload.c:210:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(&Execute[0], argv[i]); data/wmload-0.9.7/wmload.c:211:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(&Execute[0], " &"); data/wmload-0.9.7/wmload.c:396: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 tempc1[12],tempc2[12],tempc3[12]; data/wmload-0.9.7/wmload.c:416:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(tempc1, "S c #%.2x%.2x%.2x", (int)colr, (int)colg, (int)colb); data/wmload-0.9.7/wmload.c:423:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(tempc2, "R c #%.2x%.2x%.2x", (int)colr, (int)colg, (int)colb); data/wmload-0.9.7/wmload.c:430:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(tempc3, "Q c #%.2x%.2x%.2x", (int)colr, (int)colg, (int)colb); data/wmload-0.9.7/wmload.c:517: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 buffer[100];/*[4096+1];*/ data/wmload-0.9.7/wmload.c:522:8: [2] (misc) open: 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). fd = open("/proc/stat", O_RDONLY); data/wmload-0.9.7/wmload.c:523:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = read(fd, buffer, sizeof(buffer)-1); ANALYSIS SUMMARY: Hits = 11 Lines analyzed = 594 in approximately 0.04 seconds (16238 lines/second) Physical Source Lines of Code (SLOC) = 448 Hits@level = [0] 17 [1] 1 [2] 7 [3] 0 [4] 3 [5] 0 Hits@level+ = [0+] 28 [1+] 11 [2+] 10 [3+] 3 [4+] 3 [5+] 0 Hits/KSLOC@level+ = [0+] 62.5 [1+] 24.5536 [2+] 22.3214 [3+] 6.69643 [4+] 6.69643 [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.