Page MenuHomeFreeBSD

libsa: smbios: Stop parsing on an End-of-Table structure
ClosedPublic

Authored by olce on Mar 7 2025, 4:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 8, 12:16 AM
Unknown Object (File)
Mar 28 2025, 12:28 AM
Unknown Object (File)
Mar 24 2025, 6:22 AM
Unknown Object (File)
Mar 20 2025, 4:24 PM
Unknown Object (File)
Mar 17 2025, 8:12 PM
Unknown Object (File)
Mar 15 2025, 12:05 PM
Unknown Object (File)
Mar 15 2025, 11:10 AM
Unknown Object (File)
Mar 15 2025, 3:28 AM
Subscribers

Details

Summary

This structure exists since SMBIOS v2.2 and indicates that there are no
structures to be parsed beyond this point. For backwards compatibility,
the standard recommends that system software ensures that this structure
covers the rest of the SMBIOS structure table area as reported by the
Structure Table Address, and the Structure Table Maximum Size (64-bit
entry point) or the Structure Table Length (32-bit entry point), which
makes existing parsers continue to work correctly as they usually ignore
unknown structure types. However, this is not a requirement, so be
bullet proof and immediately stop parsing in this case.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable