Help us shape the future of Go! Take the 2026 Go Developer Survey

archivetest

package
v0.56.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package archivetest builds hostile archives for tests. It imports nothing from filex, so the archive reader's own tests can use it too.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LyingZip

func LyingZip(t *testing.T, size int) []byte

LyingZip builds a ZIP of one deflated member, payload.bin, holding size zero bytes while its local and central headers both say it holds 100: the shape of a decompression bomb that lies about its size. Readers that trust the declared size must stop at 100 bytes.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL