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/preprepare-0.9/pre_prepare.c FINAL RESULTS: data/preprepare-0.9/pre_prepare.c:72:3: [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. snprintf(select, len, stmpl, relation_name); data/preprepare-0.9/pre_prepare.c:96:3: [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. snprintf(select, len, stmpl, relation_name); data/preprepare-0.9/pre_prepare.c:69:19: [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). int len = (strlen(stmpl) - 2) + strlen(relation_name) + 1; data/preprepare-0.9/pre_prepare.c:69:40: [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). int len = (strlen(stmpl) - 2) + strlen(relation_name) + 1; data/preprepare-0.9/pre_prepare.c:93:19: [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). int len = (strlen(stmpl) - 2) + strlen(relation_name) + 1; data/preprepare-0.9/pre_prepare.c:93:40: [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). int len = (strlen(stmpl) - 2) + strlen(relation_name) + 1; ANALYSIS SUMMARY: Hits = 6 Lines analyzed = 339 in approximately 0.03 seconds (12187 lines/second) Physical Source Lines of Code (SLOC) = 217 Hits@level = [0] 0 [1] 4 [2] 0 [3] 0 [4] 2 [5] 0 Hits@level+ = [0+] 6 [1+] 6 [2+] 2 [3+] 2 [4+] 2 [5+] 0 Hits/KSLOC@level+ = [0+] 27.6498 [1+] 27.6498 [2+] 9.21659 [3+] 9.21659 [4+] 9.21659 [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.