You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm pretty sure the issue is that by the time we call mergePAX(), the numBytesReader has already been configured with the wrong size, so even though we fix up the hdr.Size in mergePAX, it's too late for curr, the numBytesReader which is already a *regFileReader with nb=0.
The text was updated successfully, but these errors were encountered:
This is caused by #15564, where the general problem is that the PAX header (which records a size of 9GB) does not take precedence over the USTAR header (which records size of 0).
Factor out the regular file handling logic into handleRegularFile
from nextHeader. We will need to reuse this logic when fixing #15573
in a future CL.
Factor out the sparse file handling logic into handleSparseFile.
Currently this logic is split between nextHeader (for GNU sparse
files) and Next (for PAX sparse files). Instead, we move this
related code into a single method.
There is no overall logic change. Thus, no unit tests.
Updates #15573#15564
Change-Id: I3b8270d8b4e080e77d6c0df6a123d677c82cc466
Reviewed-on: https://go-review.googlesource.com/27454
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
go version go1.6.2 linux/amd64
go env
)tar -H pax
on linux:then I scanned the tar file using the
archive/tar
libraryHere's the utility program I used to do so, also as a gist
6e55...
(i.e., the SHA1 of 9GBs of NULs)Something like this:
I'm pretty sure the issue is that by the time we call
mergePAX()
, thenumBytesReader
has already been configured with the wrong size, so even though we fix up thehdr.Size
in mergePAX, it's too late forcurr
, thenumBytesReader
which is already a*regFileReader
with nb=0.The text was updated successfully, but these errors were encountered: