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

mem_root->flags corruption in calculate_block_sizes

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 10.7(EOL), 10.8(EOL), 10.9(EOL), 10.10(EOL), 10.11, 11.1(EOL)
    • 10.9.8, 10.11.5, 11.0.3
    • Server
    • None

    Description

      &= changes mem_root->flags, which makes condition always true
      Probably & should be used instead of &=

      mysys/my_alloc.c

        if (mem_root->flags&= ROOT_FLAG_MPROTECT)         <<--
        {
          mem_root->block_size= MY_ALIGN(block_size, my_system_page_size);
          if (pre_alloc)
            pre_alloc= MY_ALIGN(pre_alloc, my_system_page_size);
        }
      

      Attachments

        Activity

          Transition Time In Source Status Execution Times
          Daniel Black made transition -
          Open Confirmed
          2d 21h 32m 1
          Daniel Black made transition -
          Confirmed In Review
          4m 15s 1
          Michael Widenius made transition -
          In Review Closed
          17d 6h 42m 1

          People

            monty Michael Widenius
            yury.chaikou Yury Chaikou
            Votes:
            0 Vote for this issue
            Watchers:
            4 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.