Return-Path: X-Original-To: apmail-drill-dev-archive@www.apache.org Delivered-To: apmail-drill-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 43F5517F71 for ; Fri, 22 May 2015 07:31:18 +0000 (UTC) Received: (qmail 86487 invoked by uid 500); 22 May 2015 07:31:18 -0000 Delivered-To: apmail-drill-dev-archive@drill.apache.org Received: (qmail 86429 invoked by uid 500); 22 May 2015 07:31:18 -0000 Mailing-List: contact dev-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list dev@drill.apache.org Received: (qmail 86417 invoked by uid 99); 22 May 2015 07:31:18 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 May 2015 07:31:17 +0000 Date: Fri, 22 May 2015 07:31:17 +0000 (UTC) From: =?utf-8?Q?=E5=BE=90=E6=B3=A2_=28JIRA=29?= To: dev@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (DRILL-3168) Char overflow in LimitRecordBatch MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 =E5=BE=90=E6=B3=A2 created DRILL-3168: ------------------------- Summary: Char overflow in LimitRecordBatch=20 Key: DRILL-3168 URL: https://issues.apache.org/jira/browse/DRILL-3168 Project: Apache Drill Issue Type: Bug Affects Versions: 0.9.0 Reporter: =E5=BE=90=E6=B3=A2 The variable named 'i' in 'limitWithNoSV' may overflow when fetch - offset = > Character.MAX_VALUE - offset. eg. offset=3D0, fetch=3D65536.=20 Code in limitWithNoSV: int svIndex =3D 0; for(char i =3D (char) offset; i < fetch; i++) { outgoingSv.setIndex(svIndex, i); svIndex++; } -- This message was sent by Atlassian JIRA (v6.3.4#6332)