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-bitstring-3.1.1/src/bitstring_fastpath.c Examining data/ocaml-bitstring-3.1.1/src/byteswap.h FINAL RESULTS: data/ocaml-bitstring-3.1.1/src/bitstring_fastpath.c:48:8: [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. static char prefix_mask_lookup[8] = { data/ocaml-bitstring-3.1.1/src/bitstring_fastpath.c:76:20: [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 * ptr1 = &((char *)String_val(b1))[bo1]; data/ocaml-bitstring-3.1.1/src/bitstring_fastpath.c:77:20: [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 * ptr2 = &((char *)String_val(b2))[bo2]; ANALYSIS SUMMARY: Hits = 3 Lines analyzed = 258 in approximately 0.03 seconds (8478 lines/second) Physical Source Lines of Code (SLOC) = 126 Hits@level = [0] 0 [1] 0 [2] 3 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 3 [1+] 3 [2+] 3 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 23.8095 [1+] 23.8095 [2+] 23.8095 [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.