Skip to main content

MAX_SECTION_COUNT

Constant MAX_SECTION_COUNT 

Source
pub const MAX_SECTION_COUNT: u32 = 1024;
Expand description

Maximum number of section descriptors the parser will accept. Bounds the section-table allocation against a hostile/malformed file. 1024 is far beyond any realistic .10d (the design’s section types number ~10) while keeping the table trivially small.