Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-22393

Corruption for some SET GLOBAL innodb_… string variables

    XMLWordPrintable

    Details

      Description

      The MySQL 5.6.48 and MySQL 5.7.30 fix
      Bug #29717909 MEMORY LIFETIME OF VARIABLES BETWEEN CHECK AND UPDATE INCORRECTLY MANAGED
      includes a test case for a problem that affects MariaDB Server.
      Several MYSQL_SYSVAR_STR parameters that are assigning a pointer to a stack-allocated buffer in the validate callback function. This pointer would go stale after the function returns, causing the variables to read as garbage later. The bug is caught by Valgrind, but for some reason I did not get any diagnostics from AddressSanitizer.

      No MYSQL_SYSVAR_STR that are declared in MariaDB Server 5.5 for InnoDB or XtraDB are affected by this.

      The affected variables in MySQL 5.6 include the following:

      • innodb_ft_aux_table (modified but not completely fixed in MariaDB by MDEV-19445)
      • innodb_ft_server_stopword_table
      • innodb_ft_user_stopword_table (not covered by their test case)
      • innodb_buffer_pool_filename

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              marko Marko Mäkelä
              Reporter:
              marko Marko Mäkelä
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: