Page MenuHomeFreeBSD

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

Authored by olce on Fri, Mar 7, 4:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Mar 8, 9:03 AM
Unknown Object (File)
Sat, Mar 8, 8:18 AM
Unknown Object (File)
Sat, Mar 8, 4:41 AM
Unknown Object (File)
Fri, Mar 7, 5:27 PM
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 62825
Build 59709: arc lint + arc unit