Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F133110925
D49286.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
628 B
Referenced Files
None
Subscribers
None
D49286.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D49286: libsa: smbios: Reject a 64-bit entry point with revision 0
Attached
Detach File
Event Timeline
Log In to Comment