You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No panic on any input, on 64-bit and 32-bit targets #188
area:securityThreat model, limits, disclosurepriority:P1On the path of the current milestonetype:securityHostile input, limits, supply chain and disclosure
32-bit overflow found and fixed (fix(container): the library builds where usize is 32 bits #346):WalkerLimits::permissive().max_scan_bytes and OpenLimits::permissive().max_section_bytes were 4 * 1024 * 1024 * 1024 in usize, which overflows where usize is 32 bits, so building the library for wasm32, i686 or armv7 failed. Both now go through saturating_bytes(4 << 30). The Clippy job runs cargo check --lib --target wasm32-unknown-unknown (.github/workflows/ci.yml), and the Streaming E2E job compiles the no_std grammar for wasm32.
Remaining against the acceptance: the wasm32 job only compiles; no job runs the tests or a corpus walk on a 32-bit target with overflow checks, and there is no Clippy lint for panicking calls (indexing, unwrap, arithmetic) in parsing code (no [lints] table in Cargo.toml, no clippy:: attribute in src/lib.rs).
area:securityThreat model, limits, disclosurepriority:P1On the path of the current milestonetype:securityHostile input, limits, supply chain and disclosure
Activity
DrunkOnJava commentedon Oct 27, 2026
Status (main 2bab7b2). Not "Not done":
WalkerLimits::permissive().max_scan_bytesandOpenLimits::permissive().max_section_byteswere4 * 1024 * 1024 * 1024inusize, which overflows whereusizeis 32 bits, so building the library for wasm32, i686 or armv7 failed. Both now go throughsaturating_bytes(4 << 30). The Clippy job runscargo check --lib --target wasm32-unknown-unknown(.github/workflows/ci.yml), and the Streaming E2E job compiles theno_stdgrammar for wasm32.HandleMap::parseon a section of size 1 (fix(handle-map): a section smaller than its own CRC is an error, not a panic #231), the R2007 container's overflowing header offsets (fix(r2007): a header offset or length that overflows is a truncated file, not a panic #271) and the R2007 LZ back-reference at distance 0 (fix(r2007): a zero back-reference offset is a malformed stream, not a panic #291), each with its crash input committed as a fuzz seed.Remaining against the acceptance: the wasm32 job only compiles; no job runs the tests or a corpus walk on a 32-bit target with overflow checks, and there is no Clippy lint for panicking calls (indexing,
unwrap, arithmetic) in parsing code (no[lints]table inCargo.toml, noclippy::attribute insrc/lib.rs).