Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-252

Incorrect use of snprintf

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.2.0
    • Component/s: schemarouter
    • Labels:
      None
    • Environment:
      All

      Description

      Line 1704 of shardrouter.c is liable to have unpredictable and probably fatal consequences:

      snprintf(errbuf,"Unknown database: %s",db);

      since the second parameter should be the number of characters to be used.

        Attachments

          Activity

            People

            Assignee:
            markus makela markus makela
            Reporter:
            martin brampton martin brampton (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.