Esc

Archive_Limits

structextensionsince 0.36.1Source
  • macOS: Archive_Limits works on macOS
  • Linux: Archive_Limits works on Linux
  • Windows: Archive_Limits works on Windows
  • Wasm: Archive_Limits works on Wasm

Declaration

Archive_Limits :: struct {
// archive size in bytes    max_archive: s64 = 1 << 30;// total bytes of names, links and headers    max_metadata: s64 = 16 << 20;    max_entries: s64 = 100000;// uncompressed size of one entry    max_entry: s64 = 256 << 20;// uncompressed size of all entries    max_total: s64 = 1 << 30;// largest uncompressed-to-stored size ratio of an entry    max_ratio: s64 = 1000;}

Bounds applied while indexing, reading, writing and extracting, to contain hostile input. A negative value (or a max_ratio of 0 or less) makes the operation fail with .INVALID.

See also