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/duplicity-0.8.15/duplicity/_librsyncmodule.c FINAL RESULTS: data/duplicity-0.8.15/duplicity/_librsyncmodule.c:38:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(error_string, "librsync error %d while in %s", result, location); data/duplicity-0.8.15/duplicity/_librsyncmodule.c:37: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 error_string[200]; data/duplicity-0.8.15/duplicity/_librsyncmodule.c:88: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 *inbuf, outbuf[RS_JOB_BLOCKSIZE]; data/duplicity-0.8.15/duplicity/_librsyncmodule.c:174: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 *sig_string, outbuf[RS_JOB_BLOCKSIZE]; data/duplicity-0.8.15/duplicity/_librsyncmodule.c:233: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 *inbuf, outbuf[RS_JOB_BLOCKSIZE]; data/duplicity-0.8.15/duplicity/_librsyncmodule.c:333:5: [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 buf[256]; data/duplicity-0.8.15/duplicity/_librsyncmodule.c:370: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 *inbuf, outbuf[RS_JOB_BLOCKSIZE]; ANALYSIS SUMMARY: Hits = 7 Lines analyzed = 495 in approximately 0.06 seconds (8598 lines/second) Physical Source Lines of Code (SLOC) = 383 Hits@level = [0] 0 [1] 0 [2] 6 [3] 0 [4] 1 [5] 0 Hits@level+ = [0+] 7 [1+] 7 [2+] 7 [3+] 1 [4+] 1 [5+] 0 Hits/KSLOC@level+ = [0+] 18.2768 [1+] 18.2768 [2+] 18.2768 [3+] 2.61097 [4+] 2.61097 [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.