Page MenuHomeFreeBSD

libstats: Fix ABI assertion.
ClosedPublic

Authored by brooks on Oct 30 2019, 3:35 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, May 19, 3:13 AM
Unknown Object (File)
Fri, May 17, 3:02 AM
Unknown Object (File)
Tue, May 7, 8:11 PM
Unknown Object (File)
Wed, Apr 24, 5:18 AM
Unknown Object (File)
Feb 17 2024, 6:16 AM
Unknown Object (File)
Feb 13 2024, 3:57 AM
Unknown Object (File)
Feb 8 2024, 1:55 PM
Unknown Object (File)
Feb 4 2024, 10:14 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