Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-3923

BufferedTupleStream::GetRows() can overflow 32-bit int

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • Impala 2.7.0
    • Impala 2.7.0
    • Backend

    Description

      GetRows() tries to read an entire stream into a RowBatch. The stream num_rows is a 64-bit int but the RowBatch num_rows is a 32-bit int. If GetRows() is called with num_rows > INT_MAX the likely result is a crash

      The GetRows() API has other flaws (IMPALA-2758) but it would be good to avoid this particular crash.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            tarmstrong Tim Armstrong
            tarmstrong Tim Armstrong
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment