freebsd-skq/sys/dev/ipmi
John Baldwin 020e9fc33b Rework the SMBIOS table walker to make it operate like other table walkers
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
2010-07-14 18:06:21 +00:00
..
ipmi_acpi.c Import ACPICA 20090521. 2009-06-05 18:44:36 +00:00
ipmi_isa.c
ipmi_kcs.c
ipmi_linux.c Add stuff to support upcoming BMC/IPMI flashing of newer Dell machine 2009-03-26 17:14:22 +00:00
ipmi_pci.c
ipmi_smbios.c Rework the SMBIOS table walker to make it operate like other table walkers 2010-07-14 18:06:21 +00:00
ipmi_smbus.c
ipmi_smic.c
ipmi_ssif.c
ipmi.c - Fixed incorrect watchdog timeout setting: MSB of a 2-byte 2009-12-18 12:10:42 +00:00
ipmivars.h Remove hack attempt at using devfs cloning for per-file descriptor storage. 2008-08-28 02:13:53 +00:00