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/rdiff-backup-2.0.5/src/_librsyncmodule.c Examining data/rdiff-backup-2.0.5/src/cmodule.c FINAL RESULTS: data/rdiff-backup-2.0.5/src/_librsyncmodule.c:35: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/rdiff-backup-2.0.5/src/_librsyncmodule.c:34: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/rdiff-backup-2.0.5/src/_librsyncmodule.c:87: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/rdiff-backup-2.0.5/src/_librsyncmodule.c:203: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/rdiff-backup-2.0.5/src/_librsyncmodule.c:256: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/rdiff-backup-2.0.5/src/_librsyncmodule.c:428: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 = 6 Lines analyzed = 774 in approximately 0.03 seconds (23395 lines/second) Physical Source Lines of Code (SLOC) = 575 Hits@level = [0] 0 [1] 0 [2] 5 [3] 0 [4] 1 [5] 0 Hits@level+ = [0+] 6 [1+] 6 [2+] 6 [3+] 1 [4+] 1 [5+] 0 Hits/KSLOC@level+ = [0+] 10.4348 [1+] 10.4348 [2+] 10.4348 [3+] 1.73913 [4+] 1.73913 [5+] 0 Dot directories skipped = 2 (--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.