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/yorick-ynfft-1.0.3/m3d_nfft.c Examining data/yorick-ynfft-1.0.3/yor_nfft.c FINAL RESULTS: data/yorick-ynfft-1.0.3/yor_nfft.c:859:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(errbuf, "%d%s dimension is smaller than cut-off (= %d)", data/yorick-ynfft-1.0.3/yor_nfft.c:864:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(errbuf, "%d%s dimension is odd (must be even)", data/yorick-ynfft-1.0.3/yor_nfft.c:883:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(errbuf, data/yorick-ynfft-1.0.3/yor_nfft.c:922:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(errbuf, "oversampling factor too small for %d%s " data/yorick-ynfft-1.0.3/yor_nfft.c:394:5: [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(op->plan.f, src, nsrc*(2*sizeof(double))); data/yorick-ynfft-1.0.3/yor_nfft.c:405:5: [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(dst, op->plan.f_hat, ndst*(2*sizeof(double))); data/yorick-ynfft-1.0.3/yor_nfft.c:416:5: [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(op->plan.f_hat, src, nsrc*(2*sizeof(double))); data/yorick-ynfft-1.0.3/yor_nfft.c:423:5: [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(dst, op->plan.f, ndst*(2*sizeof(double))); data/yorick-ynfft-1.0.3/yor_nfft.c:662: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 errbuf[256]; data/yorick-ynfft-1.0.3/yor_nfft.c:692:5: [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(errbuf, "too many arguments (max. rank = %d)", MAX_RANK); data/yorick-ynfft-1.0.3/yor_nfft.c:956:5: [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(errbuf, "too many dimensions (max. rank = %d)", MAX_RANK); ANALYSIS SUMMARY: Hits = 11 Lines analyzed = 1042 in approximately 0.04 seconds (24560 lines/second) Physical Source Lines of Code (SLOC) = 814 Hits@level = [0] 0 [1] 0 [2] 7 [3] 0 [4] 4 [5] 0 Hits@level+ = [0+] 11 [1+] 11 [2+] 11 [3+] 4 [4+] 4 [5+] 0 Hits/KSLOC@level+ = [0+] 13.5135 [1+] 13.5135 [2+] 13.5135 [3+] 4.914 [4+] 4.914 [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.