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-raindrops-0.19.0/ext/raindrops/tcp_info.c Examining data/ruby-raindrops-0.19.0/ext/raindrops/my_fileno.h Examining data/ruby-raindrops-0.19.0/ext/raindrops/raindrops_atomic.h Examining data/ruby-raindrops-0.19.0/ext/raindrops/linux_inet_diag.c Examining data/ruby-raindrops-0.19.0/ext/raindrops/raindrops.c FINAL RESULTS: data/ruby-raindrops-0.19.0/ext/raindrops/linux_inet_diag.c:197:24: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__((format(printf,1,2))); data/ruby-raindrops-0.19.0/ext/raindrops/linux_inet_diag.c:204:2: [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, fmt, ap); data/ruby-raindrops-0.19.0/ext/raindrops/linux_inet_diag.c:287:4: [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(key, old_key, n + 1); data/ruby-raindrops-0.19.0/ext/raindrops/linux_inet_diag.c:292: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(key, old_key, old_len); data/ruby-raindrops-0.19.0/ext/raindrops/linux_inet_diag.c:556: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(&cond->addr, &inet->in6.sin6_addr, data/ruby-raindrops-0.19.0/ext/raindrops/raindrops.c:228:2: [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->drops, src->drops, raindrop_size * src->size); data/ruby-raindrops-0.19.0/ext/raindrops/linux_inet_diag.c:244:23: [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). hostlen = (socklen_t)strlen(host); data/ruby-raindrops-0.19.0/ext/raindrops/linux_inet_diag.c:290:20: [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). size_t old_len = strlen(old_key) + 1; ANALYSIS SUMMARY: Hits = 8 Lines analyzed = 1465 in approximately 0.05 seconds (27429 lines/second) Physical Source Lines of Code (SLOC) = 1004 Hits@level = [0] 4 [1] 2 [2] 4 [3] 0 [4] 2 [5] 0 Hits@level+ = [0+] 12 [1+] 8 [2+] 6 [3+] 2 [4+] 2 [5+] 0 Hits/KSLOC@level+ = [0+] 11.9522 [1+] 7.96813 [2+] 5.9761 [3+] 1.99203 [4+] 1.99203 [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.