openpack
openpack reads ZIP-derived archives safely, with built-in anti-abuse checks.
- ZIP
- CRX
- JAR
- APK (
AndroidManifest.xmlparsing underapkfeature) - IPA (
Info.plistparsing underipafeature)
Install
[]
= "0.1"
Features
zip(default): base ZIP archive supportcrx: enable CRX handling and ZIP payload offset parsingapk: parseAndroidManifest.xmlfrom APK archivesipa: parseInfo.plistfrom IPA packages
Quick start
use ;
let limits = default;
let pack = open?;
for entry in pack.entries?
let body = pack.read_entry?;
println!;
# Ok
Safety checks
- Zip-slip path normalization and parent traversal rejection
- max archive size
- max per-entry uncompressed size
- max total uncompressed size
- max entries
- compression ratio limits
TOML limits
Use config/limits.toml as a template for deployment defaults.
= 268435456
= 52428800
= 134217728
= 2048
= 100.0