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/mdbtools-0.9.0~beta5/include/mdbfakeglib.h
Examining data/mdbtools-0.9.0~beta5/include/mdbprivate.h
Examining data/mdbtools-0.9.0~beta5/include/mdbsql.h
Examining data/mdbtools-0.9.0~beta5/include/mdbtools.h
Examining data/mdbtools-0.9.0~beta5/src/extras/mdb-dump.c
Examining data/mdbtools-0.9.0~beta5/src/extras/mdbsupport.c
Examining data/mdbtools-0.9.0~beta5/src/extras/mdbsupport.h
Examining data/mdbtools-0.9.0~beta5/src/fuzz/fuzz_mdb.c
Examining data/mdbtools-0.9.0~beta5/src/libmdb/backend.c
Examining data/mdbtools-0.9.0~beta5/src/libmdb/catalog.c
Examining data/mdbtools-0.9.0~beta5/src/libmdb/data.c
Examining data/mdbtools-0.9.0~beta5/src/libmdb/dump.c
Examining data/mdbtools-0.9.0~beta5/src/libmdb/fakeglib.c
Examining data/mdbtools-0.9.0~beta5/src/libmdb/file.c
Examining data/mdbtools-0.9.0~beta5/src/libmdb/iconv.c
Examining data/mdbtools-0.9.0~beta5/src/libmdb/index.c
Examining data/mdbtools-0.9.0~beta5/src/libmdb/like.c
Examining data/mdbtools-0.9.0~beta5/src/libmdb/map.c
Examining data/mdbtools-0.9.0~beta5/src/libmdb/mem.c
Examining data/mdbtools-0.9.0~beta5/src/libmdb/money.c
Examining data/mdbtools-0.9.0~beta5/src/libmdb/options.c
Examining data/mdbtools-0.9.0~beta5/src/libmdb/props.c
Examining data/mdbtools-0.9.0~beta5/src/libmdb/sargs.c
Examining data/mdbtools-0.9.0~beta5/src/libmdb/stats.c
Examining data/mdbtools-0.9.0~beta5/src/libmdb/table.c
Examining data/mdbtools-0.9.0~beta5/src/libmdb/version.c
Examining data/mdbtools-0.9.0~beta5/src/libmdb/worktable.c
Examining data/mdbtools-0.9.0~beta5/src/libmdb/write.c
Examining data/mdbtools-0.9.0~beta5/src/odbc/connectparams.c
Examining data/mdbtools-0.9.0~beta5/src/odbc/connectparams.h
Examining data/mdbtools-0.9.0~beta5/src/odbc/mdbodbc.h
Examining data/mdbtools-0.9.0~beta5/src/odbc/odbc.c
Examining data/mdbtools-0.9.0~beta5/src/odbc/unittest.c
Examining data/mdbtools-0.9.0~beta5/src/sql/mdbsql.c
Examining data/mdbtools-0.9.0~beta5/src/util/base64.h
Examining data/mdbtools-0.9.0~beta5/src/util/mdb-array.c
Examining data/mdbtools-0.9.0~beta5/src/util/mdb-count.c
Examining data/mdbtools-0.9.0~beta5/src/util/mdb-export.c
Examining data/mdbtools-0.9.0~beta5/src/util/mdb-header.c
Examining data/mdbtools-0.9.0~beta5/src/util/mdb-import.c
Examining data/mdbtools-0.9.0~beta5/src/util/mdb-json.c
Examining data/mdbtools-0.9.0~beta5/src/util/mdb-parsecsv.c
Examining data/mdbtools-0.9.0~beta5/src/util/mdb-prop.c
Examining data/mdbtools-0.9.0~beta5/src/util/mdb-queries.c
Examining data/mdbtools-0.9.0~beta5/src/util/mdb-schema.c
Examining data/mdbtools-0.9.0~beta5/src/util/mdb-sql.c
Examining data/mdbtools-0.9.0~beta5/src/util/mdb-tables.c
Examining data/mdbtools-0.9.0~beta5/src/util/mdb-ver.c
Examining data/mdbtools-0.9.0~beta5/src/util/prcat.c
Examining data/mdbtools-0.9.0~beta5/src/util/prdata.c
Examining data/mdbtools-0.9.0~beta5/src/util/prdump.c
Examining data/mdbtools-0.9.0~beta5/src/util/prfreemap.c
Examining data/mdbtools-0.9.0~beta5/src/util/prindex.c
Examining data/mdbtools-0.9.0~beta5/src/util/prkkd.c
Examining data/mdbtools-0.9.0~beta5/src/util/prole.c
Examining data/mdbtools-0.9.0~beta5/src/util/prtable.c
Examining data/mdbtools-0.9.0~beta5/src/util/sargtest.c
Examining data/mdbtools-0.9.0~beta5/src/util/updrow.c

FINAL RESULTS:

data/mdbtools-0.9.0~beta5/src/libmdb/backend.c:501: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(index_name, idx->name);
data/mdbtools-0.9.0~beta5/src/libmdb/backend.c:506:4:  [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(index_name, table->name);
data/mdbtools-0.9.0~beta5/src/libmdb/backend.c:511: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(index_name, idx->name);
data/mdbtools-0.9.0~beta5/src/libmdb/backend.c:756:3:  [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.
		fprintf (outfile, mdb->default_backend->drop_statement, quoted_table_name);
data/mdbtools-0.9.0~beta5/src/libmdb/backend.c:791:5:  [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.
				fprintf(outfile,
data/mdbtools-0.9.0~beta5/src/libmdb/backend.c:858:4:  [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.
			fprintf(outfile, mdb->default_backend->per_table_comment_statement, comment);
data/mdbtools-0.9.0~beta5/src/libmdb/backend.c:876:6:  [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.
					fprintf(outfile,
data/mdbtools-0.9.0~beta5/src/libmdb/backend.c:885:5:  [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.
				fprintf(outfile,
data/mdbtools-0.9.0~beta5/src/libmdb/backend.c:900:4:  [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.
			fprintf(outfile,
data/mdbtools-0.9.0~beta5/src/libmdb/backend.c:943:3:  [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.
		fprintf(outfile, mdb->default_backend->charset_statement, charset);
data/mdbtools-0.9.0~beta5/src/libmdb/catalog.c:128:4:  [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(entry->object_name, obj_name);
data/mdbtools-0.9.0~beta5/src/libmdb/data.c:219: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(col->bind_ptr,
data/mdbtools-0.9.0~beta5/src/libmdb/fakeglib.c:96:17:  [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).
    char *pos = strcpy(ret, first) + strlen(first);
data/mdbtools-0.9.0~beta5/src/libmdb/fakeglib.c:100:15:  [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).
        pos = strcpy(pos, arg) + strlen(arg);
data/mdbtools-0.9.0~beta5/src/libmdb/fakeglib.c:171:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, format, argp);
data/mdbtools-0.9.0~beta5/src/libmdb/options.c:41:6:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    	vfprintf (stderr,fmt, ap);
data/mdbtools-0.9.0~beta5/src/libmdb/table.c:37:2:  [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(table->name, entry->object_name);
data/mdbtools-0.9.0~beta5/src/libmdb/table.c:381:6:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
					printf("%6" G_GUINT32_FORMAT, pgnum);
data/mdbtools-0.9.0~beta5/src/libmdb/worktable.c:30:2:  [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(tcol->name, col_name);
data/mdbtools-0.9.0~beta5/src/libmdb/worktable.c:60:2:  [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(entry->object_name, name);
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:147:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(dbc->lastError, sizeof(dbc->lastError), format, argp);
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:155:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(stmt->lastError, sizeof(stmt->lastError), format, argp);
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:931:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy((char*)szSqlState, state);
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:2266:2:  [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(stmt->query,tmp);
data/mdbtools-0.9.0~beta5/src/sql/mdbsql.c:58:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(sql->error_msg, sizeof(sql->error_msg), fmt, ap);
data/mdbtools-0.9.0~beta5/src/sql/mdbsql.c:719: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(tmpstr, mdb_get_colbacktype_string(col));
data/mdbtools-0.9.0~beta5/src/util/mdb-parsecsv.c:62: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 (txt_filename, argv [1]);
data/mdbtools-0.9.0~beta5/src/util/mdb-parsecsv.c:74: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 (c_filename, argv [1]);
data/mdbtools-0.9.0~beta5/src/util/mdb-queries.c:82: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(delimiter, optarg);
data/mdbtools-0.9.0~beta5/src/util/mdb-queries.c:159:10:  [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(sql_predicate, name1);
data/mdbtools-0.9.0~beta5/src/util/mdb-queries.c:171: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(sql_tables,name1);
data/mdbtools-0.9.0~beta5/src/util/mdb-queries.c:174:10:  [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(sql_tables,name1);
data/mdbtools-0.9.0~beta5/src/util/mdb-queries.c:179: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(sql_columns,expression);
data/mdbtools-0.9.0~beta5/src/util/mdb-queries.c:182:10:  [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(sql_columns,expression);
data/mdbtools-0.9.0~beta5/src/util/mdb-queries.c:190:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
								strcpy(sql_where,expression);
data/mdbtools-0.9.0~beta5/src/util/mdb-queries.c:195:10:  [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(sql_sorting,expression);
data/mdbtools-0.9.0~beta5/src/util/mdb-sql.c:82:2:  [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(buf,line);
data/mdbtools-0.9.0~beta5/src/util/mdb-sql.c:474:4:  [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(mybuf,s);
data/mdbtools-0.9.0~beta5/src/util/mdb-tables.c:50: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(ret, types[i].name);
data/mdbtools-0.9.0~beta5/src/util/prole.c:76: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(sarg.value.s, sargval);
data/mdbtools-0.9.0~beta5/src/util/updrow.c:60: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(data,colval);
data/mdbtools-0.9.0~beta5/src/libmdb/fakeglib.c:475:17:  [3] (buffer) getopt_long:
  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 ((c = getopt_long(*argc, *argv, short_opts, long_opts, &longindex)) != -1) {
data/mdbtools-0.9.0~beta5/src/libmdb/file.c:142:22:  [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.
	mdbpath = (gchar *) getenv("MDBPATH");
data/mdbtools-0.9.0~beta5/src/libmdb/iconv.c:193:27:  [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.
	const char *iconv_code = getenv("MDBICONV");
data/mdbtools-0.9.0~beta5/src/libmdb/iconv.c:209: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 (!(iconv_code=getenv("MDBICONV"))) {
data/mdbtools-0.9.0~beta5/src/libmdb/iconv.c:223:25:  [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 (!(jet3_iconv_code=getenv("MDB_JET3_CHARSET"))) {
data/mdbtools-0.9.0~beta5/src/libmdb/options.c:54:23:  [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 (!optset && (s=getenv("MDBOPTS"))) {
data/mdbtools-0.9.0~beta5/src/util/mdb-queries.c:72:14:  [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 ((opt=getopt(argc, argv, "L1d:"))!=-1) {
data/mdbtools-0.9.0~beta5/src/util/mdb-sql.c:333:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *home = getenv("HOME");
data/mdbtools-0.9.0~beta5/include/mdbsql.h: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 error_msg[1024];
data/mdbtools-0.9.0~beta5/include/mdbtools.h:237: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_passwd[14];
data/mdbtools-0.9.0~beta5/include/mdbtools.h:273: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.
	unsigned char pg_buf[MDB_PGSIZE];
data/mdbtools-0.9.0~beta5/include/mdbtools.h:274: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.
	unsigned char alt_pg_buf[MDB_PGSIZE];
data/mdbtools-0.9.0~beta5/include/mdbtools.h:277:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char date_fmt[64];
data/mdbtools-0.9.0~beta5/include/mdbtools.h:278: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 shortdate_fmt[64];
data/mdbtools-0.9.0~beta5/include/mdbtools.h:288: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        *relationships_values[5];
data/mdbtools-0.9.0~beta5/include/mdbtools.h:299: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           object_name[MDB_MAX_OBJ_NAME+1];
data/mdbtools-0.9.0~beta5/include/mdbtools.h:315: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[256];
data/mdbtools-0.9.0~beta5/include/mdbtools.h:321: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		name[MDB_MAX_OBJ_NAME+1];
data/mdbtools-0.9.0~beta5/include/mdbtools.h:371: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.
	unsigned char cache_value[256];
data/mdbtools-0.9.0~beta5/include/mdbtools.h:387: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	name[MDB_MAX_OBJ_NAME+1];
data/mdbtools-0.9.0~beta5/include/mdbtools.h:423: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		name[MDB_MAX_OBJ_NAME+1];
data/mdbtools-0.9.0~beta5/include/mdbtools.h:429: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.
	unsigned char	key_col_order[MDB_MAX_IDX_COLS];
data/mdbtools-0.9.0~beta5/include/mdbtools.h:435: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		name[MDB_MAX_OBJ_NAME+1];
data/mdbtools-0.9.0~beta5/src/extras/mdb-dump.c:20:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char        data[17];
data/mdbtools-0.9.0~beta5/src/extras/mdb-dump.c:24: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                 addr[10];
data/mdbtools-0.9.0~beta5/src/extras/mdb-dump.c:42:11:  [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).
		   pg = atol(argv[2]);
data/mdbtools-0.9.0~beta5/src/extras/mdb-dump.c:46:14:  [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 ((in = fopen(argv[1],"r"))==NULL) {
data/mdbtools-0.9.0~beta5/src/extras/mdb-dump.c:63: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(addr, "%06lx", i);
data/mdbtools-0.9.0~beta5/src/libmdb/backend.c:182:4:  [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(pr, "\\%03o", c);
data/mdbtools-0.9.0~beta5/src/libmdb/backend.c:277:19:  [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 __thread char buf[16];
data/mdbtools-0.9.0~beta5/src/libmdb/backend.c:499:5:  [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(index_name, "_pkey");
data/mdbtools-0.9.0~beta5/src/libmdb/backend.c:508:5:  [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(index_name, "_pkey");
data/mdbtools-0.9.0~beta5/src/libmdb/backend.c:512:5:  [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(index_name, "_idx");
data/mdbtools-0.9.0~beta5/src/libmdb/backend.c:694:10:  [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).
	grbit = atoi(bound[4]);
data/mdbtools-0.9.0~beta5/src/libmdb/backend.c:821: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(output_default, defval+1, def_len-2);
data/mdbtools-0.9.0~beta5/src/libmdb/catalog.c:70: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 obj_id[256];
data/mdbtools-0.9.0~beta5/src/libmdb/catalog.c:71: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 obj_name[MDB_MAX_OBJ_NAME];
data/mdbtools-0.9.0~beta5/src/libmdb/catalog.c:72: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 obj_type[256];
data/mdbtools-0.9.0~beta5/src/libmdb/catalog.c:73: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 obj_flags[256];
data/mdbtools-0.9.0~beta5/src/libmdb/catalog.c:74: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 obj_props[MDB_BIND_SIZE];
data/mdbtools-0.9.0~beta5/src/libmdb/catalog.c:90:2:  [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(msysobj.object_name, "MSysObjects");
data/mdbtools-0.9.0~beta5/src/libmdb/catalog.c:122:10:  [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).
		type = atoi(obj_type);
data/mdbtools-0.9.0~beta5/src/libmdb/catalog.c:130:22:  [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).
			entry->table_pg = atol(obj_id) & 0x00FFFFFF;
data/mdbtools-0.9.0~beta5/src/libmdb/catalog.c:131:19:  [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).
			entry->flags = atol(obj_flags);
data/mdbtools-0.9.0~beta5/src/libmdb/data.c:245: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(col->bind_ptr, mdb->pg_buf + start, MDB_MEMO_OVERHEAD);
data/mdbtools-0.9.0~beta5/src/libmdb/data.c:458: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(mdb->pg_buf,
data/mdbtools-0.9.0~beta5/src/libmdb/data.c:492: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 *bound_values[MDB_MAX_COLS]; 
data/mdbtools-0.9.0~beta5/src/libmdb/data.c:526:3:  [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(&text[(i-start)*2],"%02x", mdb->pg_buf[i]);
data/mdbtools-0.9.0~beta5/src/libmdb/data.c:569: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(col->bind_ptr, (char*)buf + row_start + 4, len - 4);
data/mdbtools-0.9.0~beta5/src/libmdb/data.c:594: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(col->bind_ptr, &mdb->pg_buf[col->cur_value_start +
data/mdbtools-0.9.0~beta5/src/libmdb/data.c:610: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(col->bind_ptr, (char*)buf + row_start, len);
data/mdbtools-0.9.0~beta5/src/libmdb/data.c:628: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(col->bind_ptr, (char*)buf + row_start + 4, len - 4);
data/mdbtools-0.9.0~beta5/src/libmdb/data.c:647: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 ole_ptr[MDB_MEMO_OVERHEAD];
data/mdbtools-0.9.0~beta5/src/libmdb/data.c:652:2:  [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(ole_ptr, col->bind_ptr, MDB_MEMO_OVERHEAD);
data/mdbtools-0.9.0~beta5/src/libmdb/data.c:655:2:  [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(result, col->bind_ptr, len);
data/mdbtools-0.9.0~beta5/src/libmdb/data.c:662: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(result + pos, col->bind_ptr, len);
data/mdbtools-0.9.0~beta5/src/libmdb/data.c:690:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		if (dest) memcpy(dest, pg_buf + start + MDB_MEMO_OVERHEAD, len);
data/mdbtools-0.9.0~beta5/src/libmdb/data.c:704: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(dest, buf + row_start, len);
data/mdbtools-0.9.0~beta5/src/libmdb/data.c:722: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(dest+cur, buf + row_start + 4, len - 4);
data/mdbtools-0.9.0~beta5/src/libmdb/data.c:807: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(tmp + tmpoff, (char*)buf + row_start + 4, len - 4);
data/mdbtools-0.9.0~beta5/src/libmdb/data.c:1005: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(text, (char*)buf+start, size);
data/mdbtools-0.9.0~beta5/src/libmdb/dump.c:26: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 asc[20];
data/mdbtools-0.9.0~beta5/src/libmdb/dump.c:33:37:  [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.
		unsigned int c = ((const unsigned char *)(buf))[start+j];
data/mdbtools-0.9.0~beta5/src/libmdb/fakeglib.c:36: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(dst, src, len);
data/mdbtools-0.9.0~beta5/src/libmdb/fakeglib.c:62:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(chunk, haystack, chunk_len);
data/mdbtools-0.9.0~beta5/src/libmdb/file.c:54: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.
	unsigned char state[256];
data/mdbtools-0.9.0~beta5/src/libmdb/file.c:294: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 ((file = fopen(filepath, mode)) == NULL) {
data/mdbtools-0.9.0~beta5/src/libmdb/file.c:434: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 tmpbuf[MDB_PGSIZE];
data/mdbtools-0.9.0~beta5/src/libmdb/file.c:436:2:  [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(tmpbuf,mdb->pg_buf, MDB_PGSIZE);
data/mdbtools-0.9.0~beta5/src/libmdb/file.c:437:2:  [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(mdb->pg_buf,mdb->alt_pg_buf, MDB_PGSIZE);
data/mdbtools-0.9.0~beta5/src/libmdb/file.c:438:2:  [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(mdb->alt_pg_buf,tmpbuf,MDB_PGSIZE);
data/mdbtools-0.9.0~beta5/src/libmdb/file.c:444:20:  [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.
	return ((unsigned char *)(buf))[offset];
data/mdbtools-0.9.0~beta5/src/libmdb/file.c:456:2:  [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(&l, (char*)buf + offset, 2);
data/mdbtools-0.9.0~beta5/src/libmdb/file.c:469:2:  [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(&l, (char*)buf + offset, 4);
data/mdbtools-0.9.0~beta5/src/libmdb/file.c:475:2:  [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(&l, (char*)buf + offset, 4);
data/mdbtools-0.9.0~beta5/src/libmdb/file.c:488:2:  [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(&f, (char*)buf + offset, 4);
data/mdbtools-0.9.0~beta5/src/libmdb/file.c:502:2:  [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(&d, (char*)buf + offset, 8);
data/mdbtools-0.9.0~beta5/src/libmdb/iconv.c:180: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(dest, tmp, tptr);
data/mdbtools-0.9.0~beta5/src/libmdb/index.c:410:33:  [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.
			unsigned char c = ((unsigned char *)(text))[k];
data/mdbtools-0.9.0~beta5/src/libmdb/index.c:461: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 tmpbuf[256];
data/mdbtools-0.9.0~beta5/src/libmdb/index.c:863: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(&ipg->cache_value[compress_bytes-1], &mdb->pg_buf[ipg->offset], ipg->len);
data/mdbtools-0.9.0~beta5/src/libmdb/index.c:867: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(ipg->cache_value, &mdb->pg_buf[idx_start], idx_sz);
data/mdbtools-0.9.0~beta5/src/libmdb/money.c:45: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.
	unsigned char multiplier[MAX_MONEY_PRECISION] = { 1 };
data/mdbtools-0.9.0~beta5/src/libmdb/money.c:46: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.
	unsigned char temp[MAX_MONEY_PRECISION];
data/mdbtools-0.9.0~beta5/src/libmdb/money.c:47: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.
	unsigned char product[MAX_MONEY_PRECISION] = { 0 };
data/mdbtools-0.9.0~beta5/src/libmdb/money.c:48: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.
	unsigned char bytes[num_bytes];
data/mdbtools-0.9.0~beta5/src/libmdb/money.c:50:2:  [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(bytes, mdb->pg_buf + start, num_bytes);
data/mdbtools-0.9.0~beta5/src/libmdb/money.c:69:16:  [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(temp, multiplier, sizeof(multiplier));
data/mdbtools-0.9.0~beta5/src/libmdb/money.c:81: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.
       unsigned char multiplier[MAX_NUMERIC_PRECISION] = { 1 };
data/mdbtools-0.9.0~beta5/src/libmdb/money.c:82: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.
       unsigned char temp[MAX_NUMERIC_PRECISION];
data/mdbtools-0.9.0~beta5/src/libmdb/money.c:83: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.
       unsigned char product[MAX_NUMERIC_PRECISION] = { 0 };
data/mdbtools-0.9.0~beta5/src/libmdb/money.c:84: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.
       unsigned char bytes[num_bytes];
data/mdbtools-0.9.0~beta5/src/libmdb/money.c:86:8:  [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(bytes, mdb->pg_buf + start + 1, num_bytes);
data/mdbtools-0.9.0~beta5/src/libmdb/money.c:95:16:  [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(temp, multiplier, sizeof(multiplier));
data/mdbtools-0.9.0~beta5/src/libmdb/money.c:104: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.
	unsigned char number[3] = { num % 10, (num/10) % 10, (num/100) % 10 };
data/mdbtools-0.9.0~beta5/src/libmdb/sargs.c:102: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[16];
data/mdbtools-0.9.0~beta5/src/libmdb/sargs.c:103:2:  [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(buf, "%.6f", x);
data/mdbtools-0.9.0~beta5/src/libmdb/sargs.c:212: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 tmpbuf[256];
data/mdbtools-0.9.0~beta5/src/libmdb/table.c:142: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 c[4];
data/mdbtools-0.9.0~beta5/src/libmdb/table.c:150: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 c[2];
data/mdbtools-0.9.0~beta5/src/libmdb/table.c:182: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(_buf, mdb->pg_buf + *cur_pos, piece_len);
data/mdbtools-0.9.0~beta5/src/libmdb/table.c:191: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(_buf, mdb->pg_buf + *cur_pos, len);
data/mdbtools-0.9.0~beta5/src/libmdb/write.c:31:2:  [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((char*)buf + offset, &value, 2);
data/mdbtools-0.9.0~beta5/src/libmdb/write.c:45:2:  [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((char*)buf + offset, &value, 4);
data/mdbtools-0.9.0~beta5/src/libmdb/write.c:59:2:  [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((char*)buf + offset, &value, 4);
data/mdbtools-0.9.0~beta5/src/libmdb/write.c:327: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(&row_buffer[pos], fields[i].value, fields[i].siz);
data/mdbtools-0.9.0~beta5/src/libmdb/write.c:343: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(&row_buffer[pos], fields[i].value, fields[i].siz);
data/mdbtools-0.9.0~beta5/src/libmdb/write.c:383: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(&row_buffer[pos], fields[i].value, fields[i].siz);
data/mdbtools-0.9.0~beta5/src/libmdb/write.c:399: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(&row_buffer[pos], fields[i].value, fields[i].siz);
data/mdbtools-0.9.0~beta5/src/libmdb/write.c:576: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.
	unsigned char row_buffer[4096];
data/mdbtools-0.9.0~beta5/src/libmdb/write.c:653: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((char*)new_pg + pos, mdb->pg_buf + row_start, row_size);
data/mdbtools-0.9.0~beta5/src/libmdb/write.c:660:2:  [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((char*)new_pg + pos, row_buffer, new_row_size);
data/mdbtools-0.9.0~beta5/src/libmdb/write.c:673: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(mdb->pg_buf, new_pg, fmt->pg_size);
data/mdbtools-0.9.0~beta5/src/libmdb/write.c:688:14:  [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.
    unsigned char row_buffer[4096];
data/mdbtools-0.9.0~beta5/src/libmdb/write.c:778: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((char*)new_pg + pos, mdb->pg_buf + row_start, row_size);
data/mdbtools-0.9.0~beta5/src/libmdb/write.c:784:2:  [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((char*)new_pg + pos, new_row, new_row_size);
data/mdbtools-0.9.0~beta5/src/libmdb/write.c:791: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((char*)new_pg + pos, mdb->pg_buf + row_start, row_size);
data/mdbtools-0.9.0~beta5/src/libmdb/write.c:796:2:  [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(mdb->pg_buf, new_pg, pg_size);
data/mdbtools-0.9.0~beta5/src/libmdb/write.c:825: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.
	unsigned char key_hash[256];
data/mdbtools-0.9.0~beta5/src/libmdb/write.c:869: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((char*)new_pg + ipg->offset, mdb->pg_buf + ipg->offset, ipg->len);
data/mdbtools-0.9.0~beta5/src/libmdb/write.c:893: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 *)new_pg)[ipg->offset] = 0x7f;
data/mdbtools-0.9.0~beta5/src/libmdb/write.c:894:2:  [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((char*)new_pg + ipg->offset + 1, key_hash, col->col_size);
data/mdbtools-0.9.0~beta5/src/libmdb/write.c:902:2:  [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(mdb->pg_buf, new_pg, mdb->fmt->pg_size);
data/mdbtools-0.9.0~beta5/src/odbc/connectparams.c:91:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char tmp[FILENAME_MAX];
data/mdbtools-0.9.0~beta5/src/odbc/mdbodbc.h:40:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char sqlState[6];
data/mdbtools-0.9.0~beta5/src/odbc/mdbodbc.h:47: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 lastError[256];
data/mdbtools-0.9.0~beta5/src/odbc/mdbodbc.h:48:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char sqlState[6];
data/mdbtools-0.9.0~beta5/src/odbc/mdbodbc.h:60: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 query[4096];
data/mdbtools-0.9.0~beta5/src/odbc/mdbodbc.h:61: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 lastError[256];
data/mdbtools-0.9.0~beta5/src/odbc/mdbodbc.h:62:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char sqlState[6];
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:685:3:  [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(stmt->sqlState, "07009"); // Invalid descriptor index
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:698:3:  [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(stmt->sqlState, "07009"); // Invalid descriptor index
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:707: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(stmt->sqlState, "HY090"); // Invalid string or buffer length
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:711: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(stmt->sqlState, "01004"); // String data, right truncated
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:789:3:  [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(stmt->sqlState, "07009"); // Invalid descriptor index
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:803:3:  [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(stmt->sqlState, "07009"); // Invalid descriptor index
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:813:5:  [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(stmt->sqlState, "HY090"); // Invalid string or buffer length
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:817:5:  [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(stmt->sqlState, "01004"); // String data, right truncated
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:856: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(stmt->sqlState, "HYC00"); // 	Driver not capable
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:1110:3:  [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(dbc->sqlState, "HY010");
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:1136:3:  [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(env->sqlState, "HY010");
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:1300: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.
	unsigned char row_buffer[MDB_PGSIZE];
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:1307: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.
	unsigned char t2[MDB_BIND_SIZE],
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:1444:3:  [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(stmt->sqlState, "07009");
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:1465:3:  [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(stmt->sqlState, "HY009");
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:1480: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(stmt->sqlState, "22002");
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:1496:3:  [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(stmt->sqlState, "07009");
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:1518:6:  [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(stmt->sqlState, "22003"); // Numeric value out of range
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:1528:6:  [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(stmt->sqlState, "22003"); // Numeric value out of range
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:1538:6:  [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(stmt->sqlState, "22003"); // Numeric value out of range
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:1547:6:  [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(stmt->sqlState, "22003"); // Numeric value out of range
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:1556:6:  [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(stmt->sqlState, "22003"); // Numeric value out of range
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:1566:6:  [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(stmt->sqlState, "22003"); // Numeric value out of range
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:1574:5:  [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(stmt->sqlState, "HYC00"); // Not implemented
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:1623:5:  [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(stmt->sqlState, "HY090"); // Invalid string or buffer length
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:1651: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(rgbValue, stmt->ole_str + stmt->pos, sizeToReadThisPart);
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:1655:5:  [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(stmt->sqlState, "01004"); // truncated
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:1666:5:  [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(stmt->sqlState, "HY090"); // Invalid string or buffer length
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:1690: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(rgbValue, str + stmt->pos, sizeToReadThisPart);
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:1692: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 *)rgbValue)[sizeToReadThisPart] = '\0';
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:1697:5:  [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(stmt->sqlState, "01004"); // truncated
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:1926: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(rgbInfoValue, ".", 1);
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:1938: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(rgbInfoValue, "\"", 1);
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:1957:3:  [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(((struct _hdbc *)hdbc)->sqlState, "HYC00");
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:2007: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.
	unsigned char row_buffer[MDB_PGSIZE];
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:2009: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.
	unsigned char t0[MDB_BIND_SIZE],
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:2164: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.
	unsigned char row_buffer[MDB_PGSIZE];
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:2168: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.
	unsigned char t2[MDB_BIND_SIZE],
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:2233: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 tmp[4096],begin_tag[11];
data/mdbtools-0.9.0~beta5/src/sql/mdbsql.c:408:3:  [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(pszDate, "%lf", date);
data/mdbtools-0.9.0~beta5/src/sql/mdbsql.c:435:10:  [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).
		val1 = atol(const1);
data/mdbtools-0.9.0~beta5/src/sql/mdbsql.c:436:10:  [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).
		val2 = atol(const2);
data/mdbtools-0.9.0~beta5/src/sql/mdbsql.c:494:19:  [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).
		node->value.i = atoi(constant);
data/mdbtools-0.9.0~beta5/src/sql/mdbsql.c:525:15:  [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).
	sql->limit = atoi(limit);
data/mdbtools-0.9.0~beta5/src/sql/mdbsql.c:632: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.
	unsigned char row_buffer[MDB_PGSIZE];
data/mdbtools-0.9.0~beta5/src/sql/mdbsql.c:684: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 tmpstr[256];
data/mdbtools-0.9.0~beta5/src/sql/mdbsql.c:685: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.
	unsigned char row_buffer[MDB_PGSIZE];
data/mdbtools-0.9.0~beta5/src/sql/mdbsql.c:723:3:  [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(tmpstr,"%d",col->col_size);
data/mdbtools-0.9.0~beta5/src/sql/mdbsql.c:801: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 tmpstr[32];
data/mdbtools-0.9.0~beta5/src/sql/mdbsql.c:803: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.
		unsigned char row_buffer[MDB_PGSIZE];
data/mdbtools-0.9.0~beta5/src/sql/mdbsql.c:808:3:  [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(tmpstr,"%d",table->num_rows);
data/mdbtools-0.9.0~beta5/src/util/mdb-array.c:32: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 *bound_values [256]; 
data/mdbtools-0.9.0~beta5/src/util/mdb-header.c:57:14:  [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).
 typesfile = fopen ("types.h", "w");
data/mdbtools-0.9.0~beta5/src/util/mdb-header.c:58:15:  [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).
 headerfile = fopen ("dumptypes.h", "w");
data/mdbtools-0.9.0~beta5/src/util/mdb-header.c:59: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).
 cfile = fopen ("dumptypes.c", "w");
data/mdbtools-0.9.0~beta5/src/util/mdb-import.c:155: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 line[MAX_ROW_SIZE];
data/mdbtools-0.9.0~beta5/src/util/mdb-import.c:204:7:  [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).
	in = fopen(argv[3], "r");
data/mdbtools-0.9.0~beta5/src/util/mdb-parsecsv.c:44: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 txt_filename [FILENAMESIZE];
data/mdbtools-0.9.0~beta5/src/util/mdb-parsecsv.c:45: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 c_filename [FILENAMESIZE];
data/mdbtools-0.9.0~beta5/src/util/mdb-parsecsv.c:49: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 input [BUFFERSIZE];
data/mdbtools-0.9.0~beta5/src/util/mdb-parsecsv.c:63:13:  [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).
  txtfile = fopen (txt_filename, "r");
data/mdbtools-0.9.0~beta5/src/util/mdb-parsecsv.c:65: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 (txt_filename, ".txt");
data/mdbtools-0.9.0~beta5/src/util/mdb-parsecsv.c:66:14:  [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).
  	txtfile = fopen (txt_filename, "r");
data/mdbtools-0.9.0~beta5/src/util/mdb-parsecsv.c:75:3:  [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 (c_filename, ".c");
data/mdbtools-0.9.0~beta5/src/util/mdb-parsecsv.c:77:11:  [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).
  cfile = fopen (c_filename, "w");
data/mdbtools-0.9.0~beta5/src/util/mdb-queries.c:153: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).
						flagint = atoi(flag);
data/mdbtools-0.9.0~beta5/src/util/mdb-queries.c:155:14:  [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).
						switch(atoi(attribute)) {
data/mdbtools-0.9.0~beta5/src/util/mdb-queries.c:158:10:  [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(sql_predicate, " TOP ");
data/mdbtools-0.9.0~beta5/src/util/mdb-queries.c:161:11:  [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(sql_predicate, " PERCENT");
data/mdbtools-0.9.0~beta5/src/util/mdb-queries.c:164:10:  [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(sql_predicate, " DISTINCTROW");
data/mdbtools-0.9.0~beta5/src/util/mdb-queries.c:166:10:  [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(sql_predicate, " DISTINCT");
data/mdbtools-0.9.0~beta5/src/util/mdb-queries.c:194:10:  [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(sql_sorting,"ORDER BY ");
data/mdbtools-0.9.0~beta5/src/util/mdb-queries.c:197:11:  [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(sql_sorting," DESCENDING");
data/mdbtools-0.9.0~beta5/src/util/mdb-queries.c:272:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char id[256];
data/mdbtools-0.9.0~beta5/src/util/mdb-queries.c:273: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 name[256];
data/mdbtools-0.9.0~beta5/src/util/mdb-sql.c:68: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 *buf, line[1000];
data/mdbtools-0.9.0~beta5/src/util/mdb-sql.c:325: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 prompt[20];
data/mdbtools-0.9.0~beta5/src/util/mdb-sql.c:382:19:  [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).
		else if (!(in = fopen(filename_in, "r"))) {
data/mdbtools-0.9.0~beta5/src/util/mdb-sql.c:388:15:  [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 (!(out = fopen(filename_out, "w"))) {
data/mdbtools-0.9.0~beta5/src/util/mdb-sql.c:417:6:  [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(s, "go");
data/mdbtools-0.9.0~beta5/src/util/mdb-sql.c:428:4:  [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(prompt, "%d => ", line);
data/mdbtools-0.9.0~beta5/src/util/mdb-sql.c:454:16:  [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 (!(in = fopen(fname, "r"))) {
data/mdbtools-0.9.0~beta5/src/util/mdb-tables.c:45:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char ret[256]; /* be sure to allow for enough space if adding more */
data/mdbtools-0.9.0~beta5/src/util/prcat.c:35:36:  [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).
	mdb_dump_catalog(mdb,(argc > 2) ? atoi(argv[2]) : MDB_TABLE); 
data/mdbtools-0.9.0~beta5/src/util/prole.c:63: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 ole_data[200000];
data/mdbtools-0.9.0~beta5/src/util/sargtest.c:51: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 *bound_values[256]; 
data/mdbtools-0.9.0~beta5/src/util/sargtest.c:59:2:  [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(sarg.value.s, "Reggiani Caseifici");
data/mdbtools-0.9.0~beta5/src/util/updrow.c:33: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 data[255];
data/mdbtools-0.9.0~beta5/src/util/updrow.c:91:18:  [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).
		sarg.value.i = atoi(sargval);
data/mdbtools-0.9.0~beta5/src/extras/mdb-dump.c:34: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=2;i<strlen(argv[2]);i++) {
data/mdbtools-0.9.0~beta5/src/extras/mdbsupport.c:18: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 ((s == NULL) || (strlen (s) == 0))
data/mdbtools-0.9.0~beta5/src/libmdb/backend.c:177: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).
	pr = result = g_malloc(1+4*strlen(value)+2); // worst case scenario
data/mdbtools-0.9.0~beta5/src/libmdb/backend.c:496: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).
			index_name = malloc(strlen(idx->name)+5+1);
data/mdbtools-0.9.0~beta5/src/libmdb/backend.c:505: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).
			index_name = malloc(strlen(table->name)+strlen(idx->name)+5+1);
data/mdbtools-0.9.0~beta5/src/libmdb/backend.c:505: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).
			index_name = malloc(strlen(table->name)+strlen(idx->name)+5+1);
data/mdbtools-0.9.0~beta5/src/libmdb/backend.c:510: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(index_name, "_");
data/mdbtools-0.9.0~beta5/src/libmdb/backend.c:814: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).
					size_t def_len = strlen(defval);
data/mdbtools-0.9.0~beta5/src/libmdb/backend.c:975: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).
	size_t quote_len = strlen(quote_char); /* multibyte */
data/mdbtools-0.9.0~beta5/src/libmdb/backend.c:977: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).
	size_t orig_escape_len = escape_char ? strlen(escape_char) : 0;
data/mdbtools-0.9.0~beta5/src/libmdb/data.c:223: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).
		*col->len_ptr = strlen(col->bind_ptr);
data/mdbtools-0.9.0~beta5/src/libmdb/data.c:270:4:  [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(col->bind_ptr, "");
data/mdbtools-0.9.0~beta5/src/libmdb/data.c:288: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).
		ret = strlen(col->bind_ptr);
data/mdbtools-0.9.0~beta5/src/libmdb/data.c:744: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(text, "");
data/mdbtools-0.9.0~beta5/src/libmdb/data.c:770:4:  [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(text, "");
data/mdbtools-0.9.0~beta5/src/libmdb/data.c:793: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(text, "");
data/mdbtools-0.9.0~beta5/src/libmdb/data.c:818: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(text, "");
data/mdbtools-0.9.0~beta5/src/libmdb/data.c:827: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).
	int n = strlen(buff);
data/mdbtools-0.9.0~beta5/src/libmdb/fakeglib.c:52: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).
        haystack = found + strlen(needle);
data/mdbtools-0.9.0~beta5/src/libmdb/fakeglib.c:66: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).
        haystack = found + strlen(needle);
data/mdbtools-0.9.0~beta5/src/libmdb/fakeglib.c:84: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 len = strlen(first);
data/mdbtools-0.9.0~beta5/src/libmdb/fakeglib.c:90: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).
        len += strlen(arg);
data/mdbtools-0.9.0~beta5/src/libmdb/fakeglib.c:96: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).
    char *pos = strcpy(ret, first) + strlen(first);
data/mdbtools-0.9.0~beta5/src/libmdb/fakeglib.c:100: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).
        pos = strcpy(pos, arg) + strlen(arg);
data/mdbtools-0.9.0~beta5/src/libmdb/fakeglib.c:128: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 len = strlen(input);
data/mdbtools-0.9.0~beta5/src/libmdb/fakeglib.c:153: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).
    size_t n = strlen(delimiters);
data/mdbtools-0.9.0~beta5/src/libmdb/fakeglib.c:180: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).
    str->len = strlen(str->str);
data/mdbtools-0.9.0~beta5/src/libmdb/fakeglib.c:186: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 len = strlen(rval);
data/mdbtools-0.9.0~beta5/src/libmdb/fakeglib.c:188:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(string->str, rval, len+1);
data/mdbtools-0.9.0~beta5/src/libmdb/fakeglib.c:195: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 len = strlen(val);
data/mdbtools-0.9.0~beta5/src/libmdb/fakeglib.c:197:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(&string->str[string->len], val, len+1);
data/mdbtools-0.9.0~beta5/src/libmdb/file.c:144: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 (!mdbpath || !strlen(mdbpath)) return NULL;
data/mdbtools-0.9.0~beta5/src/libmdb/file.c:148: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(dir[i])) continue;
data/mdbtools-0.9.0~beta5/src/libmdb/iconv.c:93:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(out_ptr, in_ptr, dlen);
data/mdbtools-0.9.0~beta5/src/libmdb/iconv.c:125: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).
        len_in = (slen) ? slen : strlen(in_ptr);
data/mdbtools-0.9.0~beta5/src/libmdb/iconv.c:135:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(out_ptr, in_ptr, dlen);
data/mdbtools-0.9.0~beta5/src/libmdb/index.c:379:22:  [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).
	unsigned int k, len=strlen(text);
data/mdbtools-0.9.0~beta5/src/libmdb/index.c:475:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(tmpbuf, &mdb->pg_buf[offset],255);
data/mdbtools-0.9.0~beta5/src/libmdb/index.c:510:12:  [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).
			c_len = strlen(buf);
data/mdbtools-0.9.0~beta5/src/libmdb/like.c:54:14:  [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;i<strlen(s)+1;i++) {
data/mdbtools-0.9.0~beta5/src/libmdb/like.c:61:14:  [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;i<strlen(r);i++) {
data/mdbtools-0.9.0~beta5/src/libmdb/props.c:127:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(value, &kkd[pos + 8], dsize);
data/mdbtools-0.9.0~beta5/src/odbc/connectparams.c:142:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      end = strlen (name) - 1;
data/mdbtools-0.9.0~beta5/src/odbc/connectparams.c:305:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy(hLastProperty->szName, "Database", INI_MAX_PROPERTY_NAME);
data/mdbtools-0.9.0~beta5/src/odbc/connectparams.c:306:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
	strncpy(hLastProperty->szValue, "", INI_MAX_PROPERTY_VALUE);
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:192: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(((struct _hdbc*)hdbc)->lastError, "");
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:618: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(((struct _hdbc*)hdbc)->lastError, "");
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:704: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).
		*pcbColName=strlen(sqlcol->name);
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:941:9:  [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(src, "");
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:1234:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(stmt->query, (char*)szSqlStr, sqllen);
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:1671: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).
			size_t len = strlen(str);
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:1944:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy(rgbInfoValue, "MDBTOOLS", cbInfoValueMax);
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:1950:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(rgbInfoValue, VERSION, cbInfoValueMax);
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:2255:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(begin_tag, s, i);
data/mdbtools-0.9.0~beta5/src/odbc/odbc.c:2277: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).
		return strlen((char*)str);
data/mdbtools-0.9.0~beta5/src/sql/mdbsql.c:385: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).
	if (data[0]!='\'' || *(p=&data[strlen(data)-1])!='\'') {
data/mdbtools-0.9.0~beta5/src/sql/mdbsql.c:391: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).
	if (format[0]!='\'' || *(p=&format[strlen(format)-1])!='\'') {
data/mdbtools-0.9.0~beta5/src/sql/mdbsql.c:485:14:  [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).
		lastchar = strlen(constant) > 256 ? 256 : strlen(constant);
data/mdbtools-0.9.0~beta5/src/sql/mdbsql.c:485: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).
		lastchar = strlen(constant) > 256 ? 256 : strlen(constant);
data/mdbtools-0.9.0~beta5/src/sql/mdbsql.c:486:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(node->value.s, &constant[1], lastchar - 2);;
data/mdbtools-0.9.0~beta5/src/sql/mdbsql.c:620: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).
	vlen = strlen(v);
data/mdbtools-0.9.0~beta5/src/util/mdb-header.c:100:22:  [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 (j = 0; j < strlen (col->name); j++)
data/mdbtools-0.9.0~beta5/src/util/mdb-header.c:125:22:  [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 (j = 0; j < strlen (col->name); j++)
data/mdbtools-0.9.0~beta5/src/util/mdb-import.c:44: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).
			field->siz = strlen(s);
data/mdbtools-0.9.0~beta5/src/util/mdb-import.c:118: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(s)) continue;
data/mdbtools-0.9.0~beta5/src/util/mdb-import.c:124:22:  [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 (s[0]=='"' && s[strlen(s)-1]=='"') {
data/mdbtools-0.9.0~beta5/src/util/mdb-import.c:125: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).
			s[strlen(s)-1] = '\0';
data/mdbtools-0.9.0~beta5/src/util/mdb-import.c:126: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).
			memmove(s+1, s, strlen(s));
data/mdbtools-0.9.0~beta5/src/util/mdb-parsecsv.c:70: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).
	for (i=strlen(txt_filename);i > 0 && txt_filename[i]!='.';i--);
data/mdbtools-0.9.0~beta5/src/util/mdb-parsecsv.c:94:19:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      while ((c = fgetc (txtfile)) != NL)
data/mdbtools-0.9.0~beta5/src/util/mdb-parsecsv.c:153:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = fgetc (txtfile);
data/mdbtools-0.9.0~beta5/src/util/mdb-queries.c:81: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).
            	delimiter = (char *) malloc(strlen(optarg)+1);
data/mdbtools-0.9.0~beta5/src/util/mdb-queries.c:173: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(sql_tables,",");
data/mdbtools-0.9.0~beta5/src/util/mdb-queries.c:181: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(sql_columns,",");
data/mdbtools-0.9.0~beta5/src/util/mdb-sql.c:75: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).
	for (i=strlen(line);i>0;i--) {
data/mdbtools-0.9.0~beta5/src/util/mdb-sql.c:81: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).
	buf = (char *) malloc(strlen(line)+1);
data/mdbtools-0.9.0~beta5/src/util/mdb-sql.c:256: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(sqlcol->name)>(size_t)sqlcol->disp_size)
data/mdbtools-0.9.0~beta5/src/util/mdb-sql.c:257: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).
				sqlcol->disp_size = strlen(sqlcol->name);
data/mdbtools-0.9.0~beta5/src/util/mdb-sql.c:303:12:  [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(s);
data/mdbtools-0.9.0~beta5/src/util/mdb-sql.c:416: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).
				if (!in_from_colon_r && strlen(mybuf))
data/mdbtools-0.9.0~beta5/src/util/mdb-sql.c:425: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).
			} else if (s[strlen(s)-1]=='\n')
data/mdbtools-0.9.0~beta5/src/util/mdb-sql.c:426: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).
				s[strlen(s)-1]=0;
data/mdbtools-0.9.0~beta5/src/util/mdb-sql.c:464: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).
			while (strlen(mybuf) + strlen(s) > bufsz) {
data/mdbtools-0.9.0~beta5/src/util/mdb-sql.c:464: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).
			while (strlen(mybuf) + strlen(s) > bufsz) {
data/mdbtools-0.9.0~beta5/src/util/mdb-sql.c:471: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).
			if ((!in || in_from_colon_r) && strlen(s))
data/mdbtools-0.9.0~beta5/src/util/mdb-sql.c:476:4:  [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(mybuf,"\n");
data/mdbtools-0.9.0~beta5/src/util/mdb-tables.c:51: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(ret, " ");
data/mdbtools-0.9.0~beta5/src/util/prindex.c:107:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(buf, fields[elem].value, fields[elem].siz);
data/mdbtools-0.9.0~beta5/src/util/updrow.c:59: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).
		len = strlen(colval);

ANALYSIS SUMMARY:

Hits = 349
Lines analyzed = 15898 in approximately 0.47 seconds (34006 lines/second)
Physical Source Lines of Code (SLOC) = 11901
Hits@level = [0] 429 [1]  89 [2] 211 [3]   8 [4]  41 [5]   0
Hits@level+ = [0+] 778 [1+] 349 [2+] 260 [3+]  49 [4+]  41 [5+]   0
Hits/KSLOC@level+ = [0+] 65.3727 [1+] 29.3253 [2+] 21.8469 [3+] 4.1173 [4+] 3.44509 [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.