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

mariadb-10.2.8/storage/maria/ma_loghandler.c:2730]: (style) Array index 'chunk_offset' is used before limits check.

Details

    • 10.2.10

    Description

      Source code is

       while (page[chunk_offset] != TRANSLOG_FILLER && chunk_offset < offset)
      

      Attachments

        Activity

          actually it is safe, because it returned by translog_get_first_chunk_offset which return offset in the page and offset is not 'limit' in the sense that all over if id some random memory, but yes it is better to fix to avoid such reports in future and have good example, thank you!

          sanja Oleksandr Byelkin added a comment - actually it is safe, because it returned by translog_get_first_chunk_offset which return offset in the page and offset is not 'limit' in the sense that all over if id some random memory, but yes it is better to fix to avoid such reports in future and have good example, thank you!

          People

            sanja Oleksandr Byelkin
            dcb David Binderman
            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.