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/ocaml-libvirt-0.6.1.5/libvirt/libvirt_c_epilogue.c Examining data/ocaml-libvirt-0.6.1.5/libvirt/libvirt_c_oneoffs.c Examining data/ocaml-libvirt-0.6.1.5/libvirt/libvirt_c_prologue.c FINAL RESULTS: data/ocaml-libvirt-0.6.1.5/libvirt/libvirt_c_oneoffs.c:133: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 (c->result, String_val (v), len); data/ocaml-libvirt-0.6.1.5/libvirt/libvirt_c_oneoffs.c:395: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 (String_val (v), cred->result, cred->resultlen); data/ocaml-libvirt-0.6.1.5/libvirt/libvirt_c_oneoffs.c:716: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 (String_val (strv), cpumaps, maxinfo * maplen); data/ocaml-libvirt-0.6.1.5/libvirt/libvirt_c_oneoffs.c:843:12: [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. unsigned char uuid[VIR_UUID_BUFLEN]; data/ocaml-libvirt-0.6.1.5/libvirt/libvirt_c_oneoffs.c:901: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 (String_val (v), uuid, VIR_UUID_BUFLEN); data/ocaml-libvirt-0.6.1.5/libvirt/libvirt_c_oneoffs.c:1647: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 (String_val (rv), secval, size); data/ocaml-libvirt-0.6.1.5/libvirt/libvirt_c_oneoffs.c:611:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (params[i].field, name, VIR_DOMAIN_SCHED_FIELD_LENGTH); ANALYSIS SUMMARY: Hits = 7 Lines analyzed = 2310 in approximately 0.08 seconds (29197 lines/second) Physical Source Lines of Code (SLOC) = 1776 Hits@level = [0] 0 [1] 1 [2] 6 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 7 [1+] 7 [2+] 6 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 3.94144 [1+] 3.94144 [2+] 3.37838 [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.