Use case · 16 files

Test archive extraction

Extracting user-supplied archives is a classic source of security bugs. These files cover the formats you need to support and the structural limits your extractor should enforce. Every file here is safe; see the guide for handling path traversal and compression bombs.

Download all with curl
Download 16 files (5.1 MB)Shell
# 16 files, 5.1 MB in total
while read -r url; do curl -LO --fail "$url"; done <<'EOF'
https://files.samplefiles.com/archive/zip/sample-folders.zip
https://files.samplefiles.com/archive/tar/sample.tar
https://files.samplefiles.com/archive/gz/sample.tar.gz
https://files.samplefiles.com/archive/bz2/sample.tar.bz2
https://files.samplefiles.com/archive/xz/sample.tar.xz
https://files.samplefiles.com/archive/7z/sample.7z
https://files.samplefiles.com/archive/zip/sample-password-protected.zip
https://files.samplefiles.com/archive/7z/sample-password-protected.7z
https://files.samplefiles.com/edge-cases/archives/nested-3-levels.zip
https://files.samplefiles.com/edge-cases/archives/1000-files.zip
https://files.samplefiles.com/edge-cases/archives/unicode-names.zip
https://files.samplefiles.com/edge-cases/archives/folders-only.zip
https://files.samplefiles.com/edge-cases/archives/with-comment.zip
https://files.samplefiles.com/edge-cases/corrupt/truncated.zip
https://files.samplefiles.com/edge-cases/corrupt/crc-mismatch.zip
https://files.samplefiles.com/edge-cases/empty/empty-archive.zip
EOF

Formats

The same folder tree in every common archive format.

FileSizeDetailsDownload
ZIP with nested folderssample-folders.zip499 KB8 entriesDownload
TAR archivesample.tar720 KB8 entriesDownload
TAR.GZ (tarball)sample.tar.gz500 KB8 entriesDownload
TAR.BZ2 archivesample.tar.bz2501 KB8 entriesDownload
TAR.XZ archivesample.tar.xz467 KB8 entriesDownload
7Z archivesample.7z467 KB8 entriesDownload

Encrypted archives

The password for both is samplefiles.

FileSizeDetailsDownload
ZIP, password-protectedsample-password-protected.zip523 KB6 entries · 🔒 passwordDownload
7Z, password-protectedsample-password-protected.7z467 KB8 entries · 🔒 passwordDownload

Structural oddities

Deep nesting, many entries, Unicode names, folders only, and a comment.

FileSizeDetailsDownload
ZIP nested 3 levels deepnested-3-levels.zip486 B2 entriesDownload
ZIP with 1,000 files1000-files.zip110 KB1,000 entriesDownload
ZIP with Unicode file namesunicode-names.zip699 B5 entriesDownload
ZIP with only empty foldersfolders-only.zip246 B2 entriesDownload
ZIP with an archive commentwith-comment.zip200 B1 entryDownload

Broken archives

A missing central directory, a CRC error and an empty archive.

FileSizeDetailsDownload
Truncated ZIPtruncated.zip523 KBDownload
ZIP with a CRC errorcrc-mismatch.zip524 KBDownload
Valid empty ZIPempty-archive.zip22 B0 entriesDownload