Skip to main content

MAX_INPUT_FILE_BYTES

Constant MAX_INPUT_FILE_BYTES 

Source
pub const MAX_INPUT_FILE_BYTES: u64 = _ /* 8_388_608u64 */;
Expand description

Cap for any file the CLI reads (artifacts, proofs, policies). Well above the largest legitimate input (1 MiB proof → ~2 MiB hex JSON): oversized files are refused with a clean error instead of being buffered without bound (Phase 7 hostile review H1).