Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-671

mthd_my_read_query_result segment fault at parsing session_track_info

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0
    • None
    • None
    • mariadb-connector-c: 3.0.2
      crash at: mthd_my_read_query_result (mysql=0x10a8d70) at ***/connector-c-prefix/src/connector-c/libmariadb/mariadb_lib.c:2048

    Description

      SESSION_TRACK_STATE_CHANGE should be treated differently from other trackers
      https://mariadb.com/kb/en/library/mysql_session_track_get_first/
      SESSION_TRACK_STATE_CHANGE:
      length encode int: "1" (changed) or "0" (unchanged).
      int<1> : boolean info;
      SESSION_TRACK_SYSTEM_VARIABLES:
      length encode int: length;
      length encode string: key;
      length encode string: value;

      attach with my candidate fix

      Attachments

        1. patch
          2 kB
          dapeng huang

        Activity

          People

            georg Georg Richter
            dapeng dapeng huang
            Votes:
            0 Vote for this issue
            Watchers:
            4 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.