Skip to content

Import of a .tar.gz archive silently terminates upon encountering a file with size > 2GB #2768

@makovic17

Description

@makovic17

Description

The TarFileStructureProvider utility utilizes historical archive stream parsing logic derived
from standard header reading algorithms (TarEntry).
While processing a .tar.gz payload sequentially during File -> Import -> Existing Projects into Workspace,
the loop crashes if a single file within the project structure has a file size exceeding 2 GB.

The wizard finishes execution gracefully without displaying error warnings to the end-user,
while abandoning all remaining files.

Steps to Reproduce:

  • Create an empty Eclipse project.
  • In a terminal, populate the project folder structure sequentially with three files:
    01_start.txt (0 bytes)
    02_large_file_3GB.bin
    03_end.txt (0 bytes)
  • Refresh the project hierarchy in Eclipse (F5), then export via General -> Archive File into a .tar.gz.
  • Delete the workspace project.
  • Attempt to map the project back into the IDE using Existing Projects into Workspace selecting the newly compiled .tar.gz.

Actual Result:

01_start.txt is successfully imported. The wizard stops on 02_large_file.bin and finishes without throwing an exception. 03_end.txt is also missing from the final workspace project.

Eclipse Version

All versions utilizing the internal TarFileStructureProvider stream reader loops.
(Verified with version: 4.36.0.v20250528-2229)

Environment:

Verified on Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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