Page MenuHomeFreeBSD

D49286.1786396191.diff
No OneTemporary

Size
628 B
Referenced Files
None
Subscribers
None

D49286.1786396191.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
Mon, Aug 10, 9:09 PM (12 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29389091
Default Alt Text
D49286.1786396191.diff (628 B)

Event Timeline