mirror of
https://github.com/kvcache-ai/AgentENV.git
synced 2026-11-05 01:17:36 +00:00
[PR #43] [MERGED] fix(overlaybd): reject truncated mapped reads #135
Labels
No labels
bug
documentation
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/AgentENV#135
Loading…
Add table
Add a link
Reference in a new issue
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?
📋 Pull Request Information
Original PR: https://github.com/kvcache-ai/AgentENV/pull/43
Author: @morluto
Created: 7/28/2026
Status: ✅ Merged
Merged: 7/30/2026
Merged by: @huajq
Base:
main← Head:fix/overlaybd-truncated-mapped-reads📝 Commits (2)
def3fbcfix(overlaybd): reject truncated mapped readsc8c5317fix(overlaybd): verify short-read retry offsets📊 Changes
3 files changed (+91 additions, -36 deletions)
View changed files
📝
storage/overlaybd/src/lsmt/file/readonly.rs(+8 -11)📝
storage/overlaybd/src/lsmt/file/readwrite.rs(+10 -11)📝
storage/overlaybd/src/lsmt/file/tests.rs(+73 -14)📄 Description
Problem
Mapped LSMT reads currently zero-fill the remainder of the destination buffer when a backing layer returns fewer bytes than requested. A truncated mapped extent can therefore be returned as apparently valid filesystem or VM-memory data.
Explicit holes and zero mappings are handled separately and should continue to produce zeros.
Changes
unexpected EOFwhen the backing extent ends early.Validation
cargo test -p overlaybd --lib— 303 passed, 1 ignored.cargo clippy -p overlaybd --all-targets -- -D warningscargo fmt --allCloses #40.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.