-
Notifications
You must be signed in to change notification settings - Fork 483
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ORC-1528: Fix readBytes potential overflow in RecordReaderUtils.Chunk…
…Reader#create - I have adjusted the calculation of `reqBytes` and `readBytes` ranges in the `org.apache.orc.impl.RecordReaderUtils.ChunkReader#create` method from `Integer` to `Long`, and added validation for `Integer` overflow - Adds more test cases This PR aims to fix [ORC-1528](https://issues.apache.org/jira/browse/ORC-1528) org.apache.orc.impl.TestRecordReaderUtils#testBufferChunkOffsetExceedsMaxInt Closes #1662 from yebukong/main. Lead-authored-by: yebukong <yebukong@qq.com> Co-authored-by: yebukong <yebukong@live.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> (cherry picked from commit e554765) Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
- Loading branch information
1 parent
c3604ae
commit 3600346
Showing
3 changed files
with
87 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters