Page MenuHomeFreeBSD

libstats: Fix ABI assertion.
ClosedPublic

Authored by brooks on Oct 30 2019, 3:35 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 10, 7:03 AM
Unknown Object (File)
Sun, Nov 9, 2:29 PM
Unknown Object (File)
Sun, Nov 9, 2:28 PM
Unknown Object (File)
Wed, Oct 29, 8:34 AM
Unknown Object (File)
Wed, Oct 29, 8:33 AM
Unknown Object (File)
Wed, Oct 29, 8:33 AM
Unknown Object (File)
Wed, Oct 29, 2:07 AM
Unknown Object (File)
Fri, Oct 17, 11:51 PM
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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable