Uploaded image for project: 'MariaDB Connector/C++'
  1. MariaDB Connector/C++
  2. CONCPP-17

Some potential coding bugs

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 0.9.3
    • General
    • None

    Description

      Some random things when using ASAN and more warnings enabled:

      1. ColumnDefinitionCapi.cpp:105 I don't think *metadata->db is what you meant, compiler things you are doing NULL pointer arithmetic
      2. Utils.cpp:135 and Utils:162 return a constant as a char*
      3. A couple of use-after-free errors hit in mariadb_stmt.c:617. Not sure if that is a Connector/C or CPP issue. Found using TSAN
      4. libmariadb doesn't link with dl, fails in Fedora 32. Appears to work when compiling Connector/C on its own though.

      Attachments

        Activity

          People

            Unassigned Unassigned
            LinuxJedi Andrew Hutchings (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.