Add LongLink Support to Tar reading #644

Closed
opened 2026-01-29 22:15:12 +00:00 by claunia · 0 comments
Owner

Originally created by @DannyBoyk on GitHub (Jun 3, 2024).

We have to process some Tar files that contain the LongLink header type. Specially, they contain both a LongLink and a LongName header type for a hard link entry. Currently, SharpCompress will not handle the LongLink header properly and accidentally consume the following block as a file instead of as the long link name, resulting in an empty file named @././LongLink, at least, with the Tar file we are dealing with.

Originally created by @DannyBoyk on GitHub (Jun 3, 2024). We have to process some Tar files that contain the LongLink header type. Specially, they contain both a LongLink and a LongName header type for a hard link entry. Currently, SharpCompress will not handle the LongLink header properly and accidentally consume the following block as a file instead of as the long link name, resulting in an empty file named `@././LongLink`, at least, with the Tar file we are dealing with.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#644