We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c991d08 commit b2e89d7Copy full SHA for b2e89d7
source/components/utilities/utresrc.c
@@ -533,7 +533,6 @@ AcpiUtWalkAmlResources (
533
UINT8 *EndAml;
534
UINT8 ResourceIndex;
535
UINT32 Length;
536
- ACPI_SIZE ThisAmlLength = 0;
537
UINT32 Offset = 0;
538
UINT8 EndTag[2] = {0x79, 0x00};
539
@@ -608,7 +607,7 @@ AcpiUtWalkAmlResources (
608
607
609
/* Check if buffer is defined to be longer than the resource length */
610
611
- if (AmlLength > ThisAmlLength)
+ if (AmlLength > (Offset + Length))
612
{
613
return_ACPI_STATUS (AE_AML_NO_RESOURCE_END_TAG);
614
}
@@ -618,7 +617,6 @@ AcpiUtWalkAmlResources (
618
617
return_ACPI_STATUS (AE_OK);
619
620
621
- ThisAmlLength += Length;
622
Aml += Length;
623
Offset += Length;
624
0 commit comments