MAX_FFI_DRAG_TABLE_LEN

Constant MAX_FFI_DRAG_TABLE_LEN 

Source
pub const MAX_FFI_DRAG_TABLE_LEN: c_int = 4096;
Expand description

Maximum C-ABI custom drag-table row count.

drag_table_from_raw copies both caller arrays before validation; an unbounded len lets a single call request two multi-gigabyte allocations and abort the process (MBA-1407). Real Cd decks are two to three orders of magnitude smaller (the embedded G1/G7 references are under 100 rows; doppler exports run a few hundred), so 4096 is far above any legitimate deck.