Skip to content

Commit

Permalink
Disassembler: Update UUID search to handler UUID classes.
Browse files Browse the repository at this point in the history
Fixes a possible fault when performing a UUID search.
  • Loading branch information
acpibob committed Jun 3, 2015
1 parent 3f1da79 commit 4a1cca9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/common/ahuuids.c
Expand Up @@ -185,6 +185,13 @@ AcpiAhMatchUuid (

for (Info = AcpiUuids; Info->Description; Info++)
{
/* Null string means desciption is a UUID class */

if (!Info->String)
{
continue;
}

AcpiUtConvertStringToUuid (Info->String, UuidBuffer);

if (!ACPI_MEMCMP (Data, UuidBuffer, UUID_BUFFER_LENGTH))
Expand Down

0 comments on commit 4a1cca9

Please sign in to comment.