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/vim-command-t-5.0.2-5-g7147ba9/ruby/command-t/ext/command-t/ext.c Examining data/vim-command-t-5.0.2-5-g7147ba9/ruby/command-t/ext/command-t/ext.h Examining data/vim-command-t-5.0.2-5-g7147ba9/ruby/command-t/ext/command-t/heap.c Examining data/vim-command-t-5.0.2-5-g7147ba9/ruby/command-t/ext/command-t/heap.h Examining data/vim-command-t-5.0.2-5-g7147ba9/ruby/command-t/ext/command-t/match.c Examining data/vim-command-t-5.0.2-5-g7147ba9/ruby/command-t/ext/command-t/match.h Examining data/vim-command-t-5.0.2-5-g7147ba9/ruby/command-t/ext/command-t/matcher.c Examining data/vim-command-t-5.0.2-5-g7147ba9/ruby/command-t/ext/command-t/matcher.h Examining data/vim-command-t-5.0.2-5-g7147ba9/ruby/command-t/ext/command-t/ruby_compat.h Examining data/vim-command-t-5.0.2-5-g7147ba9/ruby/command-t/ext/command-t/watchman.c Examining data/vim-command-t-5.0.2-5-g7147ba9/ruby/command-t/ext/command-t/watchman.h FINAL RESULTS: data/vim-command-t-5.0.2-5-g7147ba9/ruby/command-t/ext/command-t/ext.h:18:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stdout, __VA_ARGS__); \ data/vim-command-t-5.0.2-5-g7147ba9/ruby/command-t/ext/command-t/match.c:221:17: [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 formatted[8]; data/vim-command-t-5.0.2-5-g7147ba9/ruby/command-t/ext/command-t/watchman.c:70: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(w->data + w->len, data, len); data/vim-command-t-5.0.2-5-g7147ba9/ruby/command-t/ext/command-t/watchman.c:103: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 encoded[1 + sizeof(int64_t)]; data/vim-command-t-5.0.2-5-g7147ba9/ruby/command-t/ext/command-t/watchman.c:137: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 encoded[1 + sizeof(double)]; ANALYSIS SUMMARY: Hits = 5 Lines analyzed = 1635 in approximately 0.09 seconds (19155 lines/second) Physical Source Lines of Code (SLOC) = 1177 Hits@level = [0] 13 [1] 0 [2] 4 [3] 0 [4] 1 [5] 0 Hits@level+ = [0+] 18 [1+] 5 [2+] 5 [3+] 1 [4+] 1 [5+] 0 Hits/KSLOC@level+ = [0+] 15.2931 [1+] 4.24809 [2+] 4.24809 [3+] 0.849618 [4+] 0.849618 [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.