diff options
Diffstat (limited to 'source/tools/acpidump/apdump.c')
-rw-r--r-- | source/tools/acpidump/apdump.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source/tools/acpidump/apdump.c b/source/tools/acpidump/apdump.c index ac3e9ea38477..58e430c5a41c 100644 --- a/source/tools/acpidump/apdump.c +++ b/source/tools/acpidump/apdump.c @@ -74,7 +74,7 @@ ApIsValidHeader ( { /* Make sure signature is all ASCII and a valid ACPI name */ - if (!AcpiUtValidAcpiName (Table->Signature)) + if (!AcpiUtValidNameseg (Table->Signature)) { AcpiLogError ("Table signature (0x%8.8X) is invalid\n", *(UINT32 *) Table->Signature); @@ -465,6 +465,13 @@ ApDumpTableFromFile ( return (-1); } + if (!AcpiUtValidNameseg (Table->Signature)) + { + AcpiLogError ( + "No valid ACPI signature was found in input file %s\n", + Pathname); + } + /* File must be at least as long as the table length */ if (Table->Length > FileSize) |