aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn-Mark Gurney <jmg@FreeBSD.org>2023-03-03 01:03:57 +0000
committerJohn-Mark Gurney <jmg@FreeBSD.org>2023-03-03 01:03:57 +0000
commit13597be965b7bcc7ff2c3c0bc240f3e0acc255cf (patch)
tree2a9e4b9a7e291c89dfbdc8afb4075b240509a450
parent2fee8756294820ff9ec6f8d17324e7d8a0a45040 (diff)
downloadsrc-13597be965b7bcc7ff2c3c0bc240f3e0acc255cf.tar.gz
src-13597be965b7bcc7ff2c3c0bc240f3e0acc255cf.zip
length for the 64-bit entry is 32-bits, not 16-bits.
Reported by: Jérôme Duval (korli on github)
-rw-r--r--stand/libsa/smbios.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stand/libsa/smbios.c b/stand/libsa/smbios.c
index 15c5c7e50565..1bb78faa3b01 100644
--- a/stand/libsa/smbios.c
+++ b/stand/libsa/smbios.c
@@ -486,7 +486,7 @@ smbios_probe(const caddr_t addr)
#ifdef HAS_SMBV3
if (isv3) {
- smbios.length = SMBIOS_GET16(saddr, 0x0c); /* Structure Table Length */
+ smbios.length = SMBIOS_GET32(saddr, 0x0c); /* Structure Table Length */
paddr = SMBIOS_GET64(saddr, 0x10); /* Structure Table Address */
smbios.count = -1; /* not present in V3 */
smbios.ver = 0; /* not present in V3 */