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/soci-3.2.3/backends/oracle/error.h
Examining data/soci-3.2.3/backends/oracle/blob.cpp
Examining data/soci-3.2.3/backends/oracle/statement.cpp
Examining data/soci-3.2.3/backends/oracle/vector-use-type.cpp
Examining data/soci-3.2.3/backends/oracle/standard-use-type.cpp
Examining data/soci-3.2.3/backends/oracle/session.cpp
Examining data/soci-3.2.3/backends/oracle/soci-oracle.h
Examining data/soci-3.2.3/backends/oracle/error.cpp
Examining data/soci-3.2.3/backends/oracle/factory.cpp
Examining data/soci-3.2.3/backends/oracle/row-id.cpp
Examining data/soci-3.2.3/backends/oracle/standard-into-type.cpp
Examining data/soci-3.2.3/backends/oracle/test/test-oracle.cpp
Examining data/soci-3.2.3/backends/oracle/vector-into-type.cpp
Examining data/soci-3.2.3/backends/odbc/soci-odbc.h
Examining data/soci-3.2.3/backends/odbc/blob.cpp
Examining data/soci-3.2.3/backends/odbc/statement.cpp
Examining data/soci-3.2.3/backends/odbc/vector-use-type.cpp
Examining data/soci-3.2.3/backends/odbc/standard-use-type.cpp
Examining data/soci-3.2.3/backends/odbc/session.cpp
Examining data/soci-3.2.3/backends/odbc/factory.cpp
Examining data/soci-3.2.3/backends/odbc/row-id.cpp
Examining data/soci-3.2.3/backends/odbc/standard-into-type.cpp
Examining data/soci-3.2.3/backends/odbc/test/test-odbc-postgresql.cpp
Examining data/soci-3.2.3/backends/odbc/test/test-odbc-mysql.cpp
Examining data/soci-3.2.3/backends/odbc/test/test-odbc-mssql.cpp
Examining data/soci-3.2.3/backends/odbc/test/test-odbc-db2.cpp
Examining data/soci-3.2.3/backends/odbc/test/test-odbc-access.cpp
Examining data/soci-3.2.3/backends/odbc/utility.h
Examining data/soci-3.2.3/backends/odbc/vector-into-type.cpp
Examining data/soci-3.2.3/backends/mysql/common.h
Examining data/soci-3.2.3/backends/mysql/blob.cpp
Examining data/soci-3.2.3/backends/mysql/statement.cpp
Examining data/soci-3.2.3/backends/mysql/vector-use-type.cpp
Examining data/soci-3.2.3/backends/mysql/standard-use-type.cpp
Examining data/soci-3.2.3/backends/mysql/session.cpp
Examining data/soci-3.2.3/backends/mysql/factory.cpp
Examining data/soci-3.2.3/backends/mysql/row-id.cpp
Examining data/soci-3.2.3/backends/mysql/standard-into-type.cpp
Examining data/soci-3.2.3/backends/mysql/test/test-mysql.cpp
Examining data/soci-3.2.3/backends/mysql/common.cpp
Examining data/soci-3.2.3/backends/mysql/soci-mysql.h
Examining data/soci-3.2.3/backends/mysql/vector-into-type.cpp
Examining data/soci-3.2.3/backends/db2/common.h
Examining data/soci-3.2.3/backends/db2/blob.cpp
Examining data/soci-3.2.3/backends/db2/statement.cpp
Examining data/soci-3.2.3/backends/db2/vector-use-type.cpp
Examining data/soci-3.2.3/backends/db2/standard-use-type.cpp
Examining data/soci-3.2.3/backends/db2/session.cpp
Examining data/soci-3.2.3/backends/db2/soci-db2.h
Examining data/soci-3.2.3/backends/db2/factory.cpp
Examining data/soci-3.2.3/backends/db2/row-id.cpp
Examining data/soci-3.2.3/backends/db2/standard-into-type.cpp
Examining data/soci-3.2.3/backends/db2/test/test-db2.cpp
Examining data/soci-3.2.3/backends/db2/vector-into-type.cpp
Examining data/soci-3.2.3/backends/firebird/common.h
Examining data/soci-3.2.3/backends/firebird/error-firebird.h
Examining data/soci-3.2.3/backends/firebird/blob.cpp
Examining data/soci-3.2.3/backends/firebird/error-firebird.cpp
Examining data/soci-3.2.3/backends/firebird/statement.cpp
Examining data/soci-3.2.3/backends/firebird/vector-use-type.cpp
Examining data/soci-3.2.3/backends/firebird/standard-use-type.cpp
Examining data/soci-3.2.3/backends/firebird/session.cpp
Examining data/soci-3.2.3/backends/firebird/factory.cpp
Examining data/soci-3.2.3/backends/firebird/row-id.cpp
Examining data/soci-3.2.3/backends/firebird/standard-into-type.cpp
Examining data/soci-3.2.3/backends/firebird/test/test-firebird.cpp
Examining data/soci-3.2.3/backends/firebird/common.cpp
Examining data/soci-3.2.3/backends/firebird/vector-into-type.cpp
Examining data/soci-3.2.3/backends/firebird/soci-firebird.h
Examining data/soci-3.2.3/backends/sqlite3/common.h
Examining data/soci-3.2.3/backends/sqlite3/soci-sqlite3.h
Examining data/soci-3.2.3/backends/sqlite3/blob.cpp
Examining data/soci-3.2.3/backends/sqlite3/statement.cpp
Examining data/soci-3.2.3/backends/sqlite3/vector-use-type.cpp
Examining data/soci-3.2.3/backends/sqlite3/standard-use-type.cpp
Examining data/soci-3.2.3/backends/sqlite3/session.cpp
Examining data/soci-3.2.3/backends/sqlite3/error.cpp
Examining data/soci-3.2.3/backends/sqlite3/factory.cpp
Examining data/soci-3.2.3/backends/sqlite3/row-id.cpp
Examining data/soci-3.2.3/backends/sqlite3/standard-into-type.cpp
Examining data/soci-3.2.3/backends/sqlite3/test/test-sqlite3.cpp
Examining data/soci-3.2.3/backends/sqlite3/common.cpp
Examining data/soci-3.2.3/backends/sqlite3/vector-into-type.cpp
Examining data/soci-3.2.3/backends/empty/blob.cpp
Examining data/soci-3.2.3/backends/empty/statement.cpp
Examining data/soci-3.2.3/backends/empty/vector-use-type.cpp
Examining data/soci-3.2.3/backends/empty/standard-use-type.cpp
Examining data/soci-3.2.3/backends/empty/session.cpp
Examining data/soci-3.2.3/backends/empty/factory.cpp
Examining data/soci-3.2.3/backends/empty/row-id.cpp
Examining data/soci-3.2.3/backends/empty/standard-into-type.cpp
Examining data/soci-3.2.3/backends/empty/test/test-empty.cpp
Examining data/soci-3.2.3/backends/empty/vector-into-type.cpp
Examining data/soci-3.2.3/backends/empty/soci-empty.h
Examining data/soci-3.2.3/backends/postgresql/common.h
Examining data/soci-3.2.3/backends/postgresql/blob.cpp
Examining data/soci-3.2.3/backends/postgresql/statement.cpp
Examining data/soci-3.2.3/backends/postgresql/vector-use-type.cpp
Examining data/soci-3.2.3/backends/postgresql/standard-use-type.cpp
Examining data/soci-3.2.3/backends/postgresql/session.cpp
Examining data/soci-3.2.3/backends/postgresql/error.cpp
Examining data/soci-3.2.3/backends/postgresql/factory.cpp
Examining data/soci-3.2.3/backends/postgresql/row-id.cpp
Examining data/soci-3.2.3/backends/postgresql/standard-into-type.cpp
Examining data/soci-3.2.3/backends/postgresql/test/test-postgresql.cpp
Examining data/soci-3.2.3/backends/postgresql/common.cpp
Examining data/soci-3.2.3/backends/postgresql/vector-into-type.cpp
Examining data/soci-3.2.3/backends/postgresql/soci-postgresql.h
Examining data/soci-3.2.3/core/procedure.cpp
Examining data/soci-3.2.3/core/error.h
Examining data/soci-3.2.3/core/use-type.cpp
Examining data/soci-3.2.3/core/soci-platform.h
Examining data/soci-3.2.3/core/prepare-temp-type.h
Examining data/soci-3.2.3/core/values.cpp
Examining data/soci-3.2.3/core/ref-counted-statement.h
Examining data/soci-3.2.3/core/connection-parameters.h
Examining data/soci-3.2.3/core/into-type.h
Examining data/soci-3.2.3/core/prepare-temp-type.cpp
Examining data/soci-3.2.3/core/once-temp-type.h
Examining data/soci-3.2.3/core/soci-simple.cpp
Examining data/soci-3.2.3/core/rowid.h
Examining data/soci-3.2.3/core/transaction.cpp
Examining data/soci-3.2.3/core/backend-loader.h
Examining data/soci-3.2.3/core/session.h
Examining data/soci-3.2.3/core/boost-fusion.h
Examining data/soci-3.2.3/core/blob.cpp
Examining data/soci-3.2.3/core/blob-exchange.h
Examining data/soci-3.2.3/core/boost-optional.h
Examining data/soci-3.2.3/core/rowid-exchange.h
Examining data/soci-3.2.3/core/use-type.h
Examining data/soci-3.2.3/core/row.h
Examining data/soci-3.2.3/core/boost-gregorian-date.h
Examining data/soci-3.2.3/core/connection-pool.cpp
Examining data/soci-3.2.3/core/query_transformation.h
Examining data/soci-3.2.3/core/use.h
Examining data/soci-3.2.3/core/soci-simple.h
Examining data/soci-3.2.3/core/statement.cpp
Examining data/soci-3.2.3/core/row.cpp
Examining data/soci-3.2.3/core/connection-parameters.cpp
Examining data/soci-3.2.3/core/ref-counted-prepare-info.cpp
Examining data/soci-3.2.3/core/type-ptr.h
Examining data/soci-3.2.3/core/soci-config.h
Examining data/soci-3.2.3/core/into-type.cpp
Examining data/soci-3.2.3/core/version.h
Examining data/soci-3.2.3/core/session.cpp
Examining data/soci-3.2.3/core/boost-tuple.h
Examining data/soci-3.2.3/core/values-exchange.h
Examining data/soci-3.2.3/core/error.cpp
Examining data/soci-3.2.3/core/soci-backend.h
Examining data/soci-3.2.3/core/once-temp-type.cpp
Examining data/soci-3.2.3/core/transaction.h
Examining data/soci-3.2.3/core/unsigned-types.h
Examining data/soci-3.2.3/core/type-holder.h
Examining data/soci-3.2.3/core/row-exchange.h
Examining data/soci-3.2.3/core/test/common-tests.h
Examining data/soci-3.2.3/core/backend-loader.cpp
Examining data/soci-3.2.3/core/blob.h
Examining data/soci-3.2.3/core/rowset.h
Examining data/soci-3.2.3/core/exchange-traits.h
Examining data/soci-3.2.3/core/ref-counted-statement.cpp
Examining data/soci-3.2.3/core/bind-values.h
Examining data/soci-3.2.3/core/type-conversion-traits.h
Examining data/soci-3.2.3/core/values.h
Examining data/soci-3.2.3/core/soci.h
Examining data/soci-3.2.3/core/ref-counted-prepare-info.h
Examining data/soci-3.2.3/core/rowid.cpp
Examining data/soci-3.2.3/core/into.h
Examining data/soci-3.2.3/core/type-conversion.h
Examining data/soci-3.2.3/core/procedure.h
Examining data/soci-3.2.3/core/statement.h
Examining data/soci-3.2.3/core/connection-pool.h

FINAL RESULTS:

data/soci-3.2.3/backends/firebird/test/test-firebird.cpp:98:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(b1, msg);
data/soci-3.2.3/backends/firebird/test/test-firebird.cpp:111:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(buf1, msg);
data/soci-3.2.3/backends/firebird/test/test-firebird.cpp:143:14:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        std::strcpy(buf, buf_str.c_str());
data/soci-3.2.3/backends/odbc/soci-odbc.h:385:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(reinterpret_cast<char*>(message_), socierror);
data/soci-3.2.3/backends/odbc/standard-use-type.cpp:20:9:  [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/soci-3.2.3/backends/odbc/standard-use-type.cpp:20:18:  [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/soci-3.2.3/backends/oracle/standard-use-type.cpp:24:9:  [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/soci-3.2.3/backends/oracle/standard-use-type.cpp:24:18:  [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/soci-3.2.3/backends/oracle/vector-use-type.cpp:20:9:  [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/soci-3.2.3/backends/oracle/vector-use-type.cpp:20:18:  [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/soci-3.2.3/backends/postgresql/standard-use-type.cpp:29:9:  [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/soci-3.2.3/backends/postgresql/standard-use-type.cpp:29:18:  [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/soci-3.2.3/backends/postgresql/standard-use-type.cpp:79:22:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                std::strcpy(buf_, s->c_str());
data/soci-3.2.3/backends/postgresql/vector-use-type.cpp:28:9:  [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/soci-3.2.3/backends/postgresql/vector-use-type.cpp:28:18:  [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/soci-3.2.3/backends/postgresql/vector-use-type.cpp:87:26:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                    std::strcpy(buf, v[i].c_str());
data/soci-3.2.3/backends/sqlite3/standard-use-type.cpp:23:9:  [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 // TODO: use soci-platform.h
data/soci-3.2.3/backends/sqlite3/standard-use-type.cpp:23:18:  [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 // TODO: use soci-platform.h
data/soci-3.2.3/backends/sqlite3/standard-use-type.cpp:103:22:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                std::strcpy(buf_, s->c_str());
data/soci-3.2.3/backends/sqlite3/vector-use-type.cpp:20:9:  [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 // TODO: use soci-platform.h
data/soci-3.2.3/backends/sqlite3/vector-use-type.cpp:20:18:  [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 // TODO: use soci-platform.h
data/soci-3.2.3/backends/sqlite3/vector-use-type.cpp:123:26:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                    std::strcpy(buf, v[i].c_str());
data/soci-3.2.3/core/soci-platform.h:23:10:  [4] (format) vsnprintf:
  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 vsnprintf _vsnprintf
data/soci-3.2.3/core/soci-platform.h:27:9:  [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/soci-3.2.3/core/soci-platform.h:27:18:  [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/soci-3.2.3/core/backend-loader.cpp:32:17:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
#define LOCK(x) EnterCriticalSection(x)
data/soci-3.2.3/core/backend-loader.cpp:34:23:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
#define MUTEX_INIT(x) InitializeCriticalSection(x)
data/soci-3.2.3/core/backend-loader.cpp:39:19:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
#define DLOPEN(x) LoadLibrary(x)
data/soci-3.2.3/core/backend-loader.cpp:103:35:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char const* const penv = std::getenv("SOCI_BACKENDS_PATH");
data/soci-3.2.3/core/connection-pool.cpp:233:5:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
    InitializeCriticalSection(&(pimpl_->mtx_));
data/soci-3.2.3/core/connection-pool.cpp:292:9:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
        EnterCriticalSection(&(pimpl_->mtx_));
data/soci-3.2.3/core/connection-pool.cpp:324:5:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    EnterCriticalSection(&(pimpl_->mtx_));
data/soci-3.2.3/backends/firebird/blob.cpp:29:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        open();
data/soci-3.2.3/backends/firebird/blob.cpp:132:29:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void firebird_blob_backend::open()
data/soci-3.2.3/backends/firebird/blob.cpp:179:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        open();
data/soci-3.2.3/backends/firebird/blob.cpp:266:5:  [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 res_buffer[20], *p, item;
data/soci-3.2.3/backends/firebird/common.cpp:106: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.
        std::memcpy(buf_, &sz, sizeof(short));
data/soci-3.2.3/backends/firebird/common.cpp:107: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.
        std::memcpy(buf_ + sizeof(short), s, sz);
data/soci-3.2.3/backends/firebird/common.cpp:111: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.
        std::memcpy(buf_, s, sz);
data/soci-3.2.3/backends/firebird/common.cpp:154: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.
        std::memcpy(buf_, &t, sizeof(t));
data/soci-3.2.3/backends/firebird/common.cpp:169: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.
        std::memcpy(buf_, &t, sizeof(t));
data/soci-3.2.3/backends/firebird/common.h:109:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(var->sqldata, &tmp, sizeof(short));
data/soci-3.2.3/backends/firebird/common.h:115:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(var->sqldata, &tmp, sizeof(int));
data/soci-3.2.3/backends/firebird/common.h:121:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(var->sqldata, &tmp, sizeof(long long));
data/soci-3.2.3/backends/firebird/common.h:127:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(var->sqldata, &sql_value, sizeof(float));
data/soci-3.2.3/backends/firebird/common.h:133:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(var->sqldata, &sql_value, sizeof(double));
data/soci-3.2.3/backends/firebird/common.h:148: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.
        std::memcpy(val, &t1, sizeof(t1));
data/soci-3.2.3/backends/firebird/common.h:150: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.
        std::memcpy(val, &t2, sizeof(t2));
data/soci-3.2.3/backends/firebird/error-firebird.cpp:39:5:  [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 msg_buffer[SOCI_FIREBIRD_ERRMSG];
data/soci-3.2.3/backends/firebird/soci-firebird.h:284:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    virtual void open();
data/soci-3.2.3/backends/firebird/standard-use-type.cpp:147:17:  [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(buf_, &blob->bid_, var->sqllen);
data/soci-3.2.3/backends/firebird/statement.cpp:155:9:  [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 res_buffer[8];
data/soci-3.2.3/backends/firebird/statement.cpp:573:5:  [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 res_buffer[256];
data/soci-3.2.3/backends/firebird/test/test-firebird.cpp:95:9:  [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 buf1[100], buf2[100], buf3[100];
data/soci-3.2.3/backends/firebird/test/test-firebird.cpp:110:9:  [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 buf1[100], buf2[100], buf3[100];
data/soci-3.2.3/backends/firebird/test/test-firebird.cpp:140:9:  [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 buf[20];
data/soci-3.2.3/backends/firebird/test/test-firebird.cpp:335:9:  [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 buf[4];
data/soci-3.2.3/backends/firebird/test/test-firebird.cpp:547:9:  [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 str2[20];
data/soci-3.2.3/backends/firebird/test/test-firebird.cpp:969:9:  [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 cnt_req[2], cnt_info[128];
data/soci-3.2.3/backends/mysql/session.cpp:201:26:  [2] (integer) atoi:
  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).
            *port = std::atoi(val.c_str());
data/soci-3.2.3/backends/mysql/session.cpp:255:34:  [2] (integer) atoi:
  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).
            *local_infile = std::atoi(val.c_str());
data/soci-3.2.3/backends/mysql/standard-use-type.cpp:49:14:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        std::strcpy(buf_, "NULL");
data/soci-3.2.3/backends/mysql/vector-use-type.cpp:60:18:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            std::strcpy(buf, "NULL");
data/soci-3.2.3/backends/odbc/session.cpp:271:5:  [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 product_name[1024];
data/soci-3.2.3/backends/odbc/soci-odbc.h:388:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(reinterpret_cast<char*>(sqlstate_), "01000");
data/soci-3.2.3/backends/odbc/standard-use-type.cpp:98: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(buf_, s->c_str(), size);
data/soci-3.2.3/backends/oracle/test/test-oracle.cpp:47:9:  [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 buf[25];
data/soci-3.2.3/backends/oracle/test/test-oracle.cpp:78:9:  [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 buf[25];
data/soci-3.2.3/backends/oracle/test/test-oracle.cpp:165:9:  [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 buf2[100];
data/soci-3.2.3/backends/postgresql/error.cpp:22:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(sqlstate_, sqlst, 5);
data/soci-3.2.3/backends/postgresql/session.cpp:112:5:  [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 nameBuf[20] = { 0 }; // arbitrary length
data/soci-3.2.3/backends/postgresql/session.cpp:113:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(nameBuf, "st_%d", ++statementCount_);
data/soci-3.2.3/backends/postgresql/soci-postgresql.h:46:5:  [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 sqlstate_[ 5 ];   // not std::string to keep copy-constructor no-throw
data/soci-3.2.3/backends/postgresql/test/test-postgresql.cpp:233:13:  [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 buf2[100];
data/soci-3.2.3/backends/sqlite3/blob.cpp:46:5:  [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(buf, buf_ + offset, r);
data/soci-3.2.3/backends/sqlite3/blob.cpp:67: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(buf_, oldBuf, oldLen);
data/soci-3.2.3/backends/sqlite3/blob.cpp:70:5:  [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(buf_ + offset, buf, toWrite);
data/soci-3.2.3/backends/sqlite3/blob.cpp:83:5:  [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(buf_, oldBuf, len_);
data/soci-3.2.3/backends/sqlite3/blob.cpp:85:5:  [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(buf_ + len_, buf, toWrite);
data/soci-3.2.3/backends/sqlite3/blob.cpp:102:5:  [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(buf_, oldBuf, len_);
data/soci-3.2.3/backends/sqlite3/test/test-sqlite3.cpp:104:13:  [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 buf2[100];
data/soci-3.2.3/core/session.cpp:48:5:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    open(lastConnectParameters_);
data/soci-3.2.3/core/session.cpp:58:5:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    open(lastConnectParameters_);
data/soci-3.2.3/core/session.cpp:68:5:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    open(lastConnectParameters_);
data/soci-3.2.3/core/session.cpp:77:5:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    open(lastConnectParameters_);
data/soci-3.2.3/core/session.cpp:104:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void session::open(connection_parameters const & parameters)
data/soci-3.2.3/core/session.cpp:108:34:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        pool_->at(poolPosition_).open(parameters);
data/soci-3.2.3/core/session.cpp:128:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void session::open(backend_factory const & factory,
data/soci-3.2.3/core/session.cpp:131:5:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    open(connection_parameters(factory, connectString));
data/soci-3.2.3/core/session.cpp:134:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void session::open(std::string const & backendName,
data/soci-3.2.3/core/session.cpp:137:5:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    open(connection_parameters(backendName, connectString));
data/soci-3.2.3/core/session.cpp:140:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void session::open(std::string const & connectString)
data/soci-3.2.3/core/session.cpp:142:5:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    open(connection_parameters(connectString));
data/soci-3.2.3/core/session.h:55:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    void open(connection_parameters const & parameters);
data/soci-3.2.3/core/session.h:56:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    void open(backend_factory const & factory, std::string const & connectString);
data/soci-3.2.3/core/session.h:57:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    void open(std::string const & backendName, std::string const & connectString);
data/soci-3.2.3/core/session.h:58:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    void open(std::string const & connectString);
data/soci-3.2.3/core/soci-simple.cpp:51:22:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        wrapper->sql.open(connection_string);
data/soci-3.2.3/core/soci-simple.cpp:187:5:  [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 date_formatted[20];
data/soci-3.2.3/core/soci-simple.cpp:497:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    std::sprintf(wrapper.date_formatted, "%d %d %d %d %d %d",
data/soci-3.2.3/core/soci-simple.cpp:1535:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    std::sprintf(wrapper->date_formatted, "%d %d %d %d %d %d",
data/soci-3.2.3/core/test/common-tests.h:3210:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        sql.open(backEndFactory_, connectString_);
data/soci-3.2.3/core/test/common-tests.h:3219:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            sql.open(backEndFactory_, connectString_);
data/soci-3.2.3/core/test/common-tests.h:3231:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        sql.open(backEndFactory_, connectString_);
data/soci-3.2.3/core/test/common-tests.h:3634:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            sql.open(backEndFactory_, connectString_);
data/soci-3.2.3/core/test/common-tests.h:3802:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            sql.open(backEndFactory_, connectString_);
data/soci-3.2.3/core/test/common-tests.h:3894:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            sql.open(backEndFactory_, connectString_);
data/soci-3.2.3/backends/db2/blob.cpp:37:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
std::size_t db2_blob_backend::read(
data/soci-3.2.3/backends/db2/soci-db2.h:223:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    std::size_t read(std::size_t offset, char* buf, std::size_t toRead);
data/soci-3.2.3/backends/db2/standard-use-type.cpp:73:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(buf, s->c_str(), size);
data/soci-3.2.3/backends/db2/statement.cpp:248:34:  [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).
    columnName.assign(name, std::strlen(name));
data/soci-3.2.3/backends/db2/vector-into-type.cpp:198:34:  [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).
                v[i].assign(pos, strlen(pos));
data/soci-3.2.3/backends/db2/vector-use-type.cpp:152:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(pos, v[i].c_str(), v[i].length());
data/soci-3.2.3/backends/empty/blob.cpp:36:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
std::size_t empty_blob_backend::read(
data/soci-3.2.3/backends/empty/soci-empty.h:147:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    std::size_t read(std::size_t offset, char* buf, std::size_t toRead);
data/soci-3.2.3/backends/firebird/blob.cpp:35:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
std::size_t firebird_blob_backend::read(
data/soci-3.2.3/backends/firebird/soci-firebird.h:254:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual std::size_t read(std::size_t offset, char *buf,
data/soci-3.2.3/backends/firebird/test/test-firebird.cpp:545:26:  [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).
        b.write(0, str1, strlen(str1));
data/soci-3.2.3/backends/firebird/test/test-firebird.cpp:548:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        std::size_t i = b.read(3, str2, 2);
data/soci-3.2.3/backends/firebird/test/test-firebird.cpp:553:24:  [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).
        b.append(str3, strlen(str3));
data/soci-3.2.3/backends/firebird/test/test-firebird.cpp:565:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        b.read(0, &text[0], b.get_len());
data/soci-3.2.3/backends/firebird/test/test-firebird.cpp:569:26:  [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).
        b.write(7, str1, strlen(str1));
data/soci-3.2.3/backends/firebird/test/test-firebird.cpp:582:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        b.read(0, &text[0], b.get_len());
data/soci-3.2.3/backends/firebird/test/test-firebird.cpp:585:26:  [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).
        b.write(0, str1, strlen(str1));
data/soci-3.2.3/backends/firebird/test/test-firebird.cpp:587:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        b.read(0, &text[0], b.get_len());
data/soci-3.2.3/backends/firebird/test/test-firebird.cpp:602:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        b.read(0, &text[0], b.get_len());
data/soci-3.2.3/backends/firebird/test/test-firebird.cpp:607:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        b.read(0, &text[0], b.get_len());
data/soci-3.2.3/backends/mysql/blob.cpp:36:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
std::size_t mysql_blob_backend::read(
data/soci-3.2.3/backends/mysql/soci-mysql.h:221:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual std::size_t read(std::size_t offset, char *buf,
data/soci-3.2.3/backends/odbc/blob.cpp:32:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
std::size_t odbc_blob_backend::read(
data/soci-3.2.3/backends/odbc/soci-odbc.h:259:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual std::size_t read(std::size_t offset, char *buf,
data/soci-3.2.3/backends/odbc/statement.cpp:284:34:  [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).
    columnName.assign(name, std::strlen(name));
data/soci-3.2.3/backends/odbc/vector-into-type.cpp:227:34:  [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).
                v[i].assign(pos, strlen(pos));
data/soci-3.2.3/backends/odbc/vector-use-type.cpp:179:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(pos, v[i].c_str(), v[i].length());
data/soci-3.2.3/backends/oracle/blob.cpp:56:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
std::size_t oracle_blob_backend::read(
data/soci-3.2.3/backends/oracle/soci-oracle.h:231:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual std::size_t read(std::size_t offset, char *buf,
data/soci-3.2.3/backends/oracle/standard-use-type.cpp:251:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(buf_, s->c_str(), toCopy);
data/soci-3.2.3/backends/oracle/test/test-oracle.cpp:166:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        b.read(1, buf2, 10);
data/soci-3.2.3/backends/oracle/vector-use-type.cpp:143:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(pos, v[i].c_str(), v[i].length());
data/soci-3.2.3/backends/postgresql/blob.cpp:55:38:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
std::size_t postgresql_blob_backend::read(
data/soci-3.2.3/backends/postgresql/common.cpp:100:58:  [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).
    if (converted == 1 && static_cast<std::size_t>(n) == strlen(buf))
data/soci-3.2.3/backends/postgresql/common.h:34:63:  [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).
    if (converted == 1 && static_cast<std::size_t>(n) == std::strlen(buf))
data/soci-3.2.3/backends/postgresql/common.h:79:63:  [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).
    if (converted == 1 && static_cast<std::size_t>(n) == std::strlen(buf))
data/soci-3.2.3/backends/postgresql/error.cpp:21:17:  [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).
    assert(std::strlen(sqlst) == 5);
data/soci-3.2.3/backends/postgresql/soci-postgresql.h:294:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual std::size_t read(std::size_t offset, char * buf,
data/soci-3.2.3/backends/postgresql/test/test-postgresql.cpp:234:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            b.read(0, buf2, 10);
data/soci-3.2.3/backends/postgresql/test/test-postgresql.cpp:550:21:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        assert(std::equal(ids.begin(), ids.end(), ids2.begin()));
data/soci-3.2.3/backends/sqlite3/blob.cpp:34:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
std::size_t sqlite3_blob_backend::read(
data/soci-3.2.3/backends/sqlite3/common.h:46:63:  [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).
    if (converted == 1 && static_cast<std::size_t>(n) == std::strlen(buf))
data/soci-3.2.3/backends/sqlite3/common.h:70:63:  [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).
    if (converted == 1 && static_cast<std::size_t>(n) == std::strlen(buf))
data/soci-3.2.3/backends/sqlite3/soci-sqlite3.h:233:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual std::size_t read(std::size_t offset, char *buf,
data/soci-3.2.3/backends/sqlite3/standard-use-type.cpp:187:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                bbe->read(0, buf_, len);
data/soci-3.2.3/backends/sqlite3/test/test-sqlite3.cpp:105:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            b.read(0, buf2, 10);
data/soci-3.2.3/core/blob.cpp:31:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
std::size_t blob::read(std::size_t offset, char *buf, std::size_t toRead)
data/soci-3.2.3/core/blob.cpp:33:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return backEnd_->read(offset, buf, toRead);
data/soci-3.2.3/core/blob.h:33:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    std::size_t read(std::size_t offset, char * buf, std::size_t toRead);
data/soci-3.2.3/core/soci-backend.h:207:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual std::size_t read(std::size_t offset, char* buf,

ANALYSIS SUMMARY:

Hits = 157
Lines analyzed = 37671 in approximately 0.75 seconds (50340 lines/second)
Physical Source Lines of Code (SLOC) = 28523
Hits@level = [0]  63 [1]  50 [2]  75 [3]   7 [4]  25 [5]   0
Hits@level+ = [0+] 220 [1+] 157 [2+] 107 [3+]  32 [4+]  25 [5+]   0
Hits/KSLOC@level+ = [0+] 7.71307 [1+] 5.50433 [2+] 3.75136 [3+] 1.1219 [4+] 0.876486 [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.