Enforces Zip-Bomb protections (maxCompressionRatio <= 25, maxUncompressedBytes <= 100 MiB, maxEntries <= 128);
each entry inflates to at most its declared uncompressed size
Requires each local file header to repeat its central directory name, method, CRC-32 and sizes -> CORRUPT_ZIP_STRUCTURE
Strictly validates a
.mjdiagZIP archive:PK\x03\x04) and Central Directory integrity.., leading/,\, or symlink attributes) ->UNSAFE_ENTRY_PATHIsAllowedMjdiagEntryPath) ->DISALLOWED_ENTRY_NAMEmaxCompressionRatio <= 25,maxUncompressedBytes <= 100 MiB,maxEntries <= 128); each entry inflates to at most its declared uncompressed sizeCORRUPT_ZIP_STRUCTUREmanifest.json(schemaVersion === '1.0', well-formed file descriptors) ->INVALID_MANIFEST_SCHEMAmanifest.jsonthat the manifest does not list ->UNLISTED_ENTRYmanifest.filesand verifies exact match ->ENTRY_SHA256_MISMATCH