Skip to main content

MAX_ENTRY_COUNT

Constant MAX_ENTRY_COUNT 

Source
const MAX_ENTRY_COUNT: usize = 10_000;
Expand description

Maximum number of entries an archive may contain. A legitimate bundle (instructions, a handful of context files, a handful of skills, one manifest) never comes close to this; it exists purely to bound the CPU cost of iterating + path-sanitizing + hashing every entry, independent of the per-entry/aggregate byte caps below (reagent P2, PR #2379 round 2) — a crafted archive of many tiny/valid entries passes both size caps while still forcing unbounded iteration work.