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/libodb-mysql-2.4.0/odb/mysql/transaction-impl.cxx Examining data/libodb-mysql-2.4.0/odb/mysql/transaction.cxx Examining data/libodb-mysql-2.4.0/odb/mysql/traits.cxx Examining data/libodb-mysql-2.4.0/odb/mysql/tracer.cxx Examining data/libodb-mysql-2.4.0/odb/mysql/statements-base.cxx Examining data/libodb-mysql-2.4.0/odb/mysql/statement.cxx Examining data/libodb-mysql-2.4.0/odb/mysql/simple-object-statements.cxx Examining data/libodb-mysql-2.4.0/odb/mysql/query-const-expr.cxx Examining data/libodb-mysql-2.4.0/odb/mysql/query-dynamic.cxx Examining data/libodb-mysql-2.4.0/odb/mysql/query.cxx Examining data/libodb-mysql-2.4.0/odb/mysql/prepared-query.cxx Examining data/libodb-mysql-2.4.0/odb/mysql/exceptions.cxx Examining data/libodb-mysql-2.4.0/odb/mysql/error.cxx Examining data/libodb-mysql-2.4.0/odb/mysql/enum.cxx Examining data/libodb-mysql-2.4.0/odb/mysql/database.cxx Examining data/libodb-mysql-2.4.0/odb/mysql/connection-factory.cxx Examining data/libodb-mysql-2.4.0/odb/mysql/connection.cxx Examining data/libodb-mysql-2.4.0/odb/mysql/details/options.cxx FINAL RESULTS: data/libodb-mysql-2.4.0/odb/mysql/details/options.cxx:373:17: [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 c (line[p]); data/libodb-mysql-2.4.0/odb/mysql/details/options.cxx:384:15: [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 cf (s2[0]), cl (s2[n - 1]); data/libodb-mysql-2.4.0/odb/mysql/traits.cxx:32: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 (b.data (), v.c_str (), n); data/libodb-mysql-2.4.0/odb/mysql/traits.cxx:52: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 (b.data (), v, n); data/libodb-mysql-2.4.0/odb/mysql/traits.cxx:70:11: [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 (v, b.data (), n); data/libodb-mysql-2.4.0/odb/mysql/traits.cxx:97: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 (b.data (), v, n); data/libodb-mysql-2.4.0/odb/mysql/traits.cxx:120: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 (b.data (), &v.front (), n); data/libodb-mysql-2.4.0/odb/mysql/traits.cxx:143: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 (b.data (), &v.front (), n); data/libodb-mysql-2.4.0/odb/mysql/statement.cxx:64:13: [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). n = strlen (text_); data/libodb-mysql-2.4.0/odb/mysql/traits.cxx:46:11: [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). n = strlen (v); ANALYSIS SUMMARY: Hits = 10 Lines analyzed = 3652 in approximately 0.14 seconds (26512 lines/second) Physical Source Lines of Code (SLOC) = 2765 Hits@level = [0] 0 [1] 2 [2] 8 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 10 [1+] 10 [2+] 8 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 3.61664 [1+] 3.61664 [2+] 2.89331 [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.