Fixed buffer overflow (Sebastian Gottschalk)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52489 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1912,7 +1912,7 @@ void wxDb::logError(const wxString &errMsg, const wxString &SQLState)
|
||||
}
|
||||
|
||||
wxStrncpy(errorList[pLast], errMsg, DB_MAX_ERROR_MSG_LEN);
|
||||
errorList[pLast][DB_MAX_ERROR_MSG_LEN] = 0;
|
||||
errorList[pLast][DB_MAX_ERROR_MSG_LEN-1] = 0;
|
||||
|
||||
if (SQLState.length())
|
||||
if ((dbStatus = TranslateSqlState(SQLState)) != DB_ERR_FUNCTION_SEQUENCE_ERROR)
|
||||
|
Reference in New Issue
Block a user