Page MenuHomeFreeBSD

libstats: Fix ABI assertion.
ClosedPublic

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

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

Repository
rS FreeBSD src repository - subversion
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.