Skip to content

Commit 2d3c440

Browse files
committed
Bump maxTocSize to 150 MB
We have seen an image with: - total size 1.43 GB - uncompressed zstd:chunked manifest size of 91.7 MB - uncompressed tar-split size (not constrained by maxTocSize) 310 MB Without more infrastructure, we are just guessing about what the system we are running on can support, so, for now, *shrug*, bump the number. Eventually we should stream the data from/to disk, making this much less relevant; that makes building the infrastructure to estimate available memory unattractive. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
1 parent 19ce25a commit 2d3c440

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/chunked/compression_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
const (
2424
// maxTocSize is the maximum size of a blob that we will attempt to process.
2525
// It is used to prevent DoS attacks from layers that embed a very large TOC file.
26-
maxTocSize = (1 << 20) * 50
26+
maxTocSize = (1 << 20) * 150
2727
)
2828

2929
var typesToTar = map[string]byte{

0 commit comments

Comments
 (0)