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/libiodbc2-3.52.9/iodbcinst/dlf.c Examining data/libiodbc2-3.52.9/iodbcinst/SQLCreateDataSource.c Examining data/libiodbc2-3.52.9/iodbcinst/Info.c Examining data/libiodbc2-3.52.9/iodbcinst/SQLReadFileDSN.c Examining data/libiodbc2-3.52.9/iodbcinst/iodbc_error.c Examining data/libiodbc2-3.52.9/iodbcinst/SQLRemoveDriverManager.c Examining data/libiodbc2-3.52.9/iodbcinst/inifile.h Examining data/libiodbc2-3.52.9/iodbcinst/SQLValidDSN.c Examining data/libiodbc2-3.52.9/iodbcinst/SQLManageDataSource.c Examining data/libiodbc2-3.52.9/iodbcinst/misc.c Examining data/libiodbc2-3.52.9/iodbcinst/SQLInstallTranslatorEx.c Examining data/libiodbc2-3.52.9/iodbcinst/SQLWritePrivateProfileString.c Examining data/libiodbc2-3.52.9/iodbcinst/SQLInstallTranslator.c Examining data/libiodbc2-3.52.9/iodbcinst/SQLRemoveTranslator.c Examining data/libiodbc2-3.52.9/iodbcinst/SQLInstallODBC.c Examining data/libiodbc2-3.52.9/iodbcinst/SQLWriteDSNToIni.c Examining data/libiodbc2-3.52.9/iodbcinst/SQLRemoveDriver.c Examining data/libiodbc2-3.52.9/iodbcinst/dlf.h Examining data/libiodbc2-3.52.9/iodbcinst/SQLGetTranslator.c Examining data/libiodbc2-3.52.9/iodbcinst/SQLRemoveDefaultDataSource.c Examining data/libiodbc2-3.52.9/iodbcinst/SQLRemoveDSNFromIni.c Examining data/libiodbc2-3.52.9/iodbcinst/SQLConfigDataSource.c Examining data/libiodbc2-3.52.9/iodbcinst/unicode.c Examining data/libiodbc2-3.52.9/iodbcinst/SQLGetInstalledDrivers.c Examining data/libiodbc2-3.52.9/iodbcinst/misc.h Examining data/libiodbc2-3.52.9/iodbcinst/SQLConfigDriver.c Examining data/libiodbc2-3.52.9/iodbcinst/SQLSetConfigMode.c Examining data/libiodbc2-3.52.9/iodbcinst/SQLInstallDriverEx.c Examining data/libiodbc2-3.52.9/iodbcinst/SQLGetPrivateProfileString.c Examining data/libiodbc2-3.52.9/iodbcinst/SQLInstallDriver.c Examining data/libiodbc2-3.52.9/iodbcinst/iodbc_error.h Examining data/libiodbc2-3.52.9/iodbcinst/SQLWriteFileDSN.c Examining data/libiodbc2-3.52.9/iodbcinst/SQLInstallerError.c Examining data/libiodbc2-3.52.9/iodbcinst/SQLPostInstallerError.c Examining data/libiodbc2-3.52.9/iodbcinst/SQLGetConfigMode.c Examining data/libiodbc2-3.52.9/iodbcinst/SQLInstallDriverManager.c Examining data/libiodbc2-3.52.9/iodbcinst/SQLGetAvailableDrivers.c Examining data/libiodbc2-3.52.9/iodbcinst/inifile.c Examining data/libiodbc2-3.52.9/iodbcinst/unicode.h Examining data/libiodbc2-3.52.9/samples/iodbctest.c Examining data/libiodbc2-3.52.9/iodbcadm/Info.c Examining data/libiodbc2-3.52.9/iodbcadm/gtk/confirm.c Examining data/libiodbc2-3.52.9/iodbcadm/gtk/connectionpooling.c Examining data/libiodbc2-3.52.9/iodbcadm/gtk/driverchooser.c Examining data/libiodbc2-3.52.9/iodbcadm/gtk/translatorchooser.c Examining data/libiodbc2-3.52.9/iodbcadm/gtk/gensetup.c Examining data/libiodbc2-3.52.9/iodbcadm/gtk/administrator.c Examining data/libiodbc2-3.52.9/iodbcadm/gtk/messagebox.c Examining data/libiodbc2-3.52.9/iodbcadm/gtk/gui.h Examining data/libiodbc2-3.52.9/iodbcadm/gtk/errorbox.c Examining data/libiodbc2-3.52.9/iodbcadm/gtk/main.c Examining data/libiodbc2-3.52.9/iodbcadm/gtk/driversetup.c Examining data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c Examining data/libiodbc2-3.52.9/iodbcadm/drvconn.c Examining data/libiodbc2-3.52.9/iodbcadm/gui.h Examining data/libiodbc2-3.52.9/iodbcadm/iodbcadm.h Examining data/libiodbc2-3.52.9/iodbcadm/error.c Examining data/libiodbc2-3.52.9/iodbcadm/macosx/confirm.c Examining data/libiodbc2-3.52.9/iodbcadm/macosx/getfpn.h Examining data/libiodbc2-3.52.9/iodbcadm/macosx/keyval.c Examining data/libiodbc2-3.52.9/iodbcadm/macosx/driverchooser.c Examining data/libiodbc2-3.52.9/iodbcadm/macosx/getfpn.c Examining data/libiodbc2-3.52.9/iodbcadm/macosx/fdriverchoose.c Examining data/libiodbc2-3.52.9/iodbcadm/macosx/translatorchooser.c Examining data/libiodbc2-3.52.9/iodbcadm/macosx/filedsn.c Examining data/libiodbc2-3.52.9/iodbcadm/macosx/gensetup.c Examining data/libiodbc2-3.52.9/iodbcadm/macosx/odbcdriverf.c Examining data/libiodbc2-3.52.9/iodbcadm/macosx/administrator.c Examining data/libiodbc2-3.52.9/iodbcadm/macosx/messagebox.c Examining data/libiodbc2-3.52.9/iodbcadm/macosx/gui.h Examining data/libiodbc2-3.52.9/iodbcadm/macosx/errorbox.c Examining data/libiodbc2-3.52.9/iodbcadm/macosx/main.c Examining data/libiodbc2-3.52.9/iodbcadm/macosx/driversetup.c Examining data/libiodbc2-3.52.9/iodbcadm/macosx/dsnchooser.c Examining data/libiodbc2-3.52.9/drvproxy/Info.c Examining data/libiodbc2-3.52.9/drvproxy/gtk/gensetup.c Examining data/libiodbc2-3.52.9/drvproxy/gtk/loginbox.c Examining data/libiodbc2-3.52.9/drvproxy/gtk/gui.h Examining data/libiodbc2-3.52.9/drvproxy/ConfigDSN.c Examining data/libiodbc2-3.52.9/drvproxy/drvconn.c Examining data/libiodbc2-3.52.9/drvproxy/gui.h Examining data/libiodbc2-3.52.9/drvproxy/ConfigDriver.c Examining data/libiodbc2-3.52.9/drvproxy/macosx/confirm.c Examining data/libiodbc2-3.52.9/drvproxy/macosx/gensetup.c Examining data/libiodbc2-3.52.9/drvproxy/macosx/loginbox.c Examining data/libiodbc2-3.52.9/drvproxy/macosx/gui.h Examining data/libiodbc2-3.52.9/include/sqlucode.h Examining data/libiodbc2-3.52.9/include/isqltypes.h Examining data/libiodbc2-3.52.9/include/iodbc.h Examining data/libiodbc2-3.52.9/include/odbcinst.h Examining data/libiodbc2-3.52.9/include/iodbcunix.h Examining data/libiodbc2-3.52.9/include/isqlext.h Examining data/libiodbc2-3.52.9/include/sql.h Examining data/libiodbc2-3.52.9/include/iodbcinst.h Examining data/libiodbc2-3.52.9/include/isql.h Examining data/libiodbc2-3.52.9/include/iodbcext.h Examining data/libiodbc2-3.52.9/include/sqlext.h Examining data/libiodbc2-3.52.9/include/sqltypes.h Examining data/libiodbc2-3.52.9/mac/iODBCdemo/ExecController.h Examining data/libiodbc2-3.52.9/mac/iODBCdemo/TestController.h Examining data/libiodbc2-3.52.9/mac/iODBCdemo/NSResWindow.h Examining data/libiodbc2-3.52.9/mac/iODBCcfmbridge/Info.c Examining data/libiodbc2-3.52.9/mac/iODBCcfmbridge/iodbccfm.c Examining data/libiodbc2-3.52.9/mac/iODBCcfmbridge/iodbccfm.h Examining data/libiodbc2-3.52.9/iodbc/herr.h Examining data/libiodbc2-3.52.9/iodbc/execute.c Examining data/libiodbc2-3.52.9/iodbc/result.c Examining data/libiodbc2-3.52.9/iodbc/ithread.h Examining data/libiodbc2-3.52.9/iodbc/hdbc.h Examining data/libiodbc2-3.52.9/iodbc/itrace.h Examining data/libiodbc2-3.52.9/iodbc/hstmt.c Examining data/libiodbc2-3.52.9/iodbc/misc.c Examining data/libiodbc2-3.52.9/iodbc/hstmt.h Examining data/libiodbc2-3.52.9/iodbc/henv.c Examining data/libiodbc2-3.52.9/iodbc/hdesc.h Examining data/libiodbc2-3.52.9/iodbc/fetch.c Examining data/libiodbc2-3.52.9/iodbc/prepare.c Examining data/libiodbc2-3.52.9/iodbc/info.c Examining data/libiodbc2-3.52.9/iodbc/dlproc.c Examining data/libiodbc2-3.52.9/iodbc/trace/FetchScroll.c Examining data/libiodbc2-3.52.9/iodbc/trace/ParamOptions.c Examining data/libiodbc2-3.52.9/iodbc/trace/SpecialColumns.c Examining data/libiodbc2-3.52.9/iodbc/trace/Columns.c Examining data/libiodbc2-3.52.9/iodbc/trace/SetConnectAttr.c Examining data/libiodbc2-3.52.9/iodbc/trace/SetPos.c Examining data/libiodbc2-3.52.9/iodbc/trace/GetData.c Examining data/libiodbc2-3.52.9/iodbc/trace/Info.c Examining data/libiodbc2-3.52.9/iodbc/trace/SetConnectOption.c Examining data/libiodbc2-3.52.9/iodbc/trace/GetConnectAttr.c Examining data/libiodbc2-3.52.9/iodbc/trace/GetCursorName.c Examining data/libiodbc2-3.52.9/iodbc/trace/NumResultCols.c Examining data/libiodbc2-3.52.9/iodbc/trace/TablePrivileges.c Examining data/libiodbc2-3.52.9/iodbc/trace/SetEnvAttr.c Examining data/libiodbc2-3.52.9/iodbc/trace/FreeStmt.c Examining data/libiodbc2-3.52.9/iodbc/trace/BrowseConnect.c Examining data/libiodbc2-3.52.9/iodbc/trace/proto.h Examining data/libiodbc2-3.52.9/iodbc/trace/EndTran.c Examining data/libiodbc2-3.52.9/iodbc/trace/GetTypeInfo.c Examining data/libiodbc2-3.52.9/iodbc/trace/Fetch.c Examining data/libiodbc2-3.52.9/iodbc/trace/Drivers.c Examining data/libiodbc2-3.52.9/iodbc/trace/BindCol.c Examining data/libiodbc2-3.52.9/iodbc/trace/PutData.c Examining data/libiodbc2-3.52.9/iodbc/trace/Connect.c Examining data/libiodbc2-3.52.9/iodbc/trace/MoreResults.c Examining data/libiodbc2-3.52.9/iodbc/trace/SetStmtOption.c Examining data/libiodbc2-3.52.9/iodbc/trace/BulkOperations.c Examining data/libiodbc2-3.52.9/iodbc/trace/BindParameter.c Examining data/libiodbc2-3.52.9/iodbc/trace/DriverConnect.c Examining data/libiodbc2-3.52.9/iodbc/trace/SetDescField.c Examining data/libiodbc2-3.52.9/iodbc/trace/Execute.c Examining data/libiodbc2-3.52.9/iodbc/trace/trace.c Examining data/libiodbc2-3.52.9/iodbc/trace/FreeConnect.c Examining data/libiodbc2-3.52.9/iodbc/trace/Procedures.c Examining data/libiodbc2-3.52.9/iodbc/trace/RowCount.c Examining data/libiodbc2-3.52.9/iodbc/trace/SetStmtAttr.c Examining data/libiodbc2-3.52.9/iodbc/trace/GetEnvAttr.c Examining data/libiodbc2-3.52.9/iodbc/trace/CloseCursor.c Examining data/libiodbc2-3.52.9/iodbc/trace/trace.h Examining data/libiodbc2-3.52.9/iodbc/trace/DataSources.c Examining data/libiodbc2-3.52.9/iodbc/trace/GetDiagRec.c Examining data/libiodbc2-3.52.9/iodbc/trace/FreeHandle.c Examining data/libiodbc2-3.52.9/iodbc/trace/Statistics.c Examining data/libiodbc2-3.52.9/iodbc/trace/NativeSql.c Examining data/libiodbc2-3.52.9/iodbc/trace/GetDescRec.c Examining data/libiodbc2-3.52.9/iodbc/trace/Cancel.c Examining data/libiodbc2-3.52.9/iodbc/trace/ColumnPrivileges.c Examining data/libiodbc2-3.52.9/iodbc/trace/ExtendedFetch.c Examining data/libiodbc2-3.52.9/iodbc/trace/GetDiagField.c Examining data/libiodbc2-3.52.9/iodbc/trace/AllocConnect.c Examining data/libiodbc2-3.52.9/iodbc/trace/DescribeParam.c Examining data/libiodbc2-3.52.9/iodbc/trace/GetDescField.c Examining data/libiodbc2-3.52.9/iodbc/trace/ColAttribute.c Examining data/libiodbc2-3.52.9/iodbc/trace/Transact.c Examining data/libiodbc2-3.52.9/iodbc/trace/SetScrollOptions.c Examining data/libiodbc2-3.52.9/iodbc/trace/AllocEnv.c Examining data/libiodbc2-3.52.9/iodbc/trace/GetFunctions.c Examining data/libiodbc2-3.52.9/iodbc/trace/CopyDesc.c Examining data/libiodbc2-3.52.9/iodbc/trace/NumParams.c Examining data/libiodbc2-3.52.9/iodbc/trace/Disconnect.c Examining data/libiodbc2-3.52.9/iodbc/trace/SetCursorName.c Examining data/libiodbc2-3.52.9/iodbc/trace/SetDescRec.c Examining data/libiodbc2-3.52.9/iodbc/trace/FreeEnv.c Examining data/libiodbc2-3.52.9/iodbc/trace/DescribeCol.c Examining data/libiodbc2-3.52.9/iodbc/trace/AllocStmt.c Examining data/libiodbc2-3.52.9/iodbc/trace/Prepare.c Examining data/libiodbc2-3.52.9/iodbc/trace/ForeignKeys.c Examining data/libiodbc2-3.52.9/iodbc/trace/ParamData.c Examining data/libiodbc2-3.52.9/iodbc/trace/Tables.c Examining data/libiodbc2-3.52.9/iodbc/trace/GetConnectOption.c Examining data/libiodbc2-3.52.9/iodbc/trace/ExecDirect.c Examining data/libiodbc2-3.52.9/iodbc/trace/GetStmtAttr.c Examining data/libiodbc2-3.52.9/iodbc/trace/GetStmtOption.c Examining data/libiodbc2-3.52.9/iodbc/trace/AllocHandle.c Examining data/libiodbc2-3.52.9/iodbc/trace/PrimaryKeys.c Examining data/libiodbc2-3.52.9/iodbc/trace/Error.c Examining data/libiodbc2-3.52.9/iodbc/trace/ProcedureColumns.c Examining data/libiodbc2-3.52.9/iodbc/odbc3.c Examining data/libiodbc2-3.52.9/iodbc/herr.c Examining data/libiodbc2-3.52.9/iodbc/iodbc_misc.h Examining data/libiodbc2-3.52.9/iodbc/henv.h Examining data/libiodbc2-3.52.9/iodbc/catalog.c Examining data/libiodbc2-3.52.9/iodbc/main.c Examining data/libiodbc2-3.52.9/iodbc/dlproc.h Examining data/libiodbc2-3.52.9/iodbc/hdbc.c Examining data/libiodbc2-3.52.9/iodbc/connect.c FINAL RESULTS: data/libiodbc2-3.52.9/drvproxy/drvconn.c:148:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (curr, "UID=%s", log_t.user); data/libiodbc2-3.52.9/drvproxy/drvconn.c:156:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (curr, "PWD=%s", log_t.pwd); data/libiodbc2-3.52.9/drvproxy/gtk/gensetup.c:284:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (cour, curr, data/libiodbc2-3.52.9/drvproxy/gtk/gensetup.c:289:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (cour, curr, data/libiodbc2-3.52.9/drvproxy/gtk/gensetup.c:310:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (gensetup_t->connstr + size, "%s=%s", szKey, szValue); data/libiodbc2-3.52.9/drvproxy/gtk/gensetup.c:404:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (buff, "Setup of DSN %s ...", (dsn) ? dsn : "Unknown"); data/libiodbc2-3.52.9/drvproxy/gtk/loginbox.c:90: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 (log_t->user, data/libiodbc2-3.52.9/drvproxy/gtk/loginbox.c:93: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 (log_t->pwd, gtk_entry_get_text (GTK_ENTRY (log_t->password))); data/libiodbc2-3.52.9/drvproxy/gtk/loginbox.c:162:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (buff, "Login for DSN %s ...", (dsn) ? dsn : "Unknown"); data/libiodbc2-3.52.9/drvproxy/macosx/gensetup.c:550:19: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (cour, curr, msg); data/libiodbc2-3.52.9/drvproxy/macosx/gensetup.c:557:19: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (cour, curr, msg); data/libiodbc2-3.52.9/drvproxy/macosx/gensetup.c:575:23: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (((char*)gensetup_t->connstr) + size - 1, "%s=%s", msg, data/libiodbc2-3.52.9/drvproxy/macosx/gensetup.c:644:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (msg+1, "Setup of %s", (char*)dsn); data/libiodbc2-3.52.9/drvproxy/macosx/loginbox.c:165:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (msg+1, "Login for %s", (char*)dsn); data/libiodbc2-3.52.9/include/iodbc.h:107:23: [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). #define STRCPY(t, s) (strcpy((char*)(t), (char*)(s))) data/libiodbc2-3.52.9/include/iodbc.h:109:23: [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). #define STRCAT(t, s) (strcat((char*)(t), (char*)(s))) data/libiodbc2-3.52.9/include/iodbc.h:118:24: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. #define WCSCPY(t, s) (wcscpy((wchar_t*)(t), (wchar_t*)(s))) data/libiodbc2-3.52.9/include/iodbc.h:120:24: [4] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). #define WCSCAT(t, s) (wcscat((wchar_t*)(t), (wchar_t*)(s))) data/libiodbc2-3.52.9/include/iodbc.h:183:23: [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). #define STRCAT(t, s) (strcat((char*)(t), (char*)(s))) data/libiodbc2-3.52.9/include/iodbc.h:195:23: [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). #define STRCAT(t, s) (strcat((char*)(t), (char*)(s))) data/libiodbc2-3.52.9/include/sqltypes.h:416:34: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. # error Please make sure your system supports the wchar_t type data/libiodbc2-3.52.9/iodbc/connect.c:169:8: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (!access (drv, X_OK)) data/libiodbc2-3.52.9/iodbc/connect.c:186:8: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (!access (drv, X_OK)) data/libiodbc2-3.52.9/iodbc/connect.c:214:20: [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. #define DPRINTF(a) fprintf a data/libiodbc2-3.52.9/iodbc/execute.c:153: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(data, buf); data/libiodbc2-3.52.9/iodbc/herr.c:542:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (msgbuf, "%s%s", sqlerrhd, (char*)errmsg); data/libiodbc2-3.52.9/iodbc/herr.c:903:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (msgbuf, "%s%s", sqlerrhd, errmsg); data/libiodbc2-3.52.9/iodbc/trace/trace.c:240: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 (&buf[buf_pos], tmp); data/libiodbc2-3.52.9/iodbc/trace/trace.c:253:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (tmp, "%s", pwd->pw_name); data/libiodbc2-3.52.9/iodbc/trace/trace.c:255:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (&buf[buf_pos], tmp); data/libiodbc2-3.52.9/iodbc/trace/trace.c:276:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (tmp, "%s", p); data/libiodbc2-3.52.9/iodbc/trace/trace.c:278:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (&buf[buf_pos], tmp); data/libiodbc2-3.52.9/iodbc/trace/trace.c:288: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 (&buf[buf_pos], tmp); data/libiodbc2-3.52.9/iodbc/trace/trace.c:302: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 (&buf[buf_pos], tmp); data/libiodbc2-3.52.9/iodbc/trace/trace.c:507:3: [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 (trace_fp, fmt, ap); data/libiodbc2-3.52.9/iodbcadm/drvconn.c:421:8: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (!access (_szdriver_u8, X_OK)) data/libiodbc2-3.52.9/iodbcadm/drvconn.c:437:8: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (!access (_szdriver_u8, X_OK)) data/libiodbc2-3.52.9/iodbcadm/gtk/administrator.c:172:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (_date, "%s", ctime (&_stat.st_mtime)); data/libiodbc2-3.52.9/iodbcadm/gtk/administrator.c:563:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (sztime, "CPTimeout=%s", choose_t.timeout); data/libiodbc2-3.52.9/iodbcadm/gtk/administrator.c:569:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (szprobe, "CPProbe=%s", choose_t.probe); data/libiodbc2-3.52.9/iodbcadm/gtk/administrator.c:2825: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(dsnchoose_t.curr_dir, DEFAULT_FILEDSNPATH); data/libiodbc2-3.52.9/iodbcadm/gtk/confirm.c:141:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (msg, "Confirm action/operation on %s", dsn); data/libiodbc2-3.52.9/iodbcadm/gtk/driversetup.c:397:7: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (cour, curr, data/libiodbc2-3.52.9/iodbcadm/gtk/driversetup.c:407:7: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (cour, curr, data/libiodbc2-3.52.9/iodbcadm/gtk/driversetup.c:417:7: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (cour, curr, data/libiodbc2-3.52.9/iodbcadm/gtk/driversetup.c:439:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (driversetup_t->connstr + size - 1, "%s=%s", szKey, data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:566:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (dsn, "DSN=%s", szDSN); data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:612:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (connstr, "DSN=%s", szDSN); data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:777:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (dsn, "DSN=%s", szDSN); data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:823:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (connstr, "DSN=%s", szDSN); data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:2547: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(choose_t->curr_dir, DEFAULT_FILEDSNPATH); data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:2600:8: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (!access (drv, X_OK)) data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:2610:8: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (!access (drv, X_OK)) data/libiodbc2-3.52.9/iodbcadm/gtk/errorbox.c:116:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (msg, "Error : %s", dsn); data/libiodbc2-3.52.9/iodbcadm/gtk/gensetup.c:286:7: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (cour, curr, data/libiodbc2-3.52.9/iodbcadm/gtk/gensetup.c:291:7: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (cour, curr, ""); data/libiodbc2-3.52.9/iodbcadm/gtk/gensetup.c:313:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (gensetup_t->connstr + size - 1, "%s=%s", szKey, szValue); data/libiodbc2-3.52.9/iodbcadm/gtk/main.c:139: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 (entry, name); data/libiodbc2-3.52.9/iodbcadm/gtk/main.c:141: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 (entry, value); data/libiodbc2-3.52.9/iodbcadm/gtk/messagebox.c:112:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (msg, "Message on DSN %s", dsn); data/libiodbc2-3.52.9/iodbcadm/gtk/translatorchooser.c:240:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (_date, "%s", ctime (&_stat.st_mtime)); data/libiodbc2-3.52.9/iodbcadm/macosx/administrator.c:1073:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (tokenstr, "%s/", dir ? dir : ""); data/libiodbc2-3.52.9/iodbcadm/macosx/administrator.c:1123:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (tokenstr, "%s/", dir ? dir : ""); data/libiodbc2-3.52.9/iodbcadm/macosx/administrator.c:1872: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(dsnchoose_t.curr_dir, DEFAULT_FILEDSNPATH); data/libiodbc2-3.52.9/iodbcadm/macosx/driversetup.c:373:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (tokenstr, "%s/", dir ? dir : ""); data/libiodbc2-3.52.9/iodbcadm/macosx/driversetup.c:416:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (tokenstr, "%s/", dir ? dir : ""); data/libiodbc2-3.52.9/iodbcadm/macosx/dsnchooser.c:1418: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(dsnchoose_t->curr_dir, DEFAULT_FILEDSNPATH); data/libiodbc2-3.52.9/iodbcadm/macosx/fdriverchoose.c:668:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (tokenstr, "%s/", dir ? dir : ""); data/libiodbc2-3.52.9/iodbcadm/macosx/filedsn.c:954:8: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (!access (drv, X_OK)) data/libiodbc2-3.52.9/iodbcadm/macosx/filedsn.c:964:8: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (!access (drv, X_OK)) data/libiodbc2-3.52.9/iodbcadm/macosx/gensetup.c:512:19: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf ((char*)cour, (char*)curr, msg); data/libiodbc2-3.52.9/iodbcadm/macosx/gensetup.c:517:19: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf ((char*)cour, (char*)curr, msg); data/libiodbc2-3.52.9/iodbcadm/macosx/gensetup.c:535:23: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (((char*)gensetup_t->connstr) + size - 1, "%s=%s", msg, data/libiodbc2-3.52.9/iodbcadm/macosx/gensetup.c:606:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (msg+1, "Setup of %s", (char*)dsn); data/libiodbc2-3.52.9/iodbcadm/macosx/getfpn.c:118: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 (pathname, PATH_SEPARATOR); data/libiodbc2-3.52.9/iodbcadm/macosx/getfpn.c:135: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 (pathname, prov); data/libiodbc2-3.52.9/iodbcadm/macosx/getfpn.c:173:15: [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(pathname, volutf8); data/libiodbc2-3.52.9/iodbcadm/macosx/getfpn.c:176:19: [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(pathname, prov); data/libiodbc2-3.52.9/iodbcadm/macosx/keyval.c:490:15: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (((char*)keyval_t->connstr) + size - 1, "%s=%s", msg, msg1); data/libiodbc2-3.52.9/iodbcinst/SQLConfigDataSource.c:321:12: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (!access (_drv_u8, X_OK)) data/libiodbc2-3.52.9/iodbcinst/SQLConfigDataSource.c:387:12: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (!access (_drv_u8, X_OK)) data/libiodbc2-3.52.9/iodbcinst/SQLConfigDriver.c:241:12: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (!access (_drv_u8, X_OK)) data/libiodbc2-3.52.9/iodbcinst/SQLConfigDriver.c:307:12: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (!access (_drv_u8, X_OK)) data/libiodbc2-3.52.9/iodbcinst/SQLGetTranslator.c:202:13: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (!access (lpszName, X_OK)) data/libiodbc2-3.52.9/iodbcinst/SQLGetTranslator.c:223:13: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (!access (lpszName, X_OK)) data/libiodbc2-3.52.9/iodbcinst/SQLInstallDriver.c:152:9: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access (ptr, R_OK | W_OK | X_OK) == 0) data/libiodbc2-3.52.9/iodbcinst/SQLInstallDriver.c:178:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access (lpszPath, R_OK | W_OK | X_OK) == 0) data/libiodbc2-3.52.9/iodbcinst/SQLInstallDriver.c:192:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access (lpszPath, R_OK | W_OK | X_OK) == 0) data/libiodbc2-3.52.9/iodbcinst/SQLInstallDriver.c:208:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (lpszPath, "%s/config/lib", ptr); data/libiodbc2-3.52.9/iodbcinst/SQLInstallDriver.c:210:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (lpszPath, "%s/lib", ptr); data/libiodbc2-3.52.9/iodbcinst/SQLInstallDriver.c:212:11: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access (lpszPath, R_OK | W_OK | X_OK) == 0) data/libiodbc2-3.52.9/iodbcinst/SQLInstallDriverEx.c:142:35: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if ((ptr = getenv (envname)) && access (ptr, R_OK | W_OK | X_OK) == 0) data/libiodbc2-3.52.9/iodbcinst/SQLInstallDriverEx.c:152:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access ("/boot/beos/system/lib", R_OK | W_OK | X_OK) == 0) data/libiodbc2-3.52.9/iodbcinst/SQLInstallDriverEx.c:158:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access ("/usr/local/lib", R_OK | W_OK | X_OK) == 0) data/libiodbc2-3.52.9/iodbcinst/SQLInstallDriverEx.c:166:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access ("/boot/home/config/lib", R_OK | W_OK | X_OK) == 0) data/libiodbc2-3.52.9/iodbcinst/SQLInstallDriverEx.c:172:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access ("/usr/lib", R_OK | W_OK | X_OK) == 0) data/libiodbc2-3.52.9/iodbcinst/SQLInstallDriverEx.c:192:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (path, "%s/config/lib", ptr); data/libiodbc2-3.52.9/iodbcinst/SQLInstallDriverEx.c:194:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (path, "%s/lib", ptr); data/libiodbc2-3.52.9/iodbcinst/SQLInstallDriverEx.c:196:11: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access (path, R_OK | W_OK | X_OK) == 0) data/libiodbc2-3.52.9/iodbcinst/SQLInstallDriverEx.c:232:21: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (lpszPathIn && access (lpszPathIn, R_OK | X_OK)) data/libiodbc2-3.52.9/iodbcinst/SQLInstallTranslator.c:108:21: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (lpszPathIn && access (lpszPathIn, R_OK | W_OK | X_OK)) data/libiodbc2-3.52.9/iodbcinst/SQLInstallTranslatorEx.c:107:21: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (lpszPathIn && access (lpszPathIn, R_OK | W_OK | X_OK)) data/libiodbc2-3.52.9/iodbcinst/dlf.c:959:7: [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 (stderr, ErrorStrings[i], path, i); data/libiodbc2-3.52.9/iodbcinst/dlf.c:1254: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 (symbol2 + 1, symbol); data/libiodbc2-3.52.9/iodbcinst/inifile.c:147:19: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (doCreate && access (pconfig->fileName, 0) == -1) data/libiodbc2-3.52.9/iodbcinst/inifile.c:984:38: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. else if (doCreate || (!doCreate && access(filename, R_OK) == 0)) data/libiodbc2-3.52.9/iodbcinst/inifile.c:1211: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 (szKeysSection, szDriver); data/libiodbc2-3.52.9/iodbcinst/misc.c:222:3: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf (buf + i, size - i, bIsInst ? "/odbcinst.ini" : "/odbc.ini"); data/libiodbc2-3.52.9/iodbcinst/misc.c:236:8: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access (buf, R_OK) == 0) data/libiodbc2-3.52.9/iodbcinst/misc.c:257:23: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (doCreate || access (buf, R_OK) == 0) data/libiodbc2-3.52.9/iodbcinst/misc.c:273:4: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf (buf, size, bIsInst ? "%s/.odbcinst.ini" : "%s/.odbc.ini", data/libiodbc2-3.52.9/iodbcinst/misc.c:276:20: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (doCreate || access (buf, R_OK) == 0) data/libiodbc2-3.52.9/iodbcinst/misc.c:283:4: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf (buf, size, data/libiodbc2-3.52.9/iodbcinst/misc.c:286:8: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access (buf, R_OK) == 0) data/libiodbc2-3.52.9/iodbcinst/misc.c:316:8: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access (buf, R_OK) == 0) data/libiodbc2-3.52.9/iodbcinst/misc.c:336:11: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access (buf, R_OK) == 0) data/libiodbc2-3.52.9/iodbcinst/unicode.c:111:1: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. wcscpy (wchar_t * wcd, const wchar_t * wcs) data/libiodbc2-3.52.9/iodbcinst/unicode.c:153:10: [4] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). wchar_t* wcscat(wchar_t *dest, const wchar_t *src) data/libiodbc2-3.52.9/iodbcinst/unicode.h:142:11: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. wchar_t * wcscpy (wchar_t * wcd, const wchar_t * wcs); data/libiodbc2-3.52.9/iodbcinst/unicode.h:151:10: [4] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). wchar_t* wcscat(wchar_t *dest, const wchar_t *src); data/libiodbc2-3.52.9/samples/iodbctest.c:243: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 ((char *) dataSource, connStr); data/libiodbc2-3.52.9/samples/iodbctest.c:701:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy ((char *) request, (char *) buf); data/libiodbc2-3.52.9/iodbc/ithread.h:98:28: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. # define SPINLOCK_INIT(M) InitializeCriticalSection (&M) data/libiodbc2-3.52.9/iodbc/ithread.h:100:28: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. # define SPINLOCK_LOCK(M) EnterCriticalSection (&M) data/libiodbc2-3.52.9/iodbc/trace/trace.c:265:12: [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 ((p = getenv ("HOME")) == NULL) data/libiodbc2-3.52.9/iodbcadm/gtk/main.c:147:7: [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 (getenv (name) != NULL && !overwrite) data/libiodbc2-3.52.9/iodbcadm/gtk/main.c:232:8: [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 (!getenv ("ODBCINI") && getenv ("HOME")) data/libiodbc2-3.52.9/iodbcadm/gtk/main.c:232:30: [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 (!getenv ("ODBCINI") && getenv ("HOME")) data/libiodbc2-3.52.9/iodbcadm/gtk/main.c:234:21: [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. STRCPY (path, getenv ("HOME")); data/libiodbc2-3.52.9/iodbcinst/SQLInstallDriver.c:151:14: [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 ((ptr = getenv (envname))) data/libiodbc2-3.52.9/iodbcinst/SQLInstallDriver.c:198: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. if (!(ptr = getenv ("HOME"))) data/libiodbc2-3.52.9/iodbcinst/SQLInstallDriverEx.c:142:14: [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 ((ptr = getenv (envname)) && access (ptr, R_OK | W_OK | X_OK) == 0) data/libiodbc2-3.52.9/iodbcinst/SQLInstallDriverEx.c:182: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. if (!(ptr = getenv ("HOME"))) data/libiodbc2-3.52.9/iodbcinst/dlf.c:632:10: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. hint = LoadLibrary (dll); data/libiodbc2-3.52.9/iodbcinst/misc.c:232:18: [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 ((ptr = getenv (bIsInst ? "ODBCINSTINI" : "ODBCINI")) != NULL) data/libiodbc2-3.52.9/iodbcinst/misc.c:263:18: [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 ((ptr = getenv ("HOME")) == NULL) data/libiodbc2-3.52.9/iodbcinst/misc.c:312:18: [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 ((ptr = getenv (bIsInst ? "SYSODBCINSTINI" : "SYSODBCINI")) != NULL) data/libiodbc2-3.52.9/iodbcinst/misc.c:431: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 ((default_path = getenv ("FILEDSNPATH")) != NULL) data/libiodbc2-3.52.9/drvproxy/ConfigDSN.c:93: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 dsnread[4096] = { 0 }; data/libiodbc2-3.52.9/drvproxy/ConfigDSN.c:94: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 prov[4096] = { 0 }; data/libiodbc2-3.52.9/drvproxy/ConfigDriver.c:94: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 driverread[4096] = { 0 }; data/libiodbc2-3.52.9/drvproxy/gtk/gensetup.c:97: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 *data[2]; data/libiodbc2-3.52.9/drvproxy/gtk/gensetup.c:154: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 *data[2]; data/libiodbc2-3.52.9/drvproxy/gtk/gensetup.c:197: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 *data[2]; data/libiodbc2-3.52.9/drvproxy/gtk/gensetup.c:309: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 (gensetup_t->connstr, cour, size); data/libiodbc2-3.52.9/drvproxy/gtk/gensetup.c:396: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 buff[1024]; data/libiodbc2-3.52.9/drvproxy/gtk/loginbox.c:148: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 buff[1024]; data/libiodbc2-3.52.9/drvproxy/macosx/gensetup.c:527:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[1024], msg1[1024]; data/libiodbc2-3.52.9/drvproxy/macosx/gensetup.c:574:23: [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 (gensetup_t->connstr, cour, size); data/libiodbc2-3.52.9/drvproxy/macosx/gensetup.c:629:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[1024]; data/libiodbc2-3.52.9/drvproxy/macosx/loginbox.c:147:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[1024]; data/libiodbc2-3.52.9/include/sqltypes.h:394: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 Data4[8]; /* BYTE */ data/libiodbc2-3.52.9/iodbc/connect.c:151: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 tokenstr[4096]; data/libiodbc2-3.52.9/iodbc/connect.c:152: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 drvbuf[4096] = { L'\0'}; data/libiodbc2-3.52.9/iodbc/connect.c:433: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 buf[1024]; data/libiodbc2-3.52.9/iodbc/connect.c:440: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). retry_wait = atoi(buf); data/libiodbc2-3.52.9/iodbc/connect.c:1005: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 buf[1024]; data/libiodbc2-3.52.9/iodbc/connect.c:1006: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 path_tmp[1024]; data/libiodbc2-3.52.9/iodbc/connect.c:1008: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 cp_probe[1024] = {""}; data/libiodbc2-3.52.9/iodbc/connect.c:1055:22: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). cp_timeout = atoi(buf); data/libiodbc2-3.52.9/iodbc/connect.c:1068:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp_drv[1024] = {""}; data/libiodbc2-3.52.9/iodbc/connect.c:1079:26: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). cp_timeout = atoi(buf); data/libiodbc2-3.52.9/iodbc/connect.c:1092: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 path_with_multiarch[1024]; data/libiodbc2-3.52.9/iodbc/connect.c:1624: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 buf[1024]; data/libiodbc2-3.52.9/iodbc/connect.c:1675: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 entries[1024]; data/libiodbc2-3.52.9/iodbc/connect.c:1676: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 value[1024]; data/libiodbc2-3.52.9/iodbc/connect.c:1677: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 drv_value[1024] = {"\0"}; data/libiodbc2-3.52.9/iodbc/connect.c:1836: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 driver[1024] = { '\0' }; data/libiodbc2-3.52.9/iodbc/connect.c:1837: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 buf[256]; data/libiodbc2-3.52.9/iodbc/connect.c:2317: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 name[1024] = { 0 }; data/libiodbc2-3.52.9/iodbc/connect.c:3081: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 buf[1024]; data/libiodbc2-3.52.9/iodbc/hdbc.c:458:34: [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. || (waMode != 'W' && ((char *) vParam)[0] == '\0') data/libiodbc2-3.52.9/iodbc/hdbc.c:459:34: [2] (buffer) wchar_t: 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. || (waMode == 'W' && ((wchar_t *) vParam)[0] == L'\0')) data/libiodbc2-3.52.9/iodbc/henv.c:110: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 buf[1024]; data/libiodbc2-3.52.9/iodbc/herr.c:282:3: [2] (buffer) wchar_t: 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. wchar_t _sqlState[6] = {L"\0"}; data/libiodbc2-3.52.9/iodbc/herr.c:529:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msgbuf[256] = {'\0'}; data/libiodbc2-3.52.9/iodbc/herr.c:777:3: [2] (buffer) wchar_t: 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. wchar_t _sqlState[6] = {L"\0"}; data/libiodbc2-3.52.9/iodbc/herr.c:888: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 msgbuf[256] = { '\0' }; data/libiodbc2-3.52.9/iodbc/herr.c:1633:3: [2] (buffer) wchar_t: 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. wchar_t szState[6]; data/libiodbc2-3.52.9/iodbc/info.c:150: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 buffer[4096], desc[1024], *ptr; data/libiodbc2-3.52.9/iodbc/info.c:437: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 buffer[4096], desc[1024], *ptr; data/libiodbc2-3.52.9/iodbc/info.c:732:3: [2] (buffer) wchar_t: 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. wchar_t buf[20] = {'\0'}; data/libiodbc2-3.52.9/iodbc/info.c:757: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 ((char*)buf, "%02d.%02d.%04d.%04d", data/libiodbc2-3.52.9/iodbc/info.c:761: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 ((char*)buf, "%02d.%02d.0000", SQL_SPEC_MAJOR, SQL_SPEC_MINOR); data/libiodbc2-3.52.9/iodbc/info.c:790:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((char *) rgbInfoValue)[len] = '\0'; data/libiodbc2-3.52.9/iodbc/info.c:795:10: [2] (buffer) wchar_t: 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. ((wchar_t *) rgbInfoValue)[len] = L'\0'; data/libiodbc2-3.52.9/iodbc/info.c:998:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((char *) rgbInfoValue)[len] = '\0'; data/libiodbc2-3.52.9/iodbc/info.c:1356: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 (pfExists, &functions2, sizeof (functions2)); data/libiodbc2-3.52.9/iodbc/info.c:1366: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 (pfExists, &functions3, sizeof (functions3)); data/libiodbc2-3.52.9/iodbc/prepare.c:630: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 (newparam, pstmt->st_pparam, pstmt->st_nparam * sizeof (TPARM)); data/libiodbc2-3.52.9/iodbc/trace/DriverConnect.c:181: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 (dup, str, length); data/libiodbc2-3.52.9/iodbc/trace/GetData.c:88: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 buf[1024]; /* Temp buffer */ data/libiodbc2-3.52.9/iodbc/trace/GetData.c:117: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, "%d", i > 0 ? 1 : 0); data/libiodbc2-3.52.9/iodbc/trace/GetData.c:139: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, "%04d-%02d-%02d", d->year, d->month, d->day); data/libiodbc2-3.52.9/iodbc/trace/GetData.c:153: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, "%f", d); data/libiodbc2-3.52.9/iodbc/trace/GetData.c:161: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, "%f", f); data/libiodbc2-3.52.9/iodbc/trace/GetData.c:170: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, data/libiodbc2-3.52.9/iodbc/trace/GetData.c:185: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, "%lu days", data/libiodbc2-3.52.9/iodbc/trace/GetData.c:194: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, "%lu days %lu hours", data/libiodbc2-3.52.9/iodbc/trace/GetData.c:204: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, "%lu days %lu hours %lu minutes", data/libiodbc2-3.52.9/iodbc/trace/GetData.c:215: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, "%lu days %lu hours %lu minutes %lu seconds", data/libiodbc2-3.52.9/iodbc/trace/GetData.c:227: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, "%lu hours", data/libiodbc2-3.52.9/iodbc/trace/GetData.c:236: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, "%lu hours %lu minutes", data/libiodbc2-3.52.9/iodbc/trace/GetData.c:246: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, "%lu hours %lu minutes %lu seconds", data/libiodbc2-3.52.9/iodbc/trace/GetData.c:257: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, "%lu minutes", data/libiodbc2-3.52.9/iodbc/trace/GetData.c:266: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, "%lu minutes %lu seconds", data/libiodbc2-3.52.9/iodbc/trace/GetData.c:276: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, "%lu months", data/libiodbc2-3.52.9/iodbc/trace/GetData.c:285: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, "%lu seconds", data/libiodbc2-3.52.9/iodbc/trace/GetData.c:294: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, "%lu years", data/libiodbc2-3.52.9/iodbc/trace/GetData.c:303: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, "%lu years %lu months", data/libiodbc2-3.52.9/iodbc/trace/GetData.c:315: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, "%ld", l); data/libiodbc2-3.52.9/iodbc/trace/GetData.c:323: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, "%lu", l); data/libiodbc2-3.52.9/iodbc/trace/GetData.c:340: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, "%lld", (long long int)l); data/libiodbc2-3.52.9/iodbc/trace/GetData.c:350: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, "%llu", (long long unsigned int)l); data/libiodbc2-3.52.9/iodbc/trace/GetData.c:361: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, "%d", i); data/libiodbc2-3.52.9/iodbc/trace/GetData.c:369: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, "%u", i); data/libiodbc2-3.52.9/iodbc/trace/GetData.c:380: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, "%02d:%02d:%02d", t->hour, t->minute, t->second); data/libiodbc2-3.52.9/iodbc/trace/GetData.c:391: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, "%04d-%02d-%02d %02d:%02d:%02d.%06ld", data/libiodbc2-3.52.9/iodbc/trace/GetData.c:403: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, "%d", i); data/libiodbc2-3.52.9/iodbc/trace/GetData.c:411: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, "%u", i); data/libiodbc2-3.52.9/iodbc/trace/trace.c:189: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 tmp[255]; data/libiodbc2-3.52.9/iodbc/trace/trace.c:238: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 (tmp, "%ld", (long) getpid ()); data/libiodbc2-3.52.9/iodbc/trace/trace.c:300: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 (tmp, "%d", ++counter); data/libiodbc2-3.52.9/iodbc/trace/trace.c:363:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open (trace_fname, fd_flags, fd_mode); data/libiodbc2-3.52.9/iodbc/trace/trace.c:386:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char mesgBuf[200]; data/libiodbc2-3.52.9/iodbc/trace/trace.c:400: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 ((char *) mesgBuf, "%02d.%02d.%04d.%04d", data/libiodbc2-3.52.9/iodbc/trace/trace.c:415: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 processName[40]; data/libiodbc2-3.52.9/iodbc/trace/trace.c:455: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 mesgBuf[200]; data/libiodbc2-3.52.9/iodbc/trace/trace.c:631: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 buf[80]; data/libiodbc2-3.52.9/iodbc/trace/trace.c:1294: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 buf[255]; data/libiodbc2-3.52.9/iodbc/trace/trace.c:1314:9: [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, "SQL_LEN_BINARY_ATTR(%ld)", (long) SQL_LEN_BINARY_ATTR(length)); data/libiodbc2-3.52.9/iodbcadm/drvconn.c:201:3: [2] (buffer) wchar_t: 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. wchar_t tokenstr[4096]; data/libiodbc2-3.52.9/iodbcadm/drvconn.c:202:3: [2] (buffer) wchar_t: 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. wchar_t drvbuf[4096] = { L'\0'}; data/libiodbc2-3.52.9/iodbcadm/drvconn.c:213: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 name[1024] = { '\0' }; data/libiodbc2-3.52.9/iodbcadm/drvconn.c:316:15: [2] (buffer) wchar_t: 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. wchar_t entries[4096]; data/libiodbc2-3.52.9/iodbcadm/drvconn.c:337:23: [2] (buffer) wchar_t: 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. wchar_t value[1024]; data/libiodbc2-3.52.9/iodbcadm/error.c:120:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[4096]; data/libiodbc2-3.52.9/iodbcadm/error.c:133:3: [2] (buffer) wchar_t: 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. wchar_t msg[4096]; data/libiodbc2-3.52.9/iodbcadm/gtk/administrator.c:133: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 _date[1024], _size[1024]; data/libiodbc2-3.52.9/iodbcadm/gtk/administrator.c:134: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 *data[5]; data/libiodbc2-3.52.9/iodbcadm/gtk/administrator.c:170:8: [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 (_size, "%lu Kb", data/libiodbc2-3.52.9/iodbcadm/gtk/administrator.c:196: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 cptime[128], cpprobe[1024]; data/libiodbc2-3.52.9/iodbcadm/gtk/administrator.c:197: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 *data[3]; data/libiodbc2-3.52.9/iodbcadm/gtk/administrator.c:326: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 tokenstr[4096] = { 0 }; data/libiodbc2-3.52.9/iodbcadm/gtk/administrator.c:533: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 sztime[1024] = { 0 }; data/libiodbc2-3.52.9/iodbcadm/gtk/administrator.c:534: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 szprobe[1024] = { 0 }; data/libiodbc2-3.52.9/iodbcadm/gtk/administrator.c:621: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 connstr[4096] = { 0 }; data/libiodbc2-3.52.9/iodbcadm/gtk/administrator.c:622: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 tokenstr[4096] = { 0 }; data/libiodbc2-3.52.9/iodbcadm/gtk/administrator.c:707: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 connstr[4096] = { 0 }; data/libiodbc2-3.52.9/iodbcadm/gtk/administrator.c:708: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 tokenstr[4096] = { 0 }; data/libiodbc2-3.52.9/iodbcadm/gtk/confirm.c:131:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[1024]; data/libiodbc2-3.52.9/iodbcadm/gtk/confirm.c:143:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (msg, "Confirm action/operation ..."); data/libiodbc2-3.52.9/iodbcadm/gtk/connectionpooling.c:162:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[1024]; data/libiodbc2-3.52.9/iodbcadm/gtk/driverchooser.c:213: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. for (z = 0; ((char *) drvattrs)[z]; z++) data/libiodbc2-3.52.9/iodbcadm/gtk/driverchooser.c:214: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. if (((char *) drvattrs)[z] == ' ') data/libiodbc2-3.52.9/iodbcadm/gtk/driverchooser.c:215:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((char *) drvattrs)[z] = '\0'; data/libiodbc2-3.52.9/iodbcadm/gtk/driverchooser.c:266: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 (size, "%d Kb", (int) (_stat.st_size / 1024)); data/libiodbc2-3.52.9/iodbcadm/gtk/driverchooser.c:578: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 buff[1024]; data/libiodbc2-3.52.9/iodbcadm/gtk/driverchooser.c:714: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 buff[1024]; data/libiodbc2-3.52.9/iodbcadm/gtk/driverchooser.c:845: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 buff[1024]; data/libiodbc2-3.52.9/iodbcadm/gtk/driversetup.c:98: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 *data[2]; data/libiodbc2-3.52.9/iodbcadm/gtk/driversetup.c:262: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 *data[2]; data/libiodbc2-3.52.9/iodbcadm/gtk/driversetup.c:297: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 *data[2]; data/libiodbc2-3.52.9/iodbcadm/gtk/driversetup.c:438: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 (driversetup_t->connstr, cour, size); data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:191: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 path_buf[MAXPATHLEN]; data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:195: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 *data[1]; data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:251: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 path_buf[MAXPATHLEN]; data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:255: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 *data[1]; data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:305: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 diz[1024], driver[1024]; data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:306: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 *data[3]; data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:500: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 connstr[4096] = { "" }; data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:501: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 drv[1024] = { ""}; data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:545: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 dsn[1024] = { "\0" }; data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:590: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 connstr[4096] = { 0 }; data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:591: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 tokenstr[4096] = { 0 }; data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:674: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 connstr[4096] = { 0 }; data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:675: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 outconnstr[4096] = { 0 }; data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:712: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 connstr[4096] = { 0 }; data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:713: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 drv[1024] = { 0 }; data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:756: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 dsn[1024] = { 0 }; data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.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 connstr[4096] = { 0 }; data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:802: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 tokenstr[4096] = { 0 }; data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:1037:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key[512]; data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:1130:15: [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. s = strcpy(drv, "DRIVER="); data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:1155:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[4096]; data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:1187: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 dsn[1024]; data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:1195: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 entries[1024]; data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:1217:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char value[1024]; data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:1285: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 dsn[1024]; data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:1286: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 connstr[4096] = { 0 }; data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:1309:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[4096]; data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:2591: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 drvbuf[4096] = { L'\0'}; data/libiodbc2-3.52.9/iodbcadm/gtk/errorbox.c:107:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[1024]; data/libiodbc2-3.52.9/iodbcadm/gtk/errorbox.c:118:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (msg, "Error ..."); data/libiodbc2-3.52.9/iodbcadm/gtk/gensetup.c:96: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 *data[2]; data/libiodbc2-3.52.9/iodbcadm/gtk/gensetup.c:149: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 *data[2]; data/libiodbc2-3.52.9/iodbcadm/gtk/gensetup.c:192: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 *data[2]; data/libiodbc2-3.52.9/iodbcadm/gtk/gensetup.c:312: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 (gensetup_t->connstr, cour, size); data/libiodbc2-3.52.9/iodbcadm/gtk/gensetup.c:406: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 buff[1024]; data/libiodbc2-3.52.9/iodbcadm/gtk/gensetup.c:740: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 buff[1024]; data/libiodbc2-3.52.9/iodbcadm/gtk/gui.h:114:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char curr_dir[1024]; data/libiodbc2-3.52.9/iodbcadm/gtk/gui.h:142: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 timeout[64]; data/libiodbc2-3.52.9/iodbcadm/gtk/gui.h:143: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 probe[512]; data/libiodbc2-3.52.9/iodbcadm/gtk/gui.h:144: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 driver[1024]; data/libiodbc2-3.52.9/iodbcadm/gtk/main.c:167: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 path[4096]; data/libiodbc2-3.52.9/iodbcadm/gtk/messagebox.c:103:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[1024]; data/libiodbc2-3.52.9/iodbcadm/gtk/messagebox.c:114:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (msg, "Message ..."); data/libiodbc2-3.52.9/iodbcadm/gtk/translatorchooser.c:160: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 driver[1024], _date[1024], _size[1024]; data/libiodbc2-3.52.9/iodbcadm/gtk/translatorchooser.c:161: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 *data[4]; data/libiodbc2-3.52.9/iodbcadm/gtk/translatorchooser.c:238:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (_size, "%lu Kb", data/libiodbc2-3.52.9/iodbcadm/macosx/administrator.c:328:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[100]; data/libiodbc2-3.52.9/iodbcadm/macosx/administrator.c:445:3: [2] (buffer) wchar_t: 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. wchar_t ptime[1024] = { L'\0' }, *prov; data/libiodbc2-3.52.9/iodbcadm/macosx/administrator.c:446:3: [2] (buffer) wchar_t: 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. wchar_t pprobe[1024] = { L'\0' }; data/libiodbc2-3.52.9/iodbcadm/macosx/administrator.c:609:3: [2] (buffer) wchar_t: 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. wchar_t drvdesc[1024], drvattrs[1024]; data/libiodbc2-3.52.9/iodbcadm/macosx/administrator.c:746:3: [2] (buffer) wchar_t: 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. wchar_t connstr[4096] = { L'\0' }, tokenstr[4096] = { L'\0' }; data/libiodbc2-3.52.9/iodbcadm/macosx/administrator.c:793:3: [2] (buffer) wchar_t: 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. wchar_t tokenstr[4096] = { L'\0' }; data/libiodbc2-3.52.9/iodbcadm/macosx/administrator.c:879:3: [2] (buffer) wchar_t: 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. wchar_t connstr[4096] = { L'\0' }, tokenstr[4096] = { L'\0' }; data/libiodbc2-3.52.9/iodbcadm/macosx/administrator.c:1044: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 tokenstr[4096] = { 0 }; data/libiodbc2-3.52.9/iodbcadm/macosx/administrator.c:1098: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 tokenstr[4096] = { 0 }; data/libiodbc2-3.52.9/iodbcadm/macosx/administrator.c:1319:3: [2] (buffer) wchar_t: 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. wchar_t tokenstr[4096] = { L'\0' }, tokenstr1[4096] = { L'\0' }; data/libiodbc2-3.52.9/iodbcadm/macosx/administrator.c:1561:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[1024]; data/libiodbc2-3.52.9/iodbcadm/macosx/administrator.c:1623:15: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char forkName[2048]; data/libiodbc2-3.52.9/iodbcadm/macosx/driverchooser.c:223:3: [2] (buffer) wchar_t: 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. wchar_t drvdesc[1024], drvattrs[1024], driver[1024]; data/libiodbc2-3.52.9/iodbcadm/macosx/driverchooser.c:458: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 buf[100]; data/libiodbc2-3.52.9/iodbcadm/macosx/driversetup.c:353: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 tokenstr[4096] = { 0 }; data/libiodbc2-3.52.9/iodbcadm/macosx/driversetup.c:396: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 tokenstr[4096] = { 0 }; data/libiodbc2-3.52.9/iodbcadm/macosx/driversetup.c:706: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 (driversetup_t->connstr, cour, size*sizeof(wchar_t)); data/libiodbc2-3.52.9/iodbcadm/macosx/dsnchooser.c:234:3: [2] (buffer) wchar_t: 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. wchar_t dsnname[1024], dsndesc[1024]; data/libiodbc2-3.52.9/iodbcadm/macosx/dsnchooser.c:363:3: [2] (buffer) wchar_t: 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. wchar_t drv[1024] = { L'\0' }; data/libiodbc2-3.52.9/iodbcadm/macosx/dsnchooser.c:410:3: [2] (buffer) wchar_t: 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. wchar_t dsn[1024] = { L'\0' }; data/libiodbc2-3.52.9/iodbcadm/macosx/dsnchooser.c:470:3: [2] (buffer) wchar_t: 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. wchar_t connstr[4096] = { L'\0' }, tokenstr[4096] = { L'\0' }; data/libiodbc2-3.52.9/iodbcadm/macosx/dsnchooser.c:564:3: [2] (buffer) wchar_t: 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. wchar_t connstr[4096] = { L'\0' }, outconnstr[4096] = { L'\0' }; data/libiodbc2-3.52.9/iodbcadm/macosx/dsnchooser.c:669:3: [2] (buffer) wchar_t: 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. wchar_t drv[1024] = { L'\0' }; data/libiodbc2-3.52.9/iodbcadm/macosx/dsnchooser.c:714:3: [2] (buffer) wchar_t: 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. wchar_t dsn[1024] = { L'\0' }; data/libiodbc2-3.52.9/iodbcadm/macosx/dsnchooser.c:774:3: [2] (buffer) wchar_t: 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. wchar_t connstr[4096] = { L'\0' }, tokenstr[4096] = { L'\0' }; data/libiodbc2-3.52.9/iodbcadm/macosx/dsnchooser.c:867:3: [2] (buffer) wchar_t: 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. wchar_t connstr[4096] = { L'\0' }, outconnstr[4096] = { L'\0' }; data/libiodbc2-3.52.9/iodbcadm/macosx/dsnchooser.c:1016:15: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[1024]; data/libiodbc2-3.52.9/iodbcadm/macosx/dsnchooser.c:1236:15: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char forkName[2048]; data/libiodbc2-3.52.9/iodbcadm/macosx/fdriverchoose.c:173: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 dsn[1024]; data/libiodbc2-3.52.9/iodbcadm/macosx/fdriverchoose.c:174: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 path[1024]; data/libiodbc2-3.52.9/iodbcadm/macosx/fdriverchoose.c:265: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 dsn[1024]; data/libiodbc2-3.52.9/iodbcadm/macosx/fdriverchoose.c:417:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dsn[1024]; data/libiodbc2-3.52.9/iodbcadm/macosx/fdriverchoose.c:516: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 dsn[1024]; data/libiodbc2-3.52.9/iodbcadm/macosx/fdriverchoose.c:517: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 path[1024]; data/libiodbc2-3.52.9/iodbcadm/macosx/fdriverchoose.c:627: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 tokenstr[4096] = { 0 }; data/libiodbc2-3.52.9/iodbcadm/macosx/fdriverchoose.c:635: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 path[1024]; data/libiodbc2-3.52.9/iodbcadm/macosx/filedsn.c:95: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 FDSN_type[MAX_ROWS]; data/libiodbc2-3.52.9/iodbcadm/macosx/filedsn.c:520:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key[512]; data/libiodbc2-3.52.9/iodbcadm/macosx/filedsn.c:575: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 str[1024], path[1024]; data/libiodbc2-3.52.9/iodbcadm/macosx/filedsn.c:583: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 entries[4096]; data/libiodbc2-3.52.9/iodbcadm/macosx/filedsn.c:625: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. char value[1024]; data/libiodbc2-3.52.9/iodbcadm/macosx/filedsn.c:736:15: [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. s = strcpy(drv, "DRIVER="); data/libiodbc2-3.52.9/iodbcadm/macosx/filedsn.c:786:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[1024]; data/libiodbc2-3.52.9/iodbcadm/macosx/filedsn.c:836: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 connstr[4096] = { 0 }; data/libiodbc2-3.52.9/iodbcadm/macosx/filedsn.c:847:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[1024]; data/libiodbc2-3.52.9/iodbcadm/macosx/filedsn.c:891:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[4096]; data/libiodbc2-3.52.9/iodbcadm/macosx/filedsn.c:946: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 drvbuf[4096] = { L'\0'}; data/libiodbc2-3.52.9/iodbcadm/macosx/gensetup.c:491:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[1024], msg1[1024]; data/libiodbc2-3.52.9/iodbcadm/macosx/gensetup.c:534:23: [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 (gensetup_t->connstr, cour, size); data/libiodbc2-3.52.9/iodbcadm/macosx/gensetup.c:590:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[1024]; data/libiodbc2-3.52.9/iodbcadm/macosx/getfpn.c:156:11: [2] (buffer) wchar_t: 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. wchar_t volwchar[1024]; data/libiodbc2-3.52.9/iodbcadm/macosx/getfpn.c:172:15: [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(pathname, "/Volumes/"); data/libiodbc2-3.52.9/iodbcadm/macosx/gui.h:209:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char curr_dir[1024]; data/libiodbc2-3.52.9/iodbcadm/macosx/keyval.c:471:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[1024], msg1[1024]; data/libiodbc2-3.52.9/iodbcadm/macosx/keyval.c:489:15: [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 (keyval_t->connstr, cour, size); data/libiodbc2-3.52.9/iodbcadm/macosx/messagebox.c:91: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 buf[1024]; data/libiodbc2-3.52.9/iodbcadm/macosx/translatorchooser.c:171: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 _date[1024], _size[1024]; data/libiodbc2-3.52.9/iodbcadm/macosx/translatorchooser.c:172:3: [2] (buffer) wchar_t: 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. wchar_t driver[1024]; data/libiodbc2-3.52.9/iodbcadm/macosx/translatorchooser.c:295:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (_size, "%d Kb", (int) (_stat.st_size / 1024)); data/libiodbc2-3.52.9/iodbcinst/SQLConfigDataSource.c:245: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 name[1024] = { 0 }; data/libiodbc2-3.52.9/iodbcinst/SQLConfigDataSource.c:437: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 (name, "/Contents/MacOS/iODBCdrvproxy"); data/libiodbc2-3.52.9/iodbcinst/SQLConfigDriver.c:183: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 name[1024] = { 0 }; data/libiodbc2-3.52.9/iodbcinst/SQLConfigDriver.c:357: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 (name, "/Contents/MacOS/iODBCdrvproxy"); data/libiodbc2-3.52.9/iodbcinst/SQLCreateDataSource.c:114: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 dsn[1024] = { 0 }; data/libiodbc2-3.52.9/iodbcinst/SQLCreateDataSource.c:124: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 name[1024] = { 0 }; data/libiodbc2-3.52.9/iodbcinst/SQLGetInstalledDrivers.c:111: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 buffer[4096], desc[1024], *ptr, *oldBuf = lpszBuf; data/libiodbc2-3.52.9/iodbcinst/SQLGetInstalledDrivers.c:229:10: [2] (buffer) wchar_t: 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. (((wchar_t *) oldBuf)[0] ? SQL_TRUE : SQL_FALSE); data/libiodbc2-3.52.9/iodbcinst/SQLGetPrivateProfileString.c:166: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 pathbuf[1024]; data/libiodbc2-3.52.9/iodbcinst/SQLGetTranslator.c:141: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 translator[1024]; data/libiodbc2-3.52.9/iodbcinst/SQLGetTranslator.c:146: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 name[1024] = { 0 }; data/libiodbc2-3.52.9/iodbcinst/SQLInstallDriverEx.c:112: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 path[1024]; data/libiodbc2-3.52.9/iodbcinst/SQLManageDataSource.c:110: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 name[1024] = { 0 }; data/libiodbc2-3.52.9/iodbcinst/SQLReadFileDSN.c:95: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 filename[1024]; data/libiodbc2-3.52.9/iodbcinst/SQLWriteDSNToIni.c:96: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 szBuffer[4096]; data/libiodbc2-3.52.9/iodbcinst/SQLWriteFileDSN.c:93: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 filename[1024]; data/libiodbc2-3.52.9/iodbcinst/SQLWritePrivateProfileString.c:145: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 pathbuf[1024]; data/libiodbc2-3.52.9/iodbcinst/dlf.c:378: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 buf[1024]; data/libiodbc2-3.52.9/iodbcinst/dlf.c:694: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 filename[NAM$C_MAXRSS]; /* $PARSEd image name */ data/libiodbc2-3.52.9/iodbcinst/dlf.c:705:8: [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 dlerror_buf[256]; data/libiodbc2-3.52.9/iodbcinst/dlf.c:852: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 (dlerror_buf, "Message number %8X", saved_status); data/libiodbc2-3.52.9/iodbcinst/dlf.c:1066:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char errbuf[640]; data/libiodbc2-3.52.9/iodbcinst/dlf.c:1186: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(errbuf, "NSLinkModule() failed for dlopen() ([%.256s][%.256s])", data/libiodbc2-3.52.9/iodbcinst/dlf.c:1249: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 symbol2[1024]; data/libiodbc2-3.52.9/iodbcinst/inifile.c:253:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open (pconfig->fileName, O_RDONLY | O_BINARY)) == -1) data/libiodbc2-3.52.9/iodbcinst/inifile.c:516: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 (newBase, p->entries, p->numEntries * sizeof (TCFGENTRY)); data/libiodbc2-3.52.9/iodbcinst/inifile.c:946:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fp = fopen (pconfig->fileName, "w")) == NULL) data/libiodbc2-3.52.9/iodbcinst/inifile.c:975: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 pathbuf[1024]; data/libiodbc2-3.52.9/iodbcinst/inifile.c:1212: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 (szKeysSection, "-Keys"); data/libiodbc2-3.52.9/iodbcinst/misc.c:240:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int f = open ((char *) buf, O_CREAT, data/libiodbc2-3.52.9/iodbcinst/misc.c:290:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int f = open ((char *) buf, O_CREAT, data/libiodbc2-3.52.9/iodbcinst/misc.c:320:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int f = open ((char *) buf, O_CREAT, data/libiodbc2-3.52.9/iodbcinst/misc.c:340:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int f = open ((char *) buf, O_CREAT, data/libiodbc2-3.52.9/iodbcinst/unicode.h:127:2: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_ACP, 0, a, cb, w, cb) data/libiodbc2-3.52.9/mac/iODBCcfmbridge/iodbccfm.c:164:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[1024], msg1[1024]; data/libiodbc2-3.52.9/mac/iODBCcfmbridge/iodbccfm.c:167: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 (msg + 1, text, msg[0] = STRLEN(text)); data/libiodbc2-3.52.9/mac/iODBCcfmbridge/iodbccfm.c:168: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 (msg1 + 1, errmsg, msg1[0] = STRLEN(errmsg)); data/libiodbc2-3.52.9/samples/iodbctest.c:108:2: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_ACP, 0, a, -1, w, cb) data/libiodbc2-3.52.9/samples/iodbctest.c:675: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 buf[4096]; data/libiodbc2-3.52.9/include/iodbc.h:108:25: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). #define STRNCPY(t,s,n) (strncpy((char*)(t), (char*)(s), (size_t)(n))) data/libiodbc2-3.52.9/include/iodbc.h:110:25: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. #define STRNCAT(t,s,n) (strncat((char*)(t), (char*)(s), (size_t)(n))) data/libiodbc2-3.52.9/include/iodbc.h:113: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). #define STRLEN(str) ((str)? strlen((char*)(str)):0) data/libiodbc2-3.52.9/include/iodbc.h:119:26: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). #define WCSNCPY(t,s,n) (wcsncpy((wchar_t*)(t), (wchar_t*)(s), (size_t)(n))) data/libiodbc2-3.52.9/include/iodbc.h:121:26: [1] (buffer) wcsncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or automatically resizing strings. #define WCSNCAT(t,s,n) (wcsncat((wchar_t*)(t), (wchar_t*)(s), (size_t)(n))) data/libiodbc2-3.52.9/include/iodbc.h:124:30: [1] (buffer) wcslen: 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). #define WCSLEN(str) ((str)? wcslen((wchar_t*)(str)):0) data/libiodbc2-3.52.9/include/iodbc.h:184:25: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. #define STRNCAT(t,s,n) (strncat((char*)(t), (char*)(s), (size_t)(n))) data/libiodbc2-3.52.9/include/iodbc.h:196:25: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. #define STRNCAT(t,s,n) (strncat((char*)(t), (char*)(s), (size_t)(n))) data/libiodbc2-3.52.9/iodbc/connect.c:1036: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). if (tmp_drv[strlen (drv) - 1] == '}') data/libiodbc2-3.52.9/iodbc/connect.c:1037: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). tmp_drv[strlen (drv) - 1] = '\0'; data/libiodbc2-3.52.9/iodbc/connect.c:1727:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(drv_value, pconfig->value, sizeof(drv_value)); data/libiodbc2-3.52.9/iodbc/connect.c:1737:3: [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(buf, "DRIVER=", buf_sz); data/libiodbc2-3.52.9/iodbc/connect.c:2413:52: [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). *(SQLSMALLINT *) pcbConnStrOut = strlen (szConnStrOut); data/libiodbc2-3.52.9/iodbc/connect.c:2571:9: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). wcsncpy (prov, connStrIn, sizeof (prov) / sizeof (wchar_t)); data/libiodbc2-3.52.9/iodbc/connect.c:2896: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). *(SQLSMALLINT *) pcbConnStrOut = strlen (szConnStrOut); data/libiodbc2-3.52.9/iodbc/herr.c:1529: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). int len = strlen (szval), len1; data/libiodbc2-3.52.9/iodbc/herr.c:1794: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). int len = strlen (szval); data/libiodbc2-3.52.9/iodbc/herr.c:1801:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). *pnStringLengthPtr = strlen (szval); data/libiodbc2-3.52.9/iodbc/hstmt.c:1245: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). size = strlen((char *) pData); data/libiodbc2-3.52.9/iodbc/trace/trace.c:201: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). buf = (char *) malloc (buf_len = strlen (trace_fname_template) + sizeof (tmp) + 1); data/libiodbc2-3.52.9/iodbc/trace/trace.c:241: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). buf_pos += strlen (tmp); data/libiodbc2-3.52.9/iodbc/trace/trace.c:256: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). buf_pos += strlen (tmp); data/libiodbc2-3.52.9/iodbc/trace/trace.c:279: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). buf_pos += strlen (tmp); data/libiodbc2-3.52.9/iodbc/trace/trace.c:289: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). buf_pos += strlen (tmp); data/libiodbc2-3.52.9/iodbc/trace/trace.c:303: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). buf_pos += strlen (tmp); data/libiodbc2-3.52.9/iodbc/trace/trace.c:1019:14: [1] (buffer) wcslen: 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). length = wcslen (str); data/libiodbc2-3.52.9/iodbcadm/drvconn.c:235:3: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). wcsncpy (string, szInOutConnStr, cbInOutConnStr); data/libiodbc2-3.52.9/iodbcadm/gtk/administrator.c:173: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). _date[strlen (_date) - 1] = '\0'; /* remove last \n */ data/libiodbc2-3.52.9/iodbcadm/gtk/administrator.c:555:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (choose_t.timeout, cptimeout, sizeof(choose_t.timeout)-1); data/libiodbc2-3.52.9/iodbcadm/gtk/administrator.c:556:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (choose_t.probe, cpprobe, sizeof(choose_t.probe)-1); data/libiodbc2-3.52.9/iodbcadm/gtk/administrator.c:557:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (choose_t.driver, szDriver, sizeof(choose_t.driver)-1); data/libiodbc2-3.52.9/iodbcadm/gtk/connectionpooling.c:89:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (connectionpool_t->timeout, data/libiodbc2-3.52.9/iodbcadm/gtk/connectionpooling.c:92:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (connectionpool_t->probe, data/libiodbc2-3.52.9/iodbcadm/gtk/driverchooser.c:625: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 (strlen(dsn) < 1) data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:973: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 (connstr); data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:987: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). add_len = 1 + strlen (curr); /* +1 for ';' */ data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:1009: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). add_len = strlen (";SAVEFILE=") + strlen (dsn); data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:1009: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). add_len = strlen (";SAVEFILE=") + strlen (dsn); data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:1066:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(key, curr, sz); data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:1128:54: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (sizeof(drv) > WCSLEN(drvchoose_t.driver) + strlen("DRIVER=")) data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:1131: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). s += strlen("DRIVER="); data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:1233: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). add_len = strlen ("DRIVER=") + strlen (value) + 1; data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:1233: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). add_len = strlen ("DRIVER=") + strlen (value) + 1; data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:1240: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). add_len = strlen (p) + 1 + strlen (value) + 1; data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:1240: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). add_len = strlen (p) + 1 + strlen (value) + 1; data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:1429:8: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(choose_t->curr_dir, temp, sizeof(choose_t->curr_dir)); data/libiodbc2-3.52.9/iodbcadm/gtk/dsnchooser.c:1450:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(choose_t->curr_dir, array[0], sizeof(choose_t->curr_dir)); data/libiodbc2-3.52.9/iodbcadm/gtk/main.c:137: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 ((entry = (char *) malloc (strlen (name) + strlen (value) + 2)) == NULL) data/libiodbc2-3.52.9/iodbcadm/gtk/main.c:137:49: [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 ((entry = (char *) malloc (strlen (name) + strlen (value) + 2)) == NULL) data/libiodbc2-3.52.9/iodbcadm/gtk/main.c:140: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 (entry, "="); data/libiodbc2-3.52.9/iodbcadm/macosx/administrator.c:1074:4: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat (tokenstr, (char *)&file.name[1], file.name[0]); data/libiodbc2-3.52.9/iodbcadm/macosx/administrator.c:1124:4: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat (tokenstr, &file.name[1], file.name[0]); data/libiodbc2-3.52.9/iodbcadm/macosx/driversetup.c:374:4: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat (tokenstr, &file.name[1], file.name[0]); data/libiodbc2-3.52.9/iodbcadm/macosx/driversetup.c:417:4: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat (tokenstr, &file.name[1], file.name[0]); data/libiodbc2-3.52.9/iodbcadm/macosx/fdriverchoose.c:324: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). if (strlen(dsn) < 1) data/libiodbc2-3.52.9/iodbcadm/macosx/fdriverchoose.c:428: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 (strlen(dsn) < 1) data/libiodbc2-3.52.9/iodbcadm/macosx/fdriverchoose.c:669:4: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat (tokenstr, &file.name[1], file.name[0]); data/libiodbc2-3.52.9/iodbcadm/macosx/filedsn.c:220: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). if (prov[strlen(prov) - 1] == '/' && strlen(prov) > 1) data/libiodbc2-3.52.9/iodbcadm/macosx/filedsn.c:220:40: [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 (prov[strlen(prov) - 1] == '/' && strlen(prov) > 1) data/libiodbc2-3.52.9/iodbcadm/macosx/filedsn.c:221: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). prov[strlen(prov) - 1] = 0; data/libiodbc2-3.52.9/iodbcadm/macosx/filedsn.c:229: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). if (strlen(prov) > 1) data/libiodbc2-3.52.9/iodbcadm/macosx/filedsn.c:249:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(dsnchoose_t->curr_dir, prov, sizeof(dsnchoose_t->curr_dir)); data/libiodbc2-3.52.9/iodbcadm/macosx/filedsn.c:456: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 (connstr); data/libiodbc2-3.52.9/iodbcadm/macosx/filedsn.c:470: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). add_len = 1 + strlen (curr); /* +1 for ';' */ data/libiodbc2-3.52.9/iodbcadm/macosx/filedsn.c:492: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). add_len = strlen (";SAVEFILE=") + strlen (dsn); data/libiodbc2-3.52.9/iodbcadm/macosx/filedsn.c:492: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). add_len = strlen (";SAVEFILE=") + strlen (dsn); data/libiodbc2-3.52.9/iodbcadm/macosx/filedsn.c:549:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(key, curr, sz); data/libiodbc2-3.52.9/iodbcadm/macosx/filedsn.c:600:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (*curr_dir == '/' && strlen(curr_dir) == 1) data/libiodbc2-3.52.9/iodbcadm/macosx/filedsn.c:641: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). add_len = strlen ("DRIVER=") + strlen (value) + 1; data/libiodbc2-3.52.9/iodbcadm/macosx/filedsn.c:641:54: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). add_len = strlen ("DRIVER=") + strlen (value) + 1; data/libiodbc2-3.52.9/iodbcadm/macosx/filedsn.c:648: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). add_len = strlen (p) + 1 + strlen (value) + 1; data/libiodbc2-3.52.9/iodbcadm/macosx/filedsn.c:648:46: [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). add_len = strlen (p) + 1 + strlen (value) + 1; data/libiodbc2-3.52.9/iodbcadm/macosx/filedsn.c:734:54: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (sizeof(drv) > WCSLEN(drvchoose_t.driver) + strlen("DRIVER=")) data/libiodbc2-3.52.9/iodbcadm/macosx/filedsn.c:737: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). s += strlen("DRIVER="); data/libiodbc2-3.52.9/iodbcadm/macosx/getfpn.c:116: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). (char *) malloc ((pathname ? strlen (pathname) : 0) + data/libiodbc2-3.52.9/iodbcadm/macosx/getfpn.c:119:4: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat (pathname, (char *) dir + 1, (unsigned char) dir[0]); data/libiodbc2-3.52.9/iodbcadm/macosx/getfpn.c:126: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). (char *) malloc ((pathname ? strlen (pathname) : 0) + data/libiodbc2-3.52.9/iodbcadm/macosx/getfpn.c:129:4: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat (pathname, (char *) dir + 1, (unsigned char) dir[0]); data/libiodbc2-3.52.9/iodbcadm/macosx/getfpn.c:170: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). (char*) malloc ((pathname ? strlen (pathname) : 0) + data/libiodbc2-3.52.9/iodbcadm/macosx/getfpn.c:171: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). volname.length + strlen("/Volumes/") + 2); data/libiodbc2-3.52.9/iodbcinst/inifile.c:257:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (mem == NULL || read (fd, mem, sb.st_size) != sb.st_size) data/libiodbc2-3.52.9/iodbcinst/inifile.c:335: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 (endPtr = &str[strlen (str) - 1]; endPtr >= str && isspace (*endPtr); data/libiodbc2-3.52.9/iodbcinst/inifile.c:855: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). if (e[j].id && (l = strlen (e[j].id)) > m) data/libiodbc2-3.52.9/iodbcinst/inifile.c:1002: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). sect_len = strlen (pCfg->section) + 1; data/libiodbc2-3.52.9/iodbcinst/inifile.c:1033: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). sect_len = strlen (pCfg->id) + 1; data/libiodbc2-3.52.9/iodbcinst/inifile.c:1210: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). szKeysSection = (char *) calloc (strlen (szDriver) + 6, sizeof (char)); data/libiodbc2-3.52.9/iodbcinst/inifile.c:1269:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (szCurr = lpszDriver + strlen (lpszDriver) + 1; *szCurr; data/libiodbc2-3.52.9/iodbcinst/inifile.c:1270: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). szCurr += strlen (szCurr) + 1) data/libiodbc2-3.52.9/iodbcinst/misc.c:513: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). return(dlen + strlen(s)); data/libiodbc2-3.52.9/iodbcinst/unicode.c:97:1: [1] (buffer) wcslen: 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). wcslen (const wchar_t * wcs) data/libiodbc2-3.52.9/iodbcinst/unicode.c:125:1: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). wcsncpy (wchar_t * wcd, const wchar_t * wcs, size_t n) data/libiodbc2-3.52.9/iodbcinst/unicode.c:262:11: [1] (buffer) wcslen: 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 = wcslen (inStr); data/libiodbc2-3.52.9/iodbcinst/unicode.c:290: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). len = strlen ((char *) inStr); data/libiodbc2-3.52.9/iodbcinst/unicode.c:320: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). length = strlen ((char *) inStr); data/libiodbc2-3.52.9/iodbcinst/unicode.c:356:12: [1] (buffer) wcslen: 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). length = wcslen (inStr); data/libiodbc2-3.52.9/iodbcinst/unicode.c:388: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). length = strlen ((char *) sourStr); data/libiodbc2-3.52.9/iodbcinst/unicode.c:404:12: [1] (buffer) wcslen: 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). length = wcslen (sourStr); data/libiodbc2-3.52.9/iodbcinst/unicode.h:139:8: [1] (buffer) wcslen: 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 wcslen (const wchar_t * wcs); data/libiodbc2-3.52.9/iodbcinst/unicode.h:145:11: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). wchar_t * wcsncpy (wchar_t * wcd, const wchar_t * wcs, size_t n); data/libiodbc2-3.52.9/samples/iodbctest.c:103:20: [1] (buffer) wcslen: 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). #define TXTLEN(x) wcslen((wchar_t *) x) data/libiodbc2-3.52.9/samples/iodbctest.c:117: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). #define TXTLEN(x) strlen((char *) x) data/libiodbc2-3.52.9/samples/iodbctest.c:147: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). length = strlen (sourStr); data/libiodbc2-3.52.9/samples/iodbctest.c:257: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). dataSource[strlen ((char *) dataSource) - 1] = '\0'; ANALYSIS SUMMARY: Hits = 511 Lines analyzed = 89291 in approximately 2.26 seconds (39572 lines/second) Physical Source Lines of Code (SLOC) = 58677 Hits@level = [0] 134 [1] 103 [2] 270 [3] 16 [4] 122 [5] 0 Hits@level+ = [0+] 645 [1+] 511 [2+] 408 [3+] 138 [4+] 122 [5+] 0 Hits/KSLOC@level+ = [0+] 10.9924 [1+] 8.70869 [2+] 6.95332 [3+] 2.35186 [4+] 2.07918 [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.