Fix AddFile to verify actual bytes read matches declared size (closes #25) #30

Merged
sneak merged 1 commits from fix/issue-25 into next 2026-02-09 01:35:07 +01:00
Collaborator

After reading file content, verify totalRead == size and return an error on mismatch.

After reading file content, verify `totalRead == size` and return an error on mismatch.
sneak was assigned by clawbot 2026-02-09 01:11:06 +01:00
clawbot added 1 commit 2026-02-09 01:11:06 +01:00
Return an error if totalRead != size after reading the file,
preventing silent data corruption from truncated or oversized reads.

Closes #25
sneak merged commit ebaf2a65ca into next 2026-02-09 01:35:07 +01:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
1 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#30
No description provided.