]> Cypherpunks repositories - gostls13.git/commit
archive/tar, compress/bzip2: base64 some troublesome testdata files
authorIan Lance Taylor <iant@golang.org>
Fri, 12 Dec 2025 22:18:13 +0000 (14:18 -0800)
committerGopher Robot <gobot@golang.org>
Mon, 15 Dec 2025 16:34:13 +0000 (08:34 -0800)
commit6713f46426c70f601ac33471d16be7b0e1aae349
treedb74ce8107ae5debd466b14158660b0d2600a133
parent388eb10f50f2b693fb68897dd0ddf627b512a885
archive/tar, compress/bzip2: base64 some troublesome testdata files

This avoids complaints from scanners that look for and open
tar and bz2 files, and complain if they look weird.
In this case, they do look weird, because they are intentionally strange.
This kind of thing shouldn't be necessary, but we already have the machinery
to do it so it's easy enough.

Fixes #76799

Change-Id: Ib302b3aef30108a1325f91fcb2d166f8e1863792
Reviewed-on: https://go-review.googlesource.com/c/go/+/729780
Reviewed-by: David Chase <drchase@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Joseph Tsai <joetsai@digital-static.net>
13 files changed:
src/archive/tar/reader_test.go
src/archive/tar/testdata/gnu-sparse-big.tar [deleted file]
src/archive/tar/testdata/gnu-sparse-big.tar.base64 [new file with mode: 0644]
src/archive/tar/testdata/neg-size.tar [deleted file]
src/archive/tar/testdata/neg-size.tar.base64 [new file with mode: 0644]
src/archive/tar/testdata/pax-sparse-big.tar [deleted file]
src/archive/tar/testdata/pax-sparse-big.tar.base64 [new file with mode: 0644]
src/archive/tar/testdata/writer-big-long.tar [deleted file]
src/archive/tar/testdata/writer-big-long.tar.base64 [new file with mode: 0644]
src/archive/tar/writer_test.go
src/compress/bzip2/bzip2_test.go
src/compress/bzip2/testdata/fail-issue5747.bz2 [deleted file]
src/compress/bzip2/testdata/fail-issue5747.bz2.base64 [new file with mode: 0644]