Restore treats a single tar entry over 8 GiB as empty and succeeds #100

Open
opened 2026-11-28 21:55:29 +00:00 by jfro · 0 comments
Owner

Found by Nye while checking PR #97 (#96 backup/restore) at 39a2eb0. Low; the disk does not fill.

Erlang's :erl_tar reads a single crafted entry larger than 8 GiB (past the ustar size field) as empty. Restore then reports success with that table empty instead of refusing the archive.

Expected: restore refuses an archive whose entry sizes do not match what the manifest says (or any entry over the cap), and writes nothing.

Not in v1.4.

Found by Nye while checking PR #97 (#96 backup/restore) at 39a2eb0. Low; the disk does not fill. Erlang's `:erl_tar` reads a single crafted entry larger than 8 GiB (past the ustar size field) as empty. Restore then reports success with that table empty instead of refusing the archive. Expected: restore refuses an archive whose entry sizes do not match what the manifest says (or any entry over the cap), and writes nothing. Not in v1.4.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jfro/lamplighter#100
No description provided.