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/wob-0.6/wob.c Examining data/wob-0.6/test.c FINAL RESULTS: data/wob-0.6/wob.c:428:14: [3] (buffer) getopt: 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. while ((c = getopt(argc, argv, "t:m:W:H:o:b:p:a:M:vh")) != -1) { data/wob-0.6/wob.c:119:2: [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 shm_name[3 * sizeof(unsigned int) + sizeof("wob-")] = {0}; data/wob-0.6/wob.c:121:3: [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(shm_name, "wob-%u", i); data/wob-0.6/wob.c:378:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(destination, source, MIN(destination - source, end - destination) * sizeof(argb_color)); data/wob-0.6/wob.c:557: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 input_buffer[INPUT_BUFFER_LENGTH] = {0}; ANALYSIS SUMMARY: Hits = 5 Lines analyzed = 667 in approximately 0.03 seconds (25551 lines/second) Physical Source Lines of Code (SLOC) = 575 Hits@level = [0] 32 [1] 0 [2] 4 [3] 1 [4] 0 [5] 0 Hits@level+ = [0+] 37 [1+] 5 [2+] 5 [3+] 1 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 64.3478 [1+] 8.69565 [2+] 8.69565 [3+] 1.73913 [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.