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/libdbi-drivers-0.9.0/drivers/mysql/dbd_mysql.h
Examining data/libdbi-drivers-0.9.0/drivers/mysql/dbd_mysql.c
Examining data/libdbi-drivers-0.9.0/drivers/pgsql/dbd_pgsql.c
Examining data/libdbi-drivers-0.9.0/drivers/pgsql/dbd_pgsql.h
Examining data/libdbi-drivers-0.9.0/drivers/sqlite/dbd_sqlite.c
Examining data/libdbi-drivers-0.9.0/drivers/sqlite/dbd_sqlite.h
Examining data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.h
Examining data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c
Examining data/libdbi-drivers-0.9.0/drivers/msql/dbd_msql.c
Examining data/libdbi-drivers-0.9.0/drivers/msql/dbd_msql.h
Examining data/libdbi-drivers-0.9.0/drivers/oracle/dbd_oracle.c
Examining data/libdbi-drivers-0.9.0/drivers/oracle/dbd_oracle.h
Examining data/libdbi-drivers-0.9.0/drivers/oracle/oracle_charsets.h
Examining data/libdbi-drivers-0.9.0/drivers/firebird/dbd_firebird.c
Examining data/libdbi-drivers-0.9.0/drivers/firebird/utility.c
Examining data/libdbi-drivers-0.9.0/drivers/firebird/dbd_firebird.h
Examining data/libdbi-drivers-0.9.0/drivers/firebird/utility.h
Examining data/libdbi-drivers-0.9.0/drivers/firebird/firebird_charsets.h
Examining data/libdbi-drivers-0.9.0/drivers/freetds/dbd_freetds.h
Examining data/libdbi-drivers-0.9.0/drivers/freetds/dbd_freetds.c
Examining data/libdbi-drivers-0.9.0/drivers/ingres/dbd_ingres.c
Examining data/libdbi-drivers-0.9.0/drivers/ingres/months.gperf.c
Examining data/libdbi-drivers-0.9.0/drivers/ingres/dbd_ingres.h
Examining data/libdbi-drivers-0.9.0/drivers/db2/dbd_db2.c
Examining data/libdbi-drivers-0.9.0/drivers/db2/dbd_db2.h
Examining data/libdbi-drivers-0.9.0/tests/test_dbi_plugin.c
Examining data/libdbi-drivers-0.9.0/tests/test_dbi_dlopen.c
Examining data/libdbi-drivers-0.9.0/tests/cgreen/src/messaging.c
Examining data/libdbi-drivers-0.9.0/tests/cgreen/src/breadcrumb.c
Examining data/libdbi-drivers-0.9.0/tests/cgreen/src/reporter.c
Examining data/libdbi-drivers-0.9.0/tests/cgreen/src/assertions.c
Examining data/libdbi-drivers-0.9.0/tests/cgreen/src/vector.c
Examining data/libdbi-drivers-0.9.0/tests/cgreen/src/mocks.c
Examining data/libdbi-drivers-0.9.0/tests/cgreen/src/constraint.c
Examining data/libdbi-drivers-0.9.0/tests/cgreen/src/parameters.c
Examining data/libdbi-drivers-0.9.0/tests/cgreen/src/text_reporter.c
Examining data/libdbi-drivers-0.9.0/tests/cgreen/src/cdash_reporter.c
Examining data/libdbi-drivers-0.9.0/tests/cgreen/src/unit.c
Examining data/libdbi-drivers-0.9.0/tests/cgreen/doc/tutorial_test/all_tests.c
Examining data/libdbi-drivers-0.9.0/tests/cgreen/doc/tutorial_test/crash_test.c
Examining data/libdbi-drivers-0.9.0/tests/cgreen/doc/tutorial_test/first_test.c
Examining data/libdbi-drivers-0.9.0/tests/cgreen/doc/tutorial_test/person.h
Examining data/libdbi-drivers-0.9.0/tests/cgreen/doc/tutorial_test/person_test.c
Examining data/libdbi-drivers-0.9.0/tests/cgreen/doc/tutorial_test/stream.c
Examining data/libdbi-drivers-0.9.0/tests/cgreen/doc/tutorial_test/stream_test.c
Examining data/libdbi-drivers-0.9.0/tests/cgreen/doc/tutorial_test/strlen_test.c
Examining data/libdbi-drivers-0.9.0/tests/cgreen/doc/tutorial_test/test_as_xml.c
Examining data/libdbi-drivers-0.9.0/tests/cgreen/doc/tutorial_test/words.c
Examining data/libdbi-drivers-0.9.0/tests/cgreen/doc/tutorial_test/words.h
Examining data/libdbi-drivers-0.9.0/tests/cgreen/doc/tutorial_test/words_test.c
Examining data/libdbi-drivers-0.9.0/tests/cgreen/doc/tutorial_test/xml_reporter.c
Examining data/libdbi-drivers-0.9.0/tests/cgreen/doc/tutorial_test/xml_reporter.h
Examining data/libdbi-drivers-0.9.0/tests/cgreen/include/cgreen/assertions.h
Examining data/libdbi-drivers-0.9.0/tests/cgreen/include/cgreen/breadcrumb.h
Examining data/libdbi-drivers-0.9.0/tests/cgreen/include/cgreen/cdash_reporter.h
Examining data/libdbi-drivers-0.9.0/tests/cgreen/include/cgreen/cgreen.h
Examining data/libdbi-drivers-0.9.0/tests/cgreen/include/cgreen/collector_test_list.h
Examining data/libdbi-drivers-0.9.0/tests/cgreen/include/cgreen/constraint.h
Examining data/libdbi-drivers-0.9.0/tests/cgreen/include/cgreen/cute_reporter.h
Examining data/libdbi-drivers-0.9.0/tests/cgreen/include/cgreen/memory.h
Examining data/libdbi-drivers-0.9.0/tests/cgreen/include/cgreen/messaging.h
Examining data/libdbi-drivers-0.9.0/tests/cgreen/include/cgreen/mocks.h
Examining data/libdbi-drivers-0.9.0/tests/cgreen/include/cgreen/parameters.h
Examining data/libdbi-drivers-0.9.0/tests/cgreen/include/cgreen/reporter.h
Examining data/libdbi-drivers-0.9.0/tests/cgreen/include/cgreen/slurp.h
Examining data/libdbi-drivers-0.9.0/tests/cgreen/include/cgreen/text_reporter.h
Examining data/libdbi-drivers-0.9.0/tests/cgreen/include/cgreen/unit.h
Examining data/libdbi-drivers-0.9.0/tests/cgreen/include/cgreen/vector.h
Examining data/libdbi-drivers-0.9.0/tests/cgreen/samples/sample.c
Examining data/libdbi-drivers-0.9.0/tests/cgreen/tests/all_tests.c
Examining data/libdbi-drivers-0.9.0/tests/cgreen/tests/assertion_tests.c
Examining data/libdbi-drivers-0.9.0/tests/cgreen/tests/breadcrumb_tests.c
Examining data/libdbi-drivers-0.9.0/tests/cgreen/tests/collector_tests.c
Examining data/libdbi-drivers-0.9.0/tests/cgreen/tests/constraint_tests.c
Examining data/libdbi-drivers-0.9.0/tests/cgreen/tests/cute_reporter_tests.c
Examining data/libdbi-drivers-0.9.0/tests/cgreen/tests/messaging_tests.c
Examining data/libdbi-drivers-0.9.0/tests/cgreen/tests/mocks_tests.c
Examining data/libdbi-drivers-0.9.0/tests/cgreen/tests/parameters_test.c
Examining data/libdbi-drivers-0.9.0/tests/cgreen/tests/slurp_test.c
Examining data/libdbi-drivers-0.9.0/tests/cgreen/tests/unit_tests.c
Examining data/libdbi-drivers-0.9.0/tests/cgreen/tests/vector_tests.c
Examining data/libdbi-drivers-0.9.0/tests/test_dbi.c
Examining data/libdbi-drivers-0.9.0/debian/buildtests/test_dbi_lib.c
Examining data/libdbi-drivers-0.9.0/debian/buildtests/test_dl.c

FINAL RESULTS:

data/libdbi-drivers-0.9.0/drivers/db2/dbd_db2.c:247:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(errbuf, "%s: %s\n", sqlstate, message);
data/libdbi-drivers-0.9.0/drivers/db2/dbd_db2.c:513:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(countquery, "SELECT COUNT(*) FROM (%s)", statement);
data/libdbi-drivers-0.9.0/drivers/firebird/utility.c:134:3:  [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(db_fullpath, dbdir);
data/libdbi-drivers-0.9.0/drivers/firebird/utility.c:138:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(db_fullpath, dirsep);
data/libdbi-drivers-0.9.0/drivers/firebird/utility.c:140:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(db_fullpath, dbname);
data/libdbi-drivers-0.9.0/drivers/pgsql/dbd_pgsql.c:485:3:  [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((char *)(quoted_temp+1), (char *)temp);
data/libdbi-drivers-0.9.0/drivers/sqlite/dbd_sqlite.c:189:5:  [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(db_fullpath, dbdir);
data/libdbi-drivers-0.9.0/drivers/sqlite/dbd_sqlite.c:192:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(db_fullpath, dirsep);
data/libdbi-drivers-0.9.0/drivers/sqlite/dbd_sqlite.c:195:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(db_fullpath, dbname);
data/libdbi-drivers-0.9.0/drivers/sqlite/dbd_sqlite.c:784:7:  [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(curr_table, table);
data/libdbi-drivers-0.9.0/drivers/sqlite/dbd_sqlite.c:834:5:  [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(curr_field_name, field);
data/libdbi-drivers-0.9.0/drivers/sqlite/dbd_sqlite.c:839:5:  [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(curr_field_name, item+1);
data/libdbi-drivers-0.9.0/drivers/sqlite/dbd_sqlite.c:851:3:  [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(curr_field_name_up, curr_field_name);
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:204:7:  [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(db_fullpath, dbdir);
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:208:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(db_fullpath, dirsep);
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:214:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(db_fullpath, dbname);
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:843:5:  [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(curr_field, field);
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:847:5:  [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(curr_field, item+1);
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:1029:6:  [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(curr_field,itemstore);
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:1030:6:  [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(curr_field_lower, curr_field);
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:1092:6:  [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(curr_field,item+1);
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:1095:6:  [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(curr_field,itemstore);
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:1405:8:  [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(curr_table,tables[index - 1]);
data/libdbi-drivers-0.9.0/tests/cgreen/doc/tutorial_test/xml_reporter.c:51:5:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vprintf(message, arguments);
data/libdbi-drivers-0.9.0/tests/cgreen/src/cdash_reporter.c:67:21:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    memo->printer = fprintf;
data/libdbi-drivers-0.9.0/tests/cgreen/src/cdash_reporter.c:190:2:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
	vsprintf(buffer, (message == NULL ? "Problem" : message), arguments);
data/libdbi-drivers-0.9.0/tests/cgreen/src/text_reporter.c:62:5:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vprintf((message == NULL ? "Problem" : message), arguments);
data/libdbi-drivers-0.9.0/tests/cgreen/src/unit.c:269:2:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vprintf(message, arguments);
data/libdbi-drivers-0.9.0/tests/cgreen/tests/cute_reporter_tests.c:17:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(output, buffer);
data/libdbi-drivers-0.9.0/tests/cgreen/tests/cute_reporter_tests.c:25:2:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
	vsprintf(buffer, format, ap);
data/libdbi-drivers-0.9.0/tests/test_dbi.c:1006:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(query_string, ptr_fieldinfo[i].name);
data/libdbi-drivers-0.9.0/tests/test_dbi.c:1174:12:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
       if (system(command)) {
data/libdbi-drivers-0.9.0/tests/test_dbi.c:1197:10:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
     if (system(command)) {
data/libdbi-drivers-0.9.0/tests/test_dbi.c:1997:7:  [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(ptr_cinfo->initial_dbname, ptr_cinfo->dbname);
data/libdbi-drivers-0.9.0/tests/test_dbi.c:2001:7:  [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(ptr_cinfo->initial_dbname, ptr_cinfo->dbname);
data/libdbi-drivers-0.9.0/tests/test_dbi.c:2071:7:  [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(ptr_cinfo->initial_dbname, ptr_cinfo->dbname);
data/libdbi-drivers-0.9.0/tests/test_dbi.c:2078:7:  [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(ptr_cinfo->initial_dbname, ptr_cinfo->dbname);
data/libdbi-drivers-0.9.0/tests/test_dbi.c:2147:14:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
         if (access(database_path, R_OK | W_OK | F_OK) == 0) {
data/libdbi-drivers-0.9.0/tests/test_dbi.c:2169:11:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      if (system(command)) {
data/libdbi-drivers-0.9.0/tests/test_dbi.c:2275:10:  [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(dbpath, cinfo.dbdir);
data/libdbi-drivers-0.9.0/tests/test_dbi.c:2288:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(dbpath, cinfo.dbname);
data/libdbi-drivers-0.9.0/tests/test_dbi.c:2324:11:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      if (system(command)) {
data/libdbi-drivers-0.9.0/drivers/oracle/dbd_oracle.c:119:19:  [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.
	if(! sid ) sid = getenv("ORACLE_SID");
data/libdbi-drivers-0.9.0/tests/test_dbi.c:497:17:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
   while ((ch = getopt(argc, argv, "N:P:R:V:H:CT:B:S:s:h?")) != -1) {
data/libdbi-drivers-0.9.0/drivers/firebird/dbd_firebird.c:361:2:  [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 info_buffer[20];
data/libdbi-drivers-0.9.0/drivers/firebird/dbd_firebird.c:373:10:  [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[512];
data/libdbi-drivers-0.9.0/drivers/firebird/dbd_firebird.c:387:10:  [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[512];
data/libdbi-drivers-0.9.0/drivers/firebird/dbd_firebird.c:407:11:  [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[512];
data/libdbi-drivers-0.9.0/drivers/firebird/dbd_firebird.c:421:12:  [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[512];
data/libdbi-drivers-0.9.0/drivers/firebird/dbd_firebird.c:464:12:  [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[512];
data/libdbi-drivers-0.9.0/drivers/firebird/dbd_firebird.c:497:11:  [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[512];
data/libdbi-drivers-0.9.0/drivers/firebird/dbd_firebird.c:654:2:  [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[100];
data/libdbi-drivers-0.9.0/drivers/firebird/dbd_firebird.h:21:3:  [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 vary_string[1];
data/libdbi-drivers-0.9.0/drivers/firebird/utility.c:27:1:  [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 version[MAXLEN];
data/libdbi-drivers-0.9.0/drivers/firebird/utility.c:31:2:  [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 dpb_buffer[256], *dpb, *p, *fb_encoding; 
data/libdbi-drivers-0.9.0/drivers/firebird/utility.c:32:2:  [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 dbase[256];
data/libdbi-drivers-0.9.0/drivers/firebird/utility.c:35:2:  [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 db_fullpath[PATH_MAX];
data/libdbi-drivers-0.9.0/drivers/firebird/utility.c:99:3:  [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[512];
data/libdbi-drivers-0.9.0/drivers/firebird/utility.c:235:2:  [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 blob_segment[80];
data/libdbi-drivers-0.9.0/drivers/firebird/utility.c:238:2:  [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_s[25];
data/libdbi-drivers-0.9.0/drivers/firebird/utility.c:274: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(data->d_string, vary->vary_string, vary->vary_length);
data/libdbi-drivers-0.9.0/drivers/firebird/utility.c:313: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(date_s, "%04d-%02d-%02d %02d:%02d:%02d",
data/libdbi-drivers-0.9.0/drivers/firebird/utility.c:323: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(date_s, "%02d:%02d:%02d",
data/libdbi-drivers-0.9.0/drivers/firebird/utility.c:330: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(date_s, "%04d-%02d-%02d",
data/libdbi-drivers-0.9.0/drivers/firebird/utility.c:346:4:  [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(data->d_string, blob_segment, actual_seg_len);
data/libdbi-drivers-0.9.0/drivers/firebird/utility.c:359: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(data->d_string+row->field_sizes[curfield], 
data/libdbi-drivers-0.9.0/drivers/freetds/dbd_freetds.c:1020: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 datastring[20];
data/libdbi-drivers-0.9.0/drivers/ingres/dbd_ingres.c:174:2:  [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 *p, buf[0x200];
data/libdbi-drivers-0.9.0/drivers/ingres/dbd_ingres.c:206: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(p+count, buf, n);
data/libdbi-drivers-0.9.0/drivers/ingres/dbd_ingres.c:228:17:  [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).
		II_LONG val = atoi(opt);
data/libdbi-drivers-0.9.0/drivers/ingres/dbd_ingres.c:243:17:  [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).
		II_LONG val = atoi(opt);
data/libdbi-drivers-0.9.0/drivers/ingres/dbd_ingres.c:324:21:  [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).
		if(!autocommit || atoi(autocommit)){ // enable auto-commit by default
data/libdbi-drivers-0.9.0/drivers/ingres/dbd_ingres.c:502:22:  [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).
		unixtime.tm_mday = atoi(p);
data/libdbi-drivers-0.9.0/drivers/ingres/dbd_ingres.c:510:22:  [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).
			unixtime.tm_mon = atoi(p)-1; /* months are 0 through 11 */
data/libdbi-drivers-0.9.0/drivers/ingres/dbd_ingres.c:526:22:  [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).
		unixtime.tm_year = atoi(p)-1900;
data/libdbi-drivers-0.9.0/drivers/ingres/dbd_ingres.c:540:23:  [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).
			unixtime.tm_hour = atoi(p);
data/libdbi-drivers-0.9.0/drivers/ingres/dbd_ingres.c:547:22:  [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).
			unixtime.tm_min = atoi(p);
data/libdbi-drivers-0.9.0/drivers/ingres/dbd_ingres.c:554:22:  [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).
			unixtime.tm_sec = atoi(p); 
data/libdbi-drivers-0.9.0/drivers/ingres/dbd_ingres.c:686:4:  [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(data->d_string, (char*)pdataval->dv_value + 2, len);
data/libdbi-drivers-0.9.0/drivers/ingres/dbd_ingres.c:707:3:  [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(data, pdataval->dv_value, 8); // constant permits compile-time optimisation
data/libdbi-drivers-0.9.0/drivers/ingres/dbd_ingres.c:817: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(blob + bloblen, (char*)databuf[fieldidx].dv_value + 2, len);
data/libdbi-drivers-0.9.0/drivers/ingres/months.gperf.c:47: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.
static unsigned char gperf_downcase[256] =
data/libdbi-drivers-0.9.0/drivers/msql/dbd_msql.c:483:27:  [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).
				data->d_char = (char) atol(raw); break;
data/libdbi-drivers-0.9.0/drivers/msql/dbd_msql.c:485:29:  [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).
				data->d_short = (short) atol(raw); break;
data/libdbi-drivers-0.9.0/drivers/msql/dbd_msql.c:488:26:  [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).
				data->d_long = (int) atol(raw); break;
data/libdbi-drivers-0.9.0/drivers/mysql/dbd_mysql.c:857:29:  [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).
						data->d_char = (char) atol(raw); break;
data/libdbi-drivers-0.9.0/drivers/mysql/dbd_mysql.c:859:31:  [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).
						data->d_short = (short) atol(raw); break;
data/libdbi-drivers-0.9.0/drivers/mysql/dbd_mysql.c:862:28:  [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).
						data->d_long = (int) atol(raw); break;
data/libdbi-drivers-0.9.0/drivers/mysql/dbd_mysql.c:890: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(data->d_string, raw, strsizes[curfield]);
data/libdbi-drivers-0.9.0/drivers/oracle/dbd_oracle.c:493:2:  [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 errbuf[1024];
data/libdbi-drivers-0.9.0/drivers/oracle/dbd_oracle.c:676:2:  [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 *ptr, *cols[result->numfields];
data/libdbi-drivers-0.9.0/drivers/oracle/dbd_oracle.c:762:4:  [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(data->d_string, cols[curfield],row->field_sizes[curfield]);
data/libdbi-drivers-0.9.0/drivers/oracle/dbd_oracle.c:777:4:  [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(data->d_string, cols[curfield],row->field_sizes[curfield]);
data/libdbi-drivers-0.9.0/drivers/pgsql/dbd_pgsql.c:827:29:  [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).
						data->d_char = (char) atol(raw); break;
data/libdbi-drivers-0.9.0/drivers/pgsql/dbd_pgsql.c:829:31:  [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).
						data->d_short = (short) atol(raw); break;
data/libdbi-drivers-0.9.0/drivers/pgsql/dbd_pgsql.c:832:28:  [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).
						data->d_long = (int) atol(raw); break;
data/libdbi-drivers-0.9.0/drivers/sqlite/dbd_sqlite.c:332:3:  [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 old_cwd[_POSIX_PATH_MAX] = "";
data/libdbi-drivers-0.9.0/drivers/sqlite/dbd_sqlite.c:398:17:  [2] (misc) fopen:
  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).
      if ((fp = fopen(entry->d_name, "r")) != NULL) {
data/libdbi-drivers-0.9.0/drivers/sqlite/dbd_sqlite.c:399:2:  [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 magic_text[48] = "";
data/libdbi-drivers-0.9.0/drivers/sqlite/dbd_sqlite.c:731:3:  [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 curr_table[MAX_IDENT_LENGTH] = "";
data/libdbi-drivers-0.9.0/drivers/sqlite/dbd_sqlite.c:732:3:  [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 curr_field_name[MAX_IDENT_LENGTH];
data/libdbi-drivers-0.9.0/drivers/sqlite/dbd_sqlite.c:733:3:  [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 curr_field_name_up[MAX_IDENT_LENGTH];
data/libdbi-drivers-0.9.0/drivers/sqlite/dbd_sqlite.c:1253:24:  [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).
	data->d_char = (char) atol(raw); break;
data/libdbi-drivers-0.9.0/drivers/sqlite/dbd_sqlite.c:1255:26:  [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).
	data->d_short = (short) atol(raw); break;
data/libdbi-drivers-0.9.0/drivers/sqlite/dbd_sqlite.c:1258:23:  [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).
	data->d_long = (int) atol(raw); break;
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:375:3:  [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 old_cwd[_POSIX_PATH_MAX] = "";
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:376:3:  [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 sql_command[_POSIX_PATH_MAX+64];
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:445:17:  [2] (misc) fopen:
  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).
      if ((fp = fopen(entry->d_name, "r")) != NULL) {
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:446:2:  [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 magic_text[16] = "";
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:833:3:  [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 curr_field[MAX_IDENT_LENGTH];
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:834:3:  [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 curr_field_lower[MAX_IDENT_LENGTH];
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:835:3:  [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 curr_table[MAX_IDENT_LENGTH];
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:1109:3:  [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 sql_command[MAX_IDENT_LENGTH+80];
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:1345:2:  [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 substatement[item-start];
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:1358:2:  [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 word[item-start+1];
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:1359:2:  [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 word_lower[item-start+1];
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:1454: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 word_lower[item-start+1];
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:1710:24:  [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).
	data->d_char = (char) atol(raw); break;
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:1712:26:  [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).
	data->d_short = (short) atol(raw); break;
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:1716:23:  [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).
	data->d_long = (int) atol(raw); break;
data/libdbi-drivers-0.9.0/tests/cgreen/src/cdash_reporter.c:49:2:  [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 sbuildstamp[15];
data/libdbi-drivers-0.9.0/tests/cgreen/src/cdash_reporter.c:50:2:  [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 strstart[30];
data/libdbi-drivers-0.9.0/tests/cgreen/src/cdash_reporter.c:51:2:  [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 reporter_path[255];
data/libdbi-drivers-0.9.0/tests/cgreen/src/cdash_reporter.c:77:10:  [2] (misc) fopen:
  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).
    fd = fopen("./Testing/TAG", "w+");
data/libdbi-drivers-0.9.0/tests/cgreen/src/cdash_reporter.c:94:10:  [2] (misc) fopen:
  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).
    fd = fopen(reporter_path, "w+");
data/libdbi-drivers-0.9.0/tests/cgreen/src/cdash_reporter.c:137:2:  [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 endtime[30];
data/libdbi-drivers-0.9.0/tests/cgreen/src/cdash_reporter.c:164:2:  [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 buffer[1000];
data/libdbi-drivers-0.9.0/tests/cgreen/src/cdash_reporter.c:242:2:  [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 s[15];
data/libdbi-drivers-0.9.0/tests/cgreen/src/cdash_reporter.c:256:2:  [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 s[20];
data/libdbi-drivers-0.9.0/tests/cgreen/tests/cute_reporter_tests.c:22:2:  [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 buffer[10000];
data/libdbi-drivers-0.9.0/tests/test_dbi.c:61:4:  [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 driverdir[256];
data/libdbi-drivers-0.9.0/tests/test_dbi.c:62:4:  [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 drivername[64];
data/libdbi-drivers-0.9.0/tests/test_dbi.c:64:4:  [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 dbname[64];
data/libdbi-drivers-0.9.0/tests/test_dbi.c:65:4:  [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 initial_dbname[64];
data/libdbi-drivers-0.9.0/tests/test_dbi.c:66:4:  [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 dbdir[256];
data/libdbi-drivers-0.9.0/tests/test_dbi.c:67:4:  [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 username[64];
data/libdbi-drivers-0.9.0/tests/test_dbi.c:68:4:  [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 password[64];
data/libdbi-drivers-0.9.0/tests/test_dbi.c:69:4:  [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 hostname[256];
data/libdbi-drivers-0.9.0/tests/test_dbi.c:70:4:  [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 version[64];
data/libdbi-drivers-0.9.0/tests/test_dbi.c:71:4:  [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 createschema[QUERY_LEN + 1];
data/libdbi-drivers-0.9.0/tests/test_dbi.c:72:4:  [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 createsubschema[5][QUERY_LEN + 1];
data/libdbi-drivers-0.9.0/tests/test_dbi.c:73:4:  [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 dropsubschema[5][QUERY_LEN + 1];
data/libdbi-drivers-0.9.0/tests/test_dbi.c:74:4:  [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 query[QUERY_LEN + 1];
data/libdbi-drivers-0.9.0/tests/test_dbi.c:75:4:  [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 encoding[20];
data/libdbi-drivers-0.9.0/tests/test_dbi.c:106:4:  [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 name[32];
data/libdbi-drivers-0.9.0/tests/test_dbi.c:115: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 string_val[48];
data/libdbi-drivers-0.9.0/tests/test_dbi.c:118:4:  [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 expect_as_string[48];
data/libdbi-drivers-0.9.0/tests/test_dbi.c:998:4:  [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(query_string, "SELECT ");
data/libdbi-drivers-0.9.0/tests/test_dbi.c:1018:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
   strcat(query_string, " from test_datatypes");
data/libdbi-drivers-0.9.0/tests/test_dbi.c:1151:6:  [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 command[1024];
data/libdbi-drivers-0.9.0/tests/test_dbi.c:1419:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat(ptr_cinfo->createschema, "; CREATE SEQUENCE test_datatypes_id_seq");
data/libdbi-drivers-0.9.0/tests/test_dbi.c:1824:4:  [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 resp[16];
data/libdbi-drivers-0.9.0/tests/test_dbi.c:1933:8:  [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(ptr_cinfo->dbdir, "/tmp");
data/libdbi-drivers-0.9.0/tests/test_dbi.c:1952: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(ptr_cinfo->hostname, "localhost");
data/libdbi-drivers-0.9.0/tests/test_dbi.c:1974:7:  [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(ptr_cinfo->dbname, "libdbitest");
data/libdbi-drivers-0.9.0/tests/test_dbi.c:1990:7:  [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(ptr_cinfo->initial_dbname, "mysql");
data/libdbi-drivers-0.9.0/tests/test_dbi.c:1993:7:  [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(ptr_cinfo->initial_dbname, "template1");
data/libdbi-drivers-0.9.0/tests/test_dbi.c:2004:7:  [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(ptr_cinfo->initial_dbname, "master");
data/libdbi-drivers-0.9.0/tests/test_dbi.c:2007:7:  [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(ptr_cinfo->initial_dbname, "toolsdb");
data/libdbi-drivers-0.9.0/tests/test_dbi.c:2017:4:  [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 *versionstring[100];
data/libdbi-drivers-0.9.0/tests/test_dbi.c:2057:7:  [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(ptr_cinfo->initial_dbname, "mysql");
data/libdbi-drivers-0.9.0/tests/test_dbi.c:2064:7:  [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(ptr_cinfo->initial_dbname, "template1");
data/libdbi-drivers-0.9.0/tests/test_dbi.c:2081:7:  [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(ptr_cinfo->initial_dbname, "master");
data/libdbi-drivers-0.9.0/tests/test_dbi.c:2087:7:  [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(ptr_cinfo->initial_dbname, "toolsdb");
data/libdbi-drivers-0.9.0/tests/test_dbi.c:2138:4:  [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 my_enc[32];
data/libdbi-drivers-0.9.0/tests/test_dbi.c:2139:4:  [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 database_path[1024];
data/libdbi-drivers-0.9.0/tests/test_dbi.c:2141:4:  [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 command[1024];
data/libdbi-drivers-0.9.0/tests/test_dbi.c:2269: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 dbpath[_POSIX_PATH_MAX];
data/libdbi-drivers-0.9.0/tests/test_dbi.c:2304: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 command[1024];
data/libdbi-drivers-0.9.0/tests/test_dbi.c:3629:4:  [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 smt[1024];
data/libdbi-drivers-0.9.0/tests/test_dbi.c:3636:7:  [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(smt, "INSERT INTO test0 VALUES (%d, %d)", i, i );
data/libdbi-drivers-0.9.0/drivers/db2/dbd_db2.c:239:68:  [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).
    errbuf = (char *) malloc(sizeof(char *) * (SQL_SQLSTATE_SIZE + strlen(message) + 1));
data/libdbi-drivers-0.9.0/drivers/db2/dbd_db2.c:313:53:  [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 (!strncmp(db2_encoding_hash[i], db_encoding, strlen(db2_encoding_hash[i]))) {
data/libdbi-drivers-0.9.0/drivers/db2/dbd_db2.c:356:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(versionstring, verInfoBuf, outlen);
data/libdbi-drivers-0.9.0/drivers/db2/dbd_db2.c:508:25:  [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).
    countquery = malloc(strlen(statement) + 25 +1);
data/libdbi-drivers-0.9.0/drivers/firebird/dbd_firebird.c:200:9:  [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).
			     strlen(firebird_encoding_hash[i]))) {
data/libdbi-drivers-0.9.0/drivers/firebird/dbd_firebird.c:262:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(versionstring, start, stop-start-1);
data/libdbi-drivers-0.9.0/drivers/firebird/dbd_firebird.c:297:18:  [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).
	size_t length = strlen(orig);
data/libdbi-drivers-0.9.0/drivers/firebird/dbd_firebird.c:299:2:  [1] (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 character.
	strcpy(dest, "'");
data/libdbi-drivers-0.9.0/drivers/firebird/dbd_firebird.c:310:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(dest, "'");
data/libdbi-drivers-0.9.0/drivers/firebird/dbd_firebird.c:332:2:  [1] (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 character.
	strcpy((char *)temp, "\'");
data/libdbi-drivers-0.9.0/drivers/firebird/dbd_firebird.c:339:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat((char *)temp, "'");
data/libdbi-drivers-0.9.0/drivers/firebird/utility.c:58: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).
	*dpb++ = strlen(username);
data/libdbi-drivers-0.9.0/drivers/firebird/utility.c:62: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).
	*dpb++ = strlen(password);
data/libdbi-drivers-0.9.0/drivers/firebird/utility.c:67: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).
	*dpb++ = strlen(fb_encoding);
data/libdbi-drivers-0.9.0/drivers/firebird/utility.c:97:37:  [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).
	isc_attach_database(status_vector, strlen(dbase), dbase, &db, dpb_length, dpb);
data/libdbi-drivers-0.9.0/drivers/firebird/utility.c:137:18:  [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 (db_fullpath[strlen(db_fullpath)-1] != *dirsep && db_fullpath[0] != '\0') 
data/libdbi-drivers-0.9.0/drivers/firebird/utility.c:149:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(version,vrs, MAXLEN-1);
data/libdbi-drivers-0.9.0/drivers/freetds/dbd_freetds.c:378:54:  [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 (!strncmp(freetds_encoding_hash[i], db_encoding, strlen(freetds_encoding_hash[i]))) {
data/libdbi-drivers-0.9.0/drivers/freetds/dbd_freetds.c:438:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		    strncpy(versionstring, start, len);
data/libdbi-drivers-0.9.0/drivers/freetds/dbd_freetds.c:533:5:  [1] (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 character.
    strcpy(dest, "\'");
data/libdbi-drivers-0.9.0/drivers/freetds/dbd_freetds.c:536:53:  [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).
    len = _dbd_freetds_escape_chars(dest + 1, orig, strlen(orig), escaped);
data/libdbi-drivers-0.9.0/drivers/freetds/dbd_freetds.c:538:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat(dest, "'");
data/libdbi-drivers-0.9.0/drivers/freetds/dbd_freetds.c:558:5:  [1] (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 character.
    strcpy((char *) temp, "\'");
data/libdbi-drivers-0.9.0/drivers/freetds/dbd_freetds.c:564:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat((char *) temp, "'");
data/libdbi-drivers-0.9.0/drivers/freetds/dbd_freetds.c:1058:7:  [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).
		    strlen(((dbi_row_t *) addr)->field_values[idx].d_string);
data/libdbi-drivers-0.9.0/drivers/ingres/dbd_ingres.c:1129:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(versionstring, dbi_result_get_string_idx(res,1), VERSIONSTRING_LENGTH);
data/libdbi-drivers-0.9.0/drivers/msql/dbd_msql.c:231:2:  [1] (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 character.
	strcpy(dest, "'");
data/libdbi-drivers-0.9.0/drivers/msql/dbd_msql.c:232:38:  [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).
	len = _dbd_escape_chars(dest, orig, strlen(orig), escaped);
data/libdbi-drivers-0.9.0/drivers/msql/dbd_msql.c:234:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(dest, "'");
data/libdbi-drivers-0.9.0/drivers/msql/dbd_msql.c:252:3:  [1] (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 character.
  strcpy((char *)temp, "\'");
data/libdbi-drivers-0.9.0/drivers/msql/dbd_msql.c:259:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
  strcat((char *)temp, "'");
data/libdbi-drivers-0.9.0/drivers/msql/dbd_msql.c:509:33:  [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).
			row->field_sizes[curfield] = strlen( raw );
data/libdbi-drivers-0.9.0/drivers/msql/dbd_msql.c:518:33:  [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).
			row->field_sizes[curfield] = strlen( raw );
data/libdbi-drivers-0.9.0/drivers/mysql/dbd_mysql.c:410:55:  [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 (!strncmp(mysql_encoding_hash[i], db_encoding, strlen(mysql_encoding_hash[i]))) {
data/libdbi-drivers-0.9.0/drivers/mysql/dbd_mysql.c:449:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(versionstring, versioninfo, VERSIONSTRING_LENGTH-1);
data/libdbi-drivers-0.9.0/drivers/mysql/dbd_mysql.c:499:2:  [1] (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 character.
	strcpy(dest, "'");
data/libdbi-drivers-0.9.0/drivers/mysql/dbd_mysql.c:500:42:  [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).
	len = mysql_escape_string(dest+1, orig, strlen(orig));	
data/libdbi-drivers-0.9.0/drivers/mysql/dbd_mysql.c:501:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(dest, "'");
data/libdbi-drivers-0.9.0/drivers/mysql/dbd_mysql.c:511:2:  [1] (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 character.
	strcpy(dest, "'");
data/libdbi-drivers-0.9.0/drivers/mysql/dbd_mysql.c:512:54:  [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).
	len = mysql_real_escape_string(mycon, dest+1, orig, strlen(orig));	
data/libdbi-drivers-0.9.0/drivers/mysql/dbd_mysql.c:513:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(dest, "'");
data/libdbi-drivers-0.9.0/drivers/mysql/dbd_mysql.c:530:3:  [1] (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 character.
  strcpy((char *)temp, "'");
data/libdbi-drivers-0.9.0/drivers/mysql/dbd_mysql.c:532:3:  [1] (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 character.
  strcpy((char *)(temp+len+1), "\'");
data/libdbi-drivers-0.9.0/drivers/oracle/dbd_oracle.c:143: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).
			       strlen(username),(CONST OraText*) password, strlen(password), sid, strlen(sid)))) {
data/libdbi-drivers-0.9.0/drivers/oracle/dbd_oracle.c:143:55:  [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).
			       strlen(username),(CONST OraText*) password, strlen(password), sid, strlen(sid)))) {
data/libdbi-drivers-0.9.0/drivers/oracle/dbd_oracle.c:143:78:  [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).
			       strlen(username),(CONST OraText*) password, strlen(password), sid, strlen(sid)))) {
data/libdbi-drivers-0.9.0/drivers/oracle/dbd_oracle.c:278:2:  [1] (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 character.
	strcpy(dest, "'");
data/libdbi-drivers-0.9.0/drivers/oracle/dbd_oracle.c:279:43:  [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).
	len = oracle_escape_string(dest+1, orig, strlen(orig));
data/libdbi-drivers-0.9.0/drivers/oracle/dbd_oracle.c:280:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(dest, "'");
data/libdbi-drivers-0.9.0/drivers/oracle/dbd_oracle.c:397:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy( col_name_dbi, (char *) col_name,  col_name_len);
data/libdbi-drivers-0.9.0/drivers/oracle/dbd_oracle.c:412:41:  [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).
	return dbd_query_null(conn, statement, strlen(statement));
data/libdbi-drivers-0.9.0/drivers/oracle/dbd_oracle.c:654:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy( col_name_dbi, (char *) col_name,  col_name_len);
data/libdbi-drivers-0.9.0/drivers/oracle/dbd_oracle.c:799:16:  [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).
		       (ub4) strlen(query), (ub4) OCI_NTV_SYNTAX, (ub4) OCI_DEFAULT);
data/libdbi-drivers-0.9.0/drivers/oracle/dbd_oracle.c:873:3:  [1] (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 character.
  strcpy(temp, "\'");
data/libdbi-drivers-0.9.0/drivers/oracle/dbd_oracle.c:880:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
  strcat(temp, "'");
data/libdbi-drivers-0.9.0/drivers/pgsql/dbd_pgsql.c:115:28:  [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).
        size_t orig_size = strlen( value );                          \
data/libdbi-drivers-0.9.0/drivers/pgsql/dbd_pgsql.c:136:15:  [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(base36);
data/libdbi-drivers-0.9.0/drivers/pgsql/dbd_pgsql.c:457:2:  [1] (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 character.
	strcpy(dest, "'");
data/libdbi-drivers-0.9.0/drivers/pgsql/dbd_pgsql.c:458:37:  [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).
	len = PQescapeString(dest+1, orig, strlen(orig));
data/libdbi-drivers-0.9.0/drivers/pgsql/dbd_pgsql.c:459:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(dest, "'");
data/libdbi-drivers-0.9.0/drivers/pgsql/dbd_pgsql.c:484:3:  [1] (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 character.
  strcpy((char *)quoted_temp, "'");
data/libdbi-drivers-0.9.0/drivers/pgsql/dbd_pgsql.c:486:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
  strcat((char *)quoted_temp, "'");
data/libdbi-drivers-0.9.0/drivers/sqlite/dbd_sqlite.c:178: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).
  db_fullpath = malloc(strlen(dbname)+strlen(dbdir)+2); /* leave room
data/libdbi-drivers-0.9.0/drivers/sqlite/dbd_sqlite.c:178:39:  [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).
  db_fullpath = malloc(strlen(dbname)+strlen(dbdir)+2); /* leave room
data/libdbi-drivers-0.9.0/drivers/sqlite/dbd_sqlite.c:191: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).
  if (db_fullpath[strlen(db_fullpath)-1] != *dirsep) {
data/libdbi-drivers-0.9.0/drivers/sqlite/dbd_sqlite.c:321:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(versionstring, versioninfo, VERSIONSTRING_LENGTH-1);
data/libdbi-drivers-0.9.0/drivers/sqlite/dbd_sqlite.c:422:56:  [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 (wild_case_compare(entry->d_name, &entry->d_name[strlen(entry->d_name)], pattern, &pattern[strlen(pattern)], '\\') == 0) {
data/libdbi-drivers-0.9.0/drivers/sqlite/dbd_sqlite.c:422:98:  [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 (wild_case_compare(entry->d_name, &entry->d_name[strlen(entry->d_name)], pattern, &pattern[strlen(pattern)], '\\') == 0) {
data/libdbi-drivers-0.9.0/drivers/sqlite/dbd_sqlite.c:525:3:  [1] (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 character.
  strcpy(dest, "'");
data/libdbi-drivers-0.9.0/drivers/sqlite/dbd_sqlite.c:526:44:  [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).
  len = sqlite_escape_string(dest+1, orig, strlen(orig));	
data/libdbi-drivers-0.9.0/drivers/sqlite/dbd_sqlite.c:527:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
  strcat(dest, "'");
data/libdbi-drivers-0.9.0/drivers/sqlite/dbd_sqlite.c:544:3:  [1] (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 character.
  strcpy((char *)temp, "\'");
data/libdbi-drivers-0.9.0/drivers/sqlite/dbd_sqlite.c:551:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
  strcat((char *)temp, "'");
data/libdbi-drivers-0.9.0/drivers/sqlite/dbd_sqlite.c:817:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(curr_table, table, item-table);
data/libdbi-drivers-0.9.0/drivers/sqlite/dbd_sqlite.c:837:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(curr_table, field, item-field);
data/libdbi-drivers-0.9.0/drivers/sqlite/dbd_sqlite.c:1278:36:  [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).
      row->field_sizes[curfield] = strlen(raw);
data/libdbi-drivers-0.9.0/drivers/sqlite/dbd_sqlite.c:1291:36:  [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).
      row->field_sizes[curfield] = strlen(raw);
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:192: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).
  db_fullpath = malloc(strlen(dbname)+strlen(dbdir)+2); /* leave room
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:192:39:  [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).
  db_fullpath = malloc(strlen(dbname)+strlen(dbdir)+2); /* leave room
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:206:21:  [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 (db_fullpath[strlen(db_fullpath)-1] != *dirsep) {
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:364:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(versionstring, versioninfo, VERSIONSTRING_LENGTH-1);
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:469:56:  [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 (wild_case_compare(entry->d_name, &entry->d_name[strlen(entry->d_name)], pattern, &pattern[strlen(pattern)], '\\') == 0) {
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:469:98:  [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 (wild_case_compare(entry->d_name, &entry->d_name[strlen(entry->d_name)], pattern, &pattern[strlen(pattern)], '\\') == 0) {
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:568:3:  [1] (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 character.
  strcpy(dest, "'");
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:569:45:  [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).
  len = sqlite3_escape_string(dest+1, orig, strlen(orig));	
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:570:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
  strcat(dest, "'");
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:587:3:  [1] (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 character.
  strcpy((char *)temp, "\'");
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:594:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
  strcat((char *)temp, "'");
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:844:5:  [1] (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 character.
    strcpy(curr_table, "");
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:848:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(curr_table, field, item-field);
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:1118:8:  [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 ( strlen(curr_table) > 0 ) {
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:1290:10:  [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).
   len = strlen(needle);
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:1325: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).
  item += strlen("from");
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:1346:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(substatement,start+1,item-(start+1));
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:1360:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(word,start,item-start);
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:1362:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(word_lower,start,item-start);
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:1455:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		  strncpy(word_lower,start,item-start);
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:1737:36:  [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).
      row->field_sizes[curfield] = strlen(raw);
data/libdbi-drivers-0.9.0/drivers/sqlite3/dbd_sqlite3.c:1750:36:  [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).
      row->field_sizes[curfield] = strlen(raw);
data/libdbi-drivers-0.9.0/tests/cgreen/doc/tutorial_test/stream.c:4:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
char *read_paragraph(int (*read)(void *), void *stream) {
data/libdbi-drivers-0.9.0/tests/cgreen/doc/tutorial_test/stream.c:8:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((ch = (*read)(stream)) != EOF) {
data/libdbi-drivers-0.9.0/tests/cgreen/doc/tutorial_test/stream.c:22:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void by_paragraph(int (*read)(void *), void *in, void (*write)(void *, char *), void *out) {
data/libdbi-drivers-0.9.0/tests/cgreen/doc/tutorial_test/stream.c:24:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        char *line = read_paragraph(read, in);
data/libdbi-drivers-0.9.0/tests/cgreen/doc/tutorial_test/stream.c:25:32:  [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 ((line == NULL) || (strlen(line) == 0)) {
data/libdbi-drivers-0.9.0/tests/cgreen/doc/tutorial_test/stream_test.c:4:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
char *read_paragraph(int (*read)(void *), void *stream);
data/libdbi-drivers-0.9.0/tests/cgreen/doc/tutorial_test/stream_test.c:5:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void by_paragraph(int (*read)(void *), void *in, void (*write)(void *, char *), void *out);
data/libdbi-drivers-0.9.0/tests/cgreen/doc/tutorial_test/strlen_test.c:5:18:  [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 length = strlen("Hello\0");
data/libdbi-drivers-0.9.0/tests/cgreen/doc/tutorial_test/strlen_test.c:10:18:  [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 length = strlen("\0");
data/libdbi-drivers-0.9.0/tests/cgreen/doc/tutorial_test/words.c:4:32:  [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 i, count = 1, length = strlen(sentence);
data/libdbi-drivers-0.9.0/tests/cgreen/doc/tutorial_test/words.c:20:23:  [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).
        word = word + strlen(word) + 1;
data/libdbi-drivers-0.9.0/tests/cgreen/doc/tutorial_test/words_test.c:15:64:  [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 comparison = memcmp("Birds\0of\0a\0feather", sentence, strlen(sentence));
data/libdbi-drivers-0.9.0/tests/cgreen/src/cdash_reporter.c:267:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(strtime, s, i+1);
data/libdbi-drivers-0.9.0/tests/cgreen/src/messaging.c:66:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t received = read(queues[messaging].readpipe, message, sizeof(CgreenMessage));
data/libdbi-drivers-0.9.0/tests/cgreen/src/parameters.c:15: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).
    if ((parameters == NULL) || (strlen(parameters) == 0)) {
data/libdbi-drivers-0.9.0/tests/cgreen/src/parameters.c:22:53:  [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).
    char *parameters_end = parameters_to_tokenize + strlen(parameters_to_tokenize);
data/libdbi-drivers-0.9.0/tests/cgreen/src/parameters.c:25:29:  [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).
    while (token < tokens + strlen(parameters)) {
data/libdbi-drivers-0.9.0/tests/cgreen/src/parameters.c:36: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).
    for (i = 0, length = strlen(list); i < length; i++) {
data/libdbi-drivers-0.9.0/tests/cgreen/src/parameters.c:52:20:  [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).
    return token + strlen(token);
data/libdbi-drivers-0.9.0/tests/cgreen/src/parameters.c:57:36:  [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).
        memmove(token, token + 11, strlen(token) - 11 + 1);
data/libdbi-drivers-0.9.0/tests/cgreen/src/parameters.c:65:35:  [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).
        memmove(token, token + 2, strlen(token) - 2 + 1);
data/libdbi-drivers-0.9.0/tests/cgreen/tests/cute_reporter_tests.c:16:27:  [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).
	output = realloc(output, strlen(output)+strlen(buffer)+1);
data/libdbi-drivers-0.9.0/tests/cgreen/tests/cute_reporter_tests.c:16:42:  [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).
	output = realloc(output, strlen(output)+strlen(buffer)+1);
data/libdbi-drivers-0.9.0/tests/cgreen/tests/cute_reporter_tests.c:29:9:  [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).
	return strlen(output);
data/libdbi-drivers-0.9.0/tests/cgreen/tests/cute_reporter_tests.c:34:6:  [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 (strlen(whole) >= strlen(part))
data/libdbi-drivers-0.9.0/tests/cgreen/tests/cute_reporter_tests.c:34:23:  [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 (strlen(whole) >= strlen(part))
data/libdbi-drivers-0.9.0/tests/cgreen/tests/cute_reporter_tests.c:35:23:  [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).
		for (pos = 0; pos < strlen(whole)-strlen(part); pos++) {
data/libdbi-drivers-0.9.0/tests/cgreen/tests/cute_reporter_tests.c:35:37:  [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).
		for (pos = 0; pos < strlen(whole)-strlen(part); pos++) {
data/libdbi-drivers-0.9.0/tests/cgreen/tests/cute_reporter_tests.c:36:35:  [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 (strncmp(&whole[pos], part, strlen(part)) == 0)
data/libdbi-drivers-0.9.0/tests/cgreen/tests/cute_reporter_tests.c:58:18:  [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_equal(strlen(output), 0);
data/libdbi-drivers-0.9.0/tests/test_dbi.c:1007:7:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
      strcat(query_string, ",");
data/libdbi-drivers-0.9.0/tests/test_dbi.c:1017: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).
   query_string[strlen(query_string)-1] = '\0'; /* remove trailing comma */
data/libdbi-drivers-0.9.0/tests/test_dbi.c:1109: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).
   for ( i = 0; strlen(cinfo.createsubschema[i]) != 0 ; i++ ) {
data/libdbi-drivers-0.9.0/tests/test_dbi.c:1153: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).
     for ( i = 0; strlen(cinfo.dropsubschema[i]) != 0 ; i++ ) {
data/libdbi-drivers-0.9.0/tests/test_dbi.c:1202: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).
     for ( i = 0; strlen(cinfo.dropsubschema[i]) != 0 ; i++ ) {
data/libdbi-drivers-0.9.0/tests/test_dbi.c:1851:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(ptr_cinfo->driverdir, DBI_DRIVER_DIR, 255), (ptr_cinfo->driverdir)[255] = '\0';
data/libdbi-drivers-0.9.0/tests/test_dbi.c:1854:30:  [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).
      (ptr_cinfo->driverdir)[strlen(ptr_cinfo->driverdir)-1] = '\0';
data/libdbi-drivers-0.9.0/tests/test_dbi.c:1883:28:  [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).
   (ptr_cinfo->drivername)[strlen(ptr_cinfo->drivername)-1] = '\0';
data/libdbi-drivers-0.9.0/tests/test_dbi.c:1896:32:  [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).
         (ptr_cinfo->username)[strlen(ptr_cinfo->username)-1] = '\0';
data/libdbi-drivers-0.9.0/tests/test_dbi.c:1905:32:  [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).
         (ptr_cinfo->password)[strlen(ptr_cinfo->password)-1] = '\0';
data/libdbi-drivers-0.9.0/tests/test_dbi.c:1927:27:  [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).
       (ptr_cinfo->dbdir)[strlen(ptr_cinfo->dbdir)-1] = '\0';
data/libdbi-drivers-0.9.0/tests/test_dbi.c:1956:32:  [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).
         (ptr_cinfo->hostname)[strlen(ptr_cinfo->hostname)-1] = '\0';
data/libdbi-drivers-0.9.0/tests/test_dbi.c:1968:28:  [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).
      (ptr_cinfo->version)[strlen(ptr_cinfo->version)-1] = '\0';
data/libdbi-drivers-0.9.0/tests/test_dbi.c:1977:27:  [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).
      (ptr_cinfo->dbname)[strlen(ptr_cinfo->dbname)-1] = '\0';
data/libdbi-drivers-0.9.0/tests/test_dbi.c:1986:29:  [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).
      (ptr_cinfo->encoding)[strlen(ptr_cinfo->encoding)-1] = '\0';
data/libdbi-drivers-0.9.0/tests/test_dbi.c:2028:56:  [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 (!strcmp(ptr_cinfo->drivername, "freetds") && strlen(ptr_cinfo->version)){
data/libdbi-drivers-0.9.0/tests/test_dbi.c:2285:18:  [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 (dbpath[strlen(dbpath)-1] != '/') {
data/libdbi-drivers-0.9.0/tests/test_dbi.c:2286:10:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
         strcat(dbpath, "/");
data/libdbi-drivers-0.9.0/tests/test_dbi.c:2611:70:  [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).
         res = custom_function_copy(myconn->connection, query_data1, strlen(query_data1));
data/libdbi-drivers-0.9.0/tests/test_dbi.c:2620:70:  [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).
         res = custom_function_copy(myconn->connection, query_data2, strlen(query_data2));

ANALYSIS SUMMARY:

Hits = 320
Lines analyzed = 24689 in approximately 1.05 seconds (23525 lines/second)
Physical Source Lines of Code (SLOC) = 19034
Hits@level = [0] 184 [1] 149 [2] 127 [3]   2 [4]  42 [5]   0
Hits@level+ = [0+] 504 [1+] 320 [2+] 171 [3+]  44 [4+]  42 [5+]   0
Hits/KSLOC@level+ = [0+] 26.4789 [1+] 16.812 [2+] 8.98392 [3+] 2.31165 [4+] 2.20658 [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.