Page MenuHomeFreeBSD

libstats: Fix ABI assertion.
ClosedPublic

Authored by brooks on Oct 30 2019, 3:35 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jul 12, 12:20 AM
Unknown Object (File)
Jun 22 2026, 7:34 PM
Unknown Object (File)
Jun 21 2026, 1:45 PM
Unknown Object (File)
Jun 20 2026, 12:04 AM
Unknown Object (File)
Jun 18 2026, 12:08 PM
Unknown Object (File)
Jun 18 2026, 2:37 AM
Unknown Object (File)
Jun 16 2026, 10:54 AM
Unknown Object (File)
Jun 16 2026, 9:50 AM
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