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

Char overflow in LimitRecordBatch

    XMLWordPrintableJSON

Details

    Description

      The variable named 'i' in 'limitWithNoSV' may overflow when fetch - offset > Character.MAX_VALUE - offset. eg. offset=0, fetch=65536.

      Code in limitWithNoSV:
      int svIndex = 0;
      for(char i = (char) offset; i < fetch; i++) {
      outgoingSv.setIndex(svIndex, i);
      svIndex++;
      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            徐波 徐波
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: