Skip to main content

MAX_CARD_ID_INDEX

Constant MAX_CARD_ID_INDEX 

Source
pub const MAX_CARD_ID_INDEX: CardId = 1_000_000;
Expand description

Upper bound for dense per-id lookup caches.

The simulator stores several lookup vectors indexed directly by CardId. Rejecting sparse, very large ids keeps attacker-supplied WSDB files from forcing unbounded allocations while leaving substantial headroom for real card catalogs.