Skip to main content

FS_INDEX_MAX_COUNT

Constant FS_INDEX_MAX_COUNT 

Source
pub const FS_INDEX_MAX_COUNT: usize = 1_000_000;
Expand description

Protocol cap on S2C_FS_INDEX.count. The server’s entry budget clamps to this, and parsers treat a larger count as malformed — without it, a hostile count of tiny records could force a giant preallocation from a small frame (the decompression guard bounds bytes, not record counts).