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

mariadb-10.2.8/storage/mroonga/lib/mrn_path_mapper.cpp: 4 * cart before horse ?

    XMLWordPrintable

    Details

      Description

      mariadb-10.2.8/storage/mroonga/lib/mrn_path_mapper.cpp:64]: (style) Array index 'i' is used before limits check.
      

      Source code is

            while (original_mysql_path_[i] != FN_LIBCHAR && i < len) {
              db_path_[j++] = original_mysql_path_[i++];
      

      Some duplicates:

      mariadb-10.2.8/storage/mroonga/lib/mrn_path_mapper.cpp:94]: (style) Array index 'i' is used before limits check.
      mariadb-10.2.8/storage/mroonga/lib/mrn_path_mapper.cpp:127]: (style) Array index 'i' is used before limits check.
      mariadb-10.2.8/storage/mroonga/lib/mrn_path_mapper.cpp:139]: (style) Array index 'i' is used before limits check.
      

        Attachments

          Activity

            People

            Assignee:
            kou Kouhei Sutou
            Reporter:
            dcb David Binderman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.