You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Laurent Goujon (JIRA)" <ji...@apache.org> on 2015/12/24 03:38:49 UTC
[jira] [Created] (HADOOP-12677) DecompressorStream throws
IndexOutOfBoundsException when calling skip(long)
Laurent Goujon created HADOOP-12677:
---------------------------------------
Summary: DecompressorStream throws IndexOutOfBoundsException when calling skip(long)
Key: HADOOP-12677
URL: https://issues.apache.org/jira/browse/HADOOP-12677
Project: Hadoop Common
Issue Type: Bug
Reporter: Laurent Goujon
DecompressorStream.skip(long) throws an IndexOutOfBoundException when using a long bigger than Integer.MAX_VALUE
This is because of this cast from long to int: https://github.com/apache/hadoop-common/blob/HADOOP-3628/src/core/org/apache/hadoop/io/compress/DecompressorStream.java#L125
The fix is probably to do the cast after applying Math.min: in that case, it should not be an issue since it should not be bigger than the buffer size (512)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)