XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 3.0.4
    • 3.0.6
    • None
    • None

    Description

      covscan says:

      Error: BAD_FREE (CWE-763):
      mariadb-connector-c-3.0.4-src/libmariadb/mariadb_lib.c:1597: address_free: "mysql_init" frees address of "tmp_mysql".
      mariadb-connector-c-3.0.4-src/libmariadb/mariadb_lib.c:1007:5: freed_arg: "free" frees parameter "mysql".
      mariadb-connector-c-3.0.4-src/libmariadb/mariadb_lib.c:1628: address_free: "mysql_close" frees address of "tmp_mysql".
      mariadb-connector-c-3.0.4-src/libmariadb/mariadb_lib.c:1940:7: freed_arg: "free" frees parameter "mysql".
      # 1938|       mysql->net.pvio= 0;
      # 1939|       if (mysql->free_me)
      # 1940|->       free(mysql);
      # 1941|     }
      # 1942|     return;
      

      I tried to check that in the source code. It doesn't look like false positive to me, so I'm sending this to you to be sure.

      Attachments

        Activity

          People

            georg Georg Richter
            mschorm Michal Schorm
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.