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

Bug with multistatement prepared statement param realloc

    XMLWordPrintable

Details

    Description

      Example use case:
      Prepare the following SQL statement:
      "INSERT INTO tbl (a,b) VALUES (?,?); SELECT 1 FROM tbl WHERE c = ?"
      First execution of prepared statement will work, second execution will segfault or cause memory corruption.

      Problem is caused because parameter storage is reallocated for second sub-statement, but not re-adjusted for first sub-statement the next time prepared statement is executed.

      Attachments

        Activity

          People

            Lawrin Lawrin Novitsky
            joshuactm Joshua Colvin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0d
                0d
                Logged:
                Time Spent - 1h
                1h

                Git Integration

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