Page MenuHomeFreeBSD

libstats: Fix ABI assertion.

Authored by brooks on Oct 30 2019, 3:35 AM.



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

rS FreeBSD src repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

brooks created this revision.Oct 30 2019, 3:35 AM
trasz accepted this revision.Nov 4 2019, 12:42 PM
This revision is now accepted and ready to land.Nov 4 2019, 12:42 PM
lstewart accepted this revision.Nov 5 2019, 2:04 AM

Thanks for the fix @brooks

brooks edited the summary of this revision. (Show Details)Nov 5 2019, 5:44 PM
This revision was automatically updated to reflect the committed changes.