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/pcre-ocaml-7.4.6/src/pcre_stubs.c FINAL RESULTS: data/pcre-ocaml-7.4.6/src/pcre_stubs.c:24:11: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define snprintf _snprintf data/pcre-ocaml-7.4.6/src/pcre_stubs.c:24:20: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define snprintf _snprintf data/pcre-ocaml-7.4.6/src/pcre_stubs.c:576:7: [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 err_buf[100]; data/pcre-ocaml-7.4.6/src/pcre_stubs.c:670: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(subj, ocaml_subj, len); ANALYSIS SUMMARY: Hits = 4 Lines analyzed = 907 in approximately 0.04 seconds (23890 lines/second) Physical Source Lines of Code (SLOC) = 641 Hits@level = [0] 1 [1] 0 [2] 2 [3] 0 [4] 2 [5] 0 Hits@level+ = [0+] 5 [1+] 4 [2+] 4 [3+] 2 [4+] 2 [5+] 0 Hits/KSLOC@level+ = [0+] 7.80031 [1+] 6.24025 [2+] 6.24025 [3+] 3.12012 [4+] 3.12012 [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.