[Bug 291567] bsdtar produces corrupted gzip/zstd streams when writing compressed archives to stdout, while the same commands using -f file create valid archives.

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 12 Dec 2025 23:07:48 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291567

--- Comment #4 from Dmitrij Nexus <fbsd.4f6a@nexus.tel> ---
(In reply to Dmitrij Nexus from comment #3)

There is positive progress on the upstream issue (libarchive/libarchive#2810).

dag-erling commented:
"If libarchive claims to produce a zstd stream then that stream should be
valid. 
Padding cannot just be zeroes but must be in the form of a zstd skippable
frame. 
I will try to come up with a patch."
https://github.com/libarchive/libarchive/issues/2810#issuecomment-3647256760

I agree - producing invalid compressed streams is unacceptable regardless of 
"documented behavior". The output should be valid for the format it claims to
be.

-- 
You are receiving this mail because:
You are the assignee for the bug.