]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
stand: More protection against malformed smbios tables
authorWarner Losh <imp@FreeBSD.org>
Mon, 1 May 2023 21:12:41 +0000 (15:12 -0600)
committerWarner Losh <imp@FreeBSD.org>
Mon, 1 May 2023 21:12:41 +0000 (15:12 -0600)
commita5b4ec5281929a9b7ef4a8005bb4b0035322e922
tree563250a887fb709b3ee7a9c5fc35d5f09f4246a4
parentc5e433b99ed3ddef0eb4fa937f38c34d4a3c4ae0
stand: More protection against malformed smbios tables

Add some more sanity checks to make sure we don't march off the end of
the table. Typically, smbios structures are well formed, or Windows
wouldn't boot. Sometimes they aren't, and this at least fails safe.

Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D39794
stand/libsa/smbios.c