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/ocurl-0.9.1/curl-helper.c FINAL RESULTS: data/ocurl-0.9.1/curl-helper.c:547: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(p,String_val(v),caml_string_length(v)+1); // caml strings have terminating zero data/ocurl-0.9.1/curl-helper.c:554: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(&Byte(v,0),p,size); data/ocurl-0.9.1/curl-helper.c:834: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, String_val(result), length); data/ocurl-0.9.1/curl-helper.c:1080:91: [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). Field(v_match, 0) = ml_copy_string(knownkey->key, knownkey->len ? knownkey->len : strlen(knownkey->key)); data/ocurl-0.9.1/curl-helper.c:1090:77: [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). v_found = ml_copy_string(foundkey->key, foundkey->len ? foundkey->len : strlen(foundkey->key)); ANALYSIS SUMMARY: Hits = 5 Lines analyzed = 4547 in approximately 0.31 seconds (14799 lines/second) Physical Source Lines of Code (SLOC) = 3774 Hits@level = [0] 2 [1] 2 [2] 3 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 7 [1+] 5 [2+] 3 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 1.8548 [1+] 1.32485 [2+] 0.794913 [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.