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-pgsql-2.4.0/odb/pgsql/transaction-impl.cxx
Examining data/libodb-pgsql-2.4.0/odb/pgsql/transaction.cxx
Examining data/libodb-pgsql-2.4.0/odb/pgsql/traits.cxx
Examining data/libodb-pgsql-2.4.0/odb/pgsql/tracer.cxx
Examining data/libodb-pgsql-2.4.0/odb/pgsql/statements-base.cxx
Examining data/libodb-pgsql-2.4.0/odb/pgsql/statement.cxx
Examining data/libodb-pgsql-2.4.0/odb/pgsql/simple-object-statements.cxx
Examining data/libodb-pgsql-2.4.0/odb/pgsql/query-const-expr.cxx
Examining data/libodb-pgsql-2.4.0/odb/pgsql/query-dynamic.cxx
Examining data/libodb-pgsql-2.4.0/odb/pgsql/query.cxx
Examining data/libodb-pgsql-2.4.0/odb/pgsql/prepared-query.cxx
Examining data/libodb-pgsql-2.4.0/odb/pgsql/exceptions.cxx
Examining data/libodb-pgsql-2.4.0/odb/pgsql/error.cxx
Examining data/libodb-pgsql-2.4.0/odb/pgsql/database.cxx
Examining data/libodb-pgsql-2.4.0/odb/pgsql/connection-factory.cxx
Examining data/libodb-pgsql-2.4.0/odb/pgsql/connection.cxx
Examining data/libodb-pgsql-2.4.0/odb/pgsql/auto-handle.cxx
Examining data/libodb-pgsql-2.4.0/odb/pgsql/details/options.cxx
Examining data/libodb-pgsql-2.4.0/odb/pgsql/details/endian-traits.cxx

FINAL RESULTS:

data/libodb-pgsql-2.4.0/odb/pgsql/connection.cxx:115:52:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          count = static_cast<unsigned long long> (atol (s));
data/libodb-pgsql-2.4.0/odb/pgsql/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-pgsql-2.4.0/odb/pgsql/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-pgsql-2.4.0/odb/pgsql/statement.cxx:465:14:  [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.buffer, v, *b.size);
data/libodb-pgsql-2.4.0/odb/pgsql/statement.cxx:470:13:  [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.buffer, v, 16);
data/libodb-pgsql-2.4.0/odb/pgsql/traits.cxx:31: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-pgsql-2.4.0/odb/pgsql/traits.cxx:50: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-pgsql-2.4.0/odb/pgsql/traits.cxx:68: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-pgsql-2.4.0/odb/pgsql/traits.cxx:95: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-pgsql-2.4.0/odb/pgsql/traits.cxx:118: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-pgsql-2.4.0/odb/pgsql/traits.cxx:141: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-pgsql-2.4.0/odb/pgsql/traits.cxx:44: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 = 12
Lines analyzed = 3652 in approximately 0.11 seconds (34591 lines/second)
Physical Source Lines of Code (SLOC) = 2832
Hits@level = [0]   0 [1]   1 [2]  11 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  12 [1+]  12 [2+]  11 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 4.23729 [1+] 4.23729 [2+] 3.88418 [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.