[Bug 11531] New: tar: archive with first member named BZh[1-9] is not handled correctly
bugzilla at busybox.net
bugzilla at busybox.net
Mon Nov 26 18:00:36 UTC 2018
https://bugs.busybox.net/show_bug.cgi?id=11531
Bug ID: 11531
Summary: tar: archive with first member named BZh[1-9] is not
handled correctly
Product: Busybox
Version: 1.33.x
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at busybox.net
Reporter: mgorny at gentoo.org
CC: busybox-cvs at busybox.net
Target Milestone: ---
If the first .tar member is named BZh[1-9], the archive is incorrectly
recognized as bzip2-compressed:
$ busybox tar -xf ustar.tar
tar: bunzip error -2
tar: short read
While such a filename is not very likely, it's a technically valid tarball.
To reproduce:
$ echo test > BZh5
$ tar -cf ustar.tar BZh5
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list