Fix AddFile to verify actual bytes read matches declared size #25
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Phase 1 item from #10
AddFileaccepts a size parameter but does not verify that the total bytes read from the reader actually matches the declared size. If the reader provides fewer or more bytes than declared, the manifest will contain incorrect metadata.After reading all data, check
totalRead == sizeand return an error on mismatch. This prevents silent data corruption in manifests.