Page MenuHomeFreeBSD

get*ent: be consistant about _ALIGN(p) - p
Needs ReviewPublic

Authored by brooks on Thu, Nov 27, 3:33 PM.

Details

Reviewers
kib
Group Reviewers
cheri
Summary

Always add or subtract ((char *)_ALIGN(p) - p) which is small (<16)
rather than the individual components. This prevents pointers from
being taken out of bounds and makes the copy size calculations more
consistant with the buffer offset calculations.

Obtained from: CheriBSD
Effort: CHERI upstreaming
Sponsored by: DARPA

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 68886
Build 65769: arc lint + arc unit