Skip to content

Property MaxCodeLength ​

Namespace: Belay.Core.Security
Assembly: Belay.Core.dll

MaxCodeLength ​

Gets or sets the maximum allowed length for Python code before it's considered a security risk.

csharp
public int MaxCodeLength { get; set; }

Property Value ​

int

Remarks ​

Extremely long code can indicate potential denial-of-service attacks or code generation issues. This setting helps prevent resource exhaustion.

Released under the Apache License 2.0.