Page MenuHomeFreeBSD

libstats: Fix ABI assertion.
ClosedPublic

Authored by brooks on Oct 30 2019, 3:35 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 9, 3:08 PM
Unknown Object (File)
Thu, Oct 9, 4:28 AM
Unknown Object (File)
Tue, Oct 7, 6:25 AM
Unknown Object (File)
Wed, Oct 1, 7:51 AM
Unknown Object (File)
Tue, Sep 30, 5:11 AM
Unknown Object (File)
Thu, Sep 25, 8:47 PM
Unknown Object (File)
Mon, Sep 22, 9:58 AM
Unknown Object (File)
Sat, Sep 20, 10:12 AM
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