Page MenuHomeFreeBSD

libstats: Fix ABI assertion.
ClosedPublic

Authored by brooks on Wed, Oct 30, 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
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

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

Thanks for the fix @brooks

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