orc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thippana Vamsi Kalyan (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ORC-492) ArrayIndexOutOfBoundsException in OrcFile
Date Thu, 18 Apr 2019 06:44:00 GMT
Thippana Vamsi Kalyan created ORC-492:

             Summary: ArrayIndexOutOfBoundsException in OrcFile
                 Key: ORC-492
                 URL: https://issues.apache.org/jira/browse/ORC-492
             Project: ORC
          Issue Type: Bug
            Reporter: Thippana Vamsi Kalyan


Earlier code did not handle possible negative values for array index, and latest code handles
the case.

Following is the check that handles negative index value. Based on code review, I see an issue
with code when (versions.length == val).

if (val < 0 || versions.length < val) {
 return FUTURE;
WriterVersion result = versions[val];

In case versions.length == val, it should still throw ArrayIndexOutOfBoundsException

This message was sent by Atlassian JIRA

View raw message