drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 徐波 (JIRA) <j...@apache.org>
Subject [jira] [Created] (DRILL-3168) Char overflow in LimitRecordBatch
Date Fri, 22 May 2015 07:31:17 GMT
徐波 created DRILL-3168:
-------------------------

             Summary: Char overflow in LimitRecordBatch 
                 Key: DRILL-3168
                 URL: https://issues.apache.org/jira/browse/DRILL-3168
             Project: Apache Drill
          Issue Type: Bug
    Affects Versions: 0.9.0
            Reporter: 徐波


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++;
}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message