Documentation
¶
Index ¶
Constants ¶
View Source
const ( MaxInputSize = 10 * 1024 * 1024 // 10MB MaxCommandArgs = 1000 MaxPathLength = 4096 MaxConfigSize = 1 * 1024 * 1024 // 1MB )
Variables ¶
This section is empty.
Functions ¶
func SanitizePath ¶
SanitizePath prevents path traversal attacks
func ValidateCommandArgs ¶
ValidateCommandArgs checks command argument limits
func ValidateConfigPath ¶
ValidateConfigPath ensures config paths are safe
func ValidateInputSize ¶
ValidateInputSize checks input size limits
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.