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/xarclock-1.0/ARClock.c Examining data/xarclock-1.0/Clock.h Examining data/xarclock-1.0/ClockP.h Examining data/xarclock-1.0/xarclock.c FINAL RESULTS: data/xarclock-1.0/ARClock.c:425:6: [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 (w->clock.prev_time_string+i, time_ptr+i); data/xarclock-1.0/ClockP.h:108: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 prev_time_string[ASCII_TIME_BUFLEN]; data/xarclock-1.0/ARClock.c:244:51: [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). min_width = XTextWidth(w->clock.font, str, strlen(str)) + data/xarclock-1.0/ARClock.c:420:12: [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). len = strlen (time_ptr); data/xarclock-1.0/ARClock.c:422:17: [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). prev_len = strlen (w->clock.prev_time_string); data/xarclock-1.0/ARClock.c:482:7: [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). strlen(arabic_roman_numbers[j]))/2; data/xarclock-1.0/ARClock.c:490:5: [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). strlen(arabic_roman_numbers[j])); ANALYSIS SUMMARY: Hits = 7 Lines analyzed = 1426 in approximately 0.06 seconds (25061 lines/second) Physical Source Lines of Code (SLOC) = 863 Hits@level = [0] 8 [1] 5 [2] 1 [3] 0 [4] 1 [5] 0 Hits@level+ = [0+] 15 [1+] 7 [2+] 2 [3+] 1 [4+] 1 [5+] 0 Hits/KSLOC@level+ = [0+] 17.3812 [1+] 8.11124 [2+] 2.3175 [3+] 1.15875 [4+] 1.15875 [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.