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/swisswatch-0.6/Hand.h Examining data/swisswatch-0.6/HandOrMark.h Examining data/swisswatch-0.6/HandP.h Examining data/swisswatch-0.6/Mark.c Examining data/swisswatch-0.6/Mark.h Examining data/swisswatch-0.6/MarkP.h Examining data/swisswatch-0.6/SwissWatcP.h Examining data/swisswatch-0.6/SwissWatch.h Examining data/swisswatch-0.6/TableConvert.c Examining data/swisswatch-0.6/TableConvert.h Examining data/swisswatch-0.6/HandOrMark.c Examining data/swisswatch-0.6/HandOrMarP.h Examining data/swisswatch-0.6/Hand.c Examining data/swisswatch-0.6/SwissWatch.c Examining data/swisswatch-0.6/swisswatch.c FINAL RESULTS: data/swisswatch-0.6/SwissWatch.c:59:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. extern int sprintf(); data/swisswatch-0.6/SwissWatch.c:173: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 child_name[12]; data/swisswatch-0.6/SwissWatch.c:178: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(child_name, "child_%d", k); data/swisswatch-0.6/SwissWatch.c:240: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 lower_name[1000]; data/swisswatch-0.6/TableConvert.c:52:7: [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[1000]; data/swisswatch-0.6/TableConvert.c:75: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[1000]; ANALYSIS SUMMARY: Hits = 6 Lines analyzed = 1774 in approximately 0.05 seconds (37866 lines/second) Physical Source Lines of Code (SLOC) = 1512 Hits@level = [0] 3 [1] 0 [2] 5 [3] 0 [4] 1 [5] 0 Hits@level+ = [0+] 9 [1+] 6 [2+] 6 [3+] 1 [4+] 1 [5+] 0 Hits/KSLOC@level+ = [0+] 5.95238 [1+] 3.96825 [2+] 3.96825 [3+] 0.661376 [4+] 0.661376 [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.