HomeFreeBSD

libstats: Improve ABI assertion.

Description

libstats: Improve ABI assertion.

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 struct statsblob.

Discussed with: jhb, James Clarke
Reviewed by: trasz, lstewart
Obtained from: CheriBSD
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D22188

Details

Provenance
brooksAuthored on
Reviewer
trasz
Differential Revision
D22188: libstats: Fix ABI assertion.
Parents
rS354408: Remove obsolete addition of MACHINE_CPUARCH
Branches
Unknown
Tags
Unknown