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

mariadb_dyncol_list_named() leaks the result array when a column name cannot be read

    XMLWordPrintable

Details

    Description

      mariadb_dyncol_list_named() allocates the result array (*names) before it reads the column names from the packed dynamic column. If read_name() fails for one of the entries, the function returns ER_DYNCOL_FORMAT without freeing the array and without resetting *names:

      LEX_STRING tmp;
      if (read_name(&header, read, &tmp))
        return ER_DYNCOL_FORMAT;          /* *names is neither freed nor reset */
      

      Attachments

        Issue Links

          Activity

            People

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