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/slcfitsio-0.3.8+nosvn/src/cfitsio-module.c Examining data/slcfitsio-0.3.8+nosvn/src/version.h FINAL RESULTS: data/slcfitsio-0.3.8+nosvn/src/cfitsio-module.c:817:4: [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 card [FLEN_CARD + 1]; data/slcfitsio-0.3.8+nosvn/src/cfitsio-module.c:818:4: [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 value [FLEN_CARD + 1]; data/slcfitsio-0.3.8+nosvn/src/cfitsio-module.c:868:4: [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 comment_buf [FLEN_COMMENT]; data/slcfitsio-0.3.8+nosvn/src/cfitsio-module.c:992:4: [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 card[FLEN_CARD+1]; data/slcfitsio-0.3.8+nosvn/src/cfitsio-module.c:1275:4: [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 (buf, data, num_elements * sizeof_type); data/slcfitsio-0.3.8+nosvn/src/cfitsio-module.c:1293:4: [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 tscaln[32]; data/slcfitsio-0.3.8+nosvn/src/cfitsio-module.c:1294:4: [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 tzeron[32]; data/slcfitsio-0.3.8+nosvn/src/cfitsio-module.c:1304:4: [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 (tscaln, "TSCAL%d", col); data/slcfitsio-0.3.8+nosvn/src/cfitsio-module.c:1305:4: [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 (tzeron, "TZERO%d", col); data/slcfitsio-0.3.8+nosvn/src/cfitsio-module.c:2038:4: [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 errbuf [FLEN_ERRMSG]; data/slcfitsio-0.3.8+nosvn/src/cfitsio-module.c:2047:4: [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 errbuf [FLEN_ERRMSG]; ANALYSIS SUMMARY: Hits = 11 Lines analyzed = 2490 in approximately 0.06 seconds (40479 lines/second) Physical Source Lines of Code (SLOC) = 1997 Hits@level = [0] 1 [1] 0 [2] 11 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 12 [1+] 11 [2+] 11 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 6.00901 [1+] 5.50826 [2+] 5.50826 [3+] 0 [4+] 0 [5+] 0 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.