Uploaded image for project: 'MariaDB Connector/ODBC'
  1. MariaDB Connector/ODBC
  2. ODBC-110

Unbinding columns after execution and before fetching new result causes crash in the connector

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 3.0.1
    • 3.0.2
    • None
    • None

    Description

      Summary is pretty descriptive. The testcase
      ODBC_TEST(t_unbind_before_fetch)

      { SQLUINTEGER dummy; OK_SIMPLE_STMT(Stmt, "SELECT 1"); CHECK_STMT_RC(Stmt, SQLFreeStmt(Stmt, SQL_UNBIND)); CHECK_STMT_RC(Stmt, SQLBindCol(Stmt, 1, SQL_C_ULONG, &dummy, 0, NULL)); CHECK_STMT_RC(Stmt, SQLFetchScroll(Stmt, SQL_FETCH_NEXT, 1)); return OK; }

      Crash occurs in the call of SQLFetchScroll. Can be SQLFetch, as well.
      Affects (at least) Microsoft ODBC test tool. 2.0 doesn't seem to be vulnerable

      Attachments

        Activity

          Transition Time In Source Status Execution Times
          Lawrin Novitsky made transition -
          Open Closed
          11h 6m 1

          People

            Lawrin Lawrin Novitsky
            Lawrin Lawrin Novitsky
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.