Closed smoser closed 4 years ago
Hi!
Thanks for submitting the sample. I could reproduce the problem and track it down to a faulty length accounting of the line length in the PAX header generated for the xattrs.
The header contains a list of plain ASCII key-value pairs that are prefixed with their length. The tricky part being that the length must include the number of digits required to represent the length itself.
There was a typo in the computation of the number of digits (> instead of >=). Your sample triggered the right condition that result was off and too many padding bytes were added, causing the following tar header to be misaligned.
Commit 692cbd0079658a8eb048c9b00dadec2d69d28b14 should fix the problem.
Thanks!
I've found an issue in tar creation using
sqfs2tar
. I'm attaching a image that shows the problem ( my-squashfs.img.gz). It is gzipped because github won't let me upload it otherwise.I'm running sqfs2tar from ubuntu's 20.10 deb (0.9-1).