Skip to content

ZipBombOptions Class ​

Definition ​

Defines limits and heuristics used to detect potentially malicious or resource-exhausting ZIP archives (commonly referred to as “ZIP bombs”).

  • Namespace: JASE.Compression
  • Assembly: JASE.Compression.dll

Constructors ​

NameDescription
ZipBombOptions()

Remarks ​

These options are intended to be enforced before extraction (metadata-based checks) and/or during extraction (hard byte budgets while inflating). Metadata-based checks alone are not sufficient to guarantee safety against all crafted archives.

Size values are expressed in bytes. Compression ratios are computed as: UncompressedBytes / max(1, CompressedBytes).