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-curb-0.9.10/ext/curb_errors.c Examining data/ruby-curb-0.9.10/ext/curb_multi.h Examining data/ruby-curb-0.9.10/ext/curb_errors.h Examining data/ruby-curb-0.9.10/ext/curb_easy.h Examining data/ruby-curb-0.9.10/ext/curb_upload.c Examining data/ruby-curb-0.9.10/ext/curb.c Examining data/ruby-curb-0.9.10/ext/curb_postfield.c Examining data/ruby-curb-0.9.10/ext/curb_macros.h Examining data/ruby-curb-0.9.10/ext/curb_postfield.h Examining data/ruby-curb-0.9.10/ext/curb_multi.c Examining data/ruby-curb-0.9.10/ext/curb.h Examining data/ruby-curb-0.9.10/ext/curb_upload.h Examining data/ruby-curb-0.9.10/ext/curb_easy.c FINAL RESULTS: data/ruby-curb-0.9.10/ext/curb_easy.c:63: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(ptr, RSTRING_PTR(str), RSTRING_LEN(str)); data/ruby-curb-0.9.10/ext/curb_easy.c:84:9: [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, str_ptr+rbcu->offset, remaining); data/ruby-curb-0.9.10/ext/curb_easy.c:91: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(ptr, str_ptr+rbcu->offset, read_bytes); data/ruby-curb-0.9.10/ext/curb_easy.c:95: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(ptr, str_ptr+rbcu->offset, --read_bytes); data/ruby-curb-0.9.10/ext/curb_easy.c:388: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(newrbce, rbce, sizeof(ruby_curl_easy)); data/ruby-curb-0.9.10/ext/curb_easy.c:3631: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[64]; data/ruby-curb-0.9.10/ext/curb_easy.c:3639: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,"#<Curl::Easy ", 13); data/ruby-curb-0.9.10/ext/curb_easy.c:3640: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+13,StringValueCStr(url), (len - 13)); data/ruby-curb-0.9.10/ext/curb_easy.c:3702:10: [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). rlen = strlen(result); ANALYSIS SUMMARY: Hits = 9 Lines analyzed = 7540 in approximately 0.19 seconds (40365 lines/second) Physical Source Lines of Code (SLOC) = 4645 Hits@level = [0] 0 [1] 1 [2] 8 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 9 [1+] 9 [2+] 8 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 1.93757 [1+] 1.93757 [2+] 1.72228 [3+] 0 [4+] 0 [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.