Skip to content

Commit

Permalink
ACPICA: Bulletproof disassembler for bad ACPI tables
Browse files Browse the repository at this point in the history
Fixed a problem with the disassembler where invalid ACPI tables
could cause faults or infinite loops.

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Bob Moore authored and Len Brown committed Apr 22, 2008
1 parent 970d9c9 commit a6f4a45
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions include/acpi/acdisasm.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,12 @@ typedef const struct acpi_dmtable_info {
#define ACPI_DMT_CHKSUM 20
#define ACPI_DMT_SPACEID 21
#define ACPI_DMT_GAS 22
#define ACPI_DMT_DMAR 23
#define ACPI_DMT_MADT 24
#define ACPI_DMT_SRAT 25
#define ACPI_DMT_EXIT 26
#define ACPI_DMT_SIG 27
#define ACPI_DMT_ASF 23
#define ACPI_DMT_DMAR 24
#define ACPI_DMT_MADT 25
#define ACPI_DMT_SRAT 26
#define ACPI_DMT_EXIT 27
#define ACPI_DMT_SIG 28

typedef
void (*acpi_dmtable_handler) (struct acpi_table_header * table);
Expand Down Expand Up @@ -195,7 +196,7 @@ extern struct acpi_dmtable_info acpi_dm_table_info_wdrt[];
*/
void acpi_dm_dump_data_table(struct acpi_table_header *table);

void
acpi_status
acpi_dm_dump_table(u32 table_length,
u32 table_offset,
void *table,
Expand Down

0 comments on commit a6f4a45

Please sign in to comment.