Uploaded image for project: 'MariaDB Connector/ODBC'
  1. MariaDB Connector/ODBC
  2. ODBC-503

Using long server version an evil server could make driver to write error message with the controlled negative offset

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 3.1.23, 3.2.9
    • 3.1.24, 3.2.10
    • General
    • None

    Description

      The driver historically used _snptintf that returns negative value if buffer is not long enough. That could make the calculated prefix len to be negative. That prefix len is used to calculate the position where to write error message.
      It's also a good opportunity to get rid of _snprintf completely as VS has snprintf since 2015 version already

      Attachments

        Issue Links

          Activity

            People

              Lawrin Lawrin Novitsky
              Lawrin Lawrin Novitsky
              Votes:
              0 Vote for this issue
              Watchers:
              1 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.