Skip to content

Error unpacking large file(>2G) #104

@xiaokanmengsi

Description

@xiaokanmengsi

Describe the bug
Error unpacking large file(>2G).

To Reproduce
When unpacking a large file(>2G),The program will report an error.

Expected behavior
I want to be able to unzip large files.

File
If possible, please attach or provide a link to the RAR file.
On line 124 of RandomAccessInputStream.readUntil() function ,the 'length' variable is int, wen the file length is large then Integer.MAX_VALUE, the 'length' variable whill be negative, then the program will not read the content.
Environment (please complete the following information):

  • OS: [Windows]
  • Junrar version: [7.5.3]

Additional context
Function RandomAccessInputStream.readUntil() put what you read in a vector, when the file is too large may happen OOM.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions