You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Laurent Goujon (JIRA)" <ji...@apache.org> on 2017/07/12 05:18:00 UTC

[jira] [Created] (DRILL-5668) C++ connector crash when query error message is too long

Laurent Goujon created DRILL-5668:
-------------------------------------

             Summary: C++ connector crash when query error message is too long
                 Key: DRILL-5668
                 URL: https://issues.apache.org/jira/browse/DRILL-5668
             Project: Apache Drill
          Issue Type: Bug
          Components: Client - C++
    Affects Versions: 1.10.0
            Reporter: Laurent Goujon
            Assignee: Laurent Goujon
             Fix For: 1.11.0


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



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)