Page MenuHomeFreeBSD

tarfs: Fix length calculation for file read
Needs ReviewPublic

Authored by des on Tue, Oct 20, 2:42 PM.
Tags
None
Referenced Files
F176690334: D60904.id.diff
Tue, Oct 20, 7:57 PM
F176690281: D60904.id190397.diff
Tue, Oct 20, 7:57 PM
F176690192: D60904.diff
Tue, Oct 20, 7:56 PM
Subscribers

Details

Reviewers
emaste
markj
Summary

When the offset is within a block rather than at its beginning, the
length should be clamped to the remaining length of the block, not its
total length.

Reported by: n0ps1ed
MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 78417
Build 75300: arc lint + arc unit