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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.1
    • Fix Version/s: 3.0.2
    • Component/s: None
    • Labels:
      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

            People

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

              Dates

              Created:
              Updated:
              Resolved: