mirror of
https://github.com/ultraworkers/claw-code.git
synced 2026-04-15 03:15:55 +08:00
Addresses PARITY.md file-tool edge cases: - Binary file detection: read_file rejects files with NUL bytes in first 8KB - Size limits: read_file rejects files >10MB, write_file rejects content >10MB - Workspace boundary enforcement: read_file_in_workspace, write_file_in_workspace, edit_file_in_workspace validate resolved paths stay within workspace root - Symlink escape detection: is_symlink_escape checks if a symlink resolves outside workspace boundaries - Path traversal prevention: validate_workspace_boundary catches ../ escapes after canonicalization 4 new tests (binary, oversize write, workspace boundary, symlink escape). Total: 142 runtime tests green. |
||
|---|---|---|
| .. | ||
| api | ||
| commands | ||
| compat-harness | ||
| mock-anthropic-service | ||
| plugins | ||
| runtime | ||
| rusty-claude-cli | ||
| telemetry | ||
| tools | ||