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 ¶
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.
func RawNameZip ¶ added in v0.60.0
RawNameZip builds a ZIP whose members carry their names as raw bytes with the UTF-8 flag (general purpose bit 11) CLEAR - the shape of an archive Windows' "Compressed folder" writes in the machine's DOS code page (IBM 857 on a Turkish Windows, 437 by the ZIP specification).