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 Deprecated - DEPRECATED AND UNSAFE: Do not use for user input in comments
- validate_
expression - Validates an ELO expression for syntax and safety
- validate_
file_ path - Validates a file path to prevent directory traversal attacks
- validate_
file_ path_ with_ context - Validates a file path and stores the CWD for later use-time validation
- validate_
regex_ pattern - Validates a regex pattern to prevent ReDoS attacks
- verify_
path_ still_ valid - Verifies that a previously validated path is still valid