Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-5668

C++ connector crash when query error message is too long

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.10.0
    • Fix Version/s: 1.11.0
    • Component/s: Client - C++
    • Labels:
      None

      Description

      The C++ connector crashes if the query sent to the server is invalid and the error message returned by the server is too long.

      The cause of the crash is a call to a vsprintf function which takes a fixed sized char buffer, but doesn't take a size argument.

      https://github.com/apache/drill/blob/master/contrib/native/client/src/clientlib/errmsgs.cpp#L80

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                laurent Laurent Goujon
                Reporter:
                laurent Laurent Goujon
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: