Specify and enforce path invariants (closes #26) #31

Merged
sneak merged 2 commits from fix/issue-26 into next 2026-02-09 01:45:29 +01:00
Collaborator

Add ValidatePath() enforcing UTF-8, forward-slash, relative, no .., no empty segments. Applied in AddFile and AddFileWithHash. Proto comments document the rules.

Add `ValidatePath()` enforcing UTF-8, forward-slash, relative, no `..`, no empty segments. Applied in `AddFile` and `AddFileWithHash`. Proto comments document the rules.
sneak was assigned by clawbot 2026-02-09 01:12:16 +01:00
clawbot added 1 commit 2026-02-09 01:12:16 +01:00
Add ValidatePath() enforcing: valid UTF-8, forward-slash only,
relative paths, no '..' segments, no empty segments. Called from
both AddFile and AddFileWithHash. Proto comments document the rules.

Closes #26
sneak added 1 commit 2026-02-09 01:45:21 +01:00
sneak merged commit 2efffd9da8 into next 2026-02-09 01:45:29 +01:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sneak/mfer#31
No description provided.