Expand description
Security validation module for user input and file operations
Functionsยง
- escape_
for_ rust_ string - Escapes user input for safe inclusion in Rust string literals
- read_
file_ with_ limit - Reads a file with size limits to prevent memory exhaustion
- read_
stdin_ with_ limit - Reads from stdin with size limits to prevent memory exhaustion
- sanitize_
for_ comment - Sanitizes user input for safe inclusion in generated code comments
- validate_
expression - Validates an ELO expression for syntax and safety
- validate_
file_ path - Validates a file path to prevent directory traversal attacks
- validate_
regex_ pattern - Validates a regex pattern to prevent ReDoS attacks