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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.10.0
    • 1.11.0
    • Client - C++
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: