Page MenuHomeFreeBSD

libstats: Fix ABI assertion.
ClosedPublic

Authored by brooks on Oct 30 2019, 3:35 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 13, 7:46 PM
Unknown Object (File)
Wed, Dec 3, 3:18 AM
Unknown Object (File)
Nov 18 2025, 5:34 PM
Unknown Object (File)
Nov 15 2025, 7:20 PM
Unknown Object (File)
Nov 15 2025, 2:23 PM
Unknown Object (File)
Nov 15 2025, 10:00 AM
Unknown Object (File)
Nov 14 2025, 10:53 PM
Unknown Object (File)
Nov 14 2025, 10:17 PM
Subscribers

Details

Summary

On platforms where pointers are larger than 64-bits, struct statsblob
may be harmlessly padded out such that opaque[] always has some included
space. Make the assertion more general by comparing to the offset of
opaque rather than the size of sizeof(struct statsblob).

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 27271
Build 25534: arc lint + arc unit