Page MenuHomeFreeBSD

D49286.diff
No OneTemporary

D49286.diff

diff --git a/stand/libsa/smbios.c b/stand/libsa/smbios.c
--- a/stand/libsa/smbios.c
+++ b/stand/libsa/smbios.c
@@ -193,6 +193,13 @@
#ifdef SMBIOS_64BIT_EP
/* v3.0, 64-bit Entry point */
if (strncmp(cp, SMBIOS3_SIG, sizeof(SMBIOS3_SIG) - 1) == 0 &&
+ /*
+ * The specification only guarantees the presence of the
+ * Structure Table Maximum Size and Address Entry fields at
+ * offsets 0x0c and 0x10 if the Entry Point Revision is not
+ * 0.
+ */
+ SMBIOS_GET8(cp, 0x0a) != 0 &&
smbios_checksum(cp, SMBIOS_GET8(cp, 0x06)) == 0) {
smbios.is_64bit_ep = 1;
return (cp);

File Metadata

Mime Type
text/plain
Expires
Fri, Oct 24, 1:51 AM (11 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24112763
Default Alt Text
D49286.diff (628 B)

Event Timeline