Skip to main content

MAX_CONTENT_LENGTH

Constant MAX_CONTENT_LENGTH 

Source
const MAX_CONTENT_LENGTH: usize = 1_048_576;
Expand description

Maximum allowed input length for content fields (SEC-M5).

Prevents DoS attacks via extremely large inputs that could exhaust memory or cause excessive processing time. Set to 1MB which is generous for any reasonable memory content while preventing abuse.