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/ruby-fusefs-0.7.0/ext/fusefs_fuse.h Examining data/ruby-fusefs-0.7.0/ext/fusefs_fuse.c Examining data/ruby-fusefs-0.7.0/ext/fusefs_lib.c FINAL RESULTS: data/ruby-fusefs-0.7.0/ext/fusefs_fuse.c:40:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "/sbin/umount %s", mounted_at); data/ruby-fusefs-0.7.0/ext/fusefs_fuse.c:41:5: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. system(buf); data/ruby-fusefs-0.7.0/ext/fusefs_lib.c:120:3: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr,msg,ap); data/ruby-fusefs-0.7.0/ext/fusefs_lib.c:1394:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(opts->argv[i], "-o%s", cur); data/ruby-fusefs-0.7.0/ext/fusefs_fuse.c:36: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 buf[128]; data/ruby-fusefs-0.7.0/ext/fusefs_lib.c:584: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 open_opts[4], *optr; data/ruby-fusefs-0.7.0/ext/fusefs_lib.c:668: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(newfile->value,value,newfile->size); data/ruby-fusefs-0.7.0/ext/fusefs_lib.c:724:7: [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(newfile->value,value,newfile->size); data/ruby-fusefs-0.7.0/ext/fusefs_lib.c:1215:3: [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(ptr->value + offset, buf, size); data/ruby-fusefs-0.7.0/ext/fusefs_lib.c:1261: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(buf, RSTRING_PTR(ret), RSTRING_LEN(ret)); data/ruby-fusefs-0.7.0/ext/fusefs_lib.c:1269: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(buf, ptr->value + offset, size); data/ruby-fusefs-0.7.0/ext/fusefs_lib.c:177:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(ptr); ANALYSIS SUMMARY: Hits = 12 Lines analyzed = 1687 in approximately 0.06 seconds (29064 lines/second) Physical Source Lines of Code (SLOC) = 1136 Hits@level = [0] 0 [1] 1 [2] 7 [3] 0 [4] 4 [5] 0 Hits@level+ = [0+] 12 [1+] 12 [2+] 11 [3+] 4 [4+] 4 [5+] 0 Hits/KSLOC@level+ = [0+] 10.5634 [1+] 10.5634 [2+] 9.6831 [3+] 3.52113 [4+] 3.52113 [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.