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

Don't allow passing unsupported client flags to mysql_real_connect ()

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Critical
    • Resolution: Unresolved
    • 3.1.10
    • 3.3, 3.4
    • Security
    • None

    Description

      Passing an unsupported client capability flag in mysql_real_connect might lead to unexpected behavior and crashes.

      #define CLIENT_DEPRECATE_EOF (1ULL << 24)
       
      unsigned long client_flags = CLIENT_REMEMBER_OPTIONS | CLIENT_DEPRECATE_EOF;
       
      if (mysql_real_connect(mysql, host, user, password, db, 0, NULL, client_flags))
      {
        printf("error: %s\n", mysql_error(mysql));
      }
      

      Attachments

        Activity

          People

            georg Georg Richter
            georg Georg Richter
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

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