Skip to content

Commit

Permalink
worker: clarify maxFileSize purpose
Browse files Browse the repository at this point in the history
Fixes #237.
  • Loading branch information
jzelinskie committed Dec 20, 2016
1 parent 7d0f29b commit de1f09e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion worker/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ const (
// Increased each time the engine changes.
Version = 3

// maxFileSize is the maximum size of a single file we should extract.
// maxFileSize enforces a maximum size of a single file within a tarball that
// will be extracted. This protects against malicious layers that may contain
// extremely large package database files.
maxFileSize = 200 * 1024 * 1024 // 200 MiB
)

Expand Down

0 comments on commit de1f09e

Please sign in to comment.