020e9fc33b
and remove a buffer overflow: - Remove the array of per-type dispatch functions. Instead, pass each structure to a single callback. The callback should check the type of each table entry to take appropriate action. This matches the behavior of other table walkers such as for the MP Table and MADT. - Don't attempt to save an array of string pointers for each structure entry. Instead, just skip the strings. If this code is reused to provide a generic SMBIOS table walker in the future we could provide a method that looks up a specific string N for a given structure record instead of pre-populating an array of pointers. This fixes a buffer overflow for structure entries with more than 20 strings. PR: kern/148546 Reported by: Spencer Minear @ McAfee MFC after: 3 days |
||
---|---|---|
.. | ||
ipmi_acpi.c | ||
ipmi_isa.c | ||
ipmi_kcs.c | ||
ipmi_linux.c | ||
ipmi_pci.c | ||
ipmi_smbios.c | ||
ipmi_smbus.c | ||
ipmi_smic.c | ||
ipmi_ssif.c | ||
ipmi.c | ||
ipmivars.h |