aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNate Lawson <njl@FreeBSD.org>2005-11-04 20:15:09 +0000
committerNate Lawson <njl@FreeBSD.org>2005-11-04 20:15:09 +0000
commitce60eb2a14d5f62b1fcaa2c863505f5d436cb3c7 (patch)
tree47cec48b41ea82fa62533aace4c2fe832535c762
parent5e41bc61d8c662825eacfc4beb162b333990f0ce (diff)
downloadsrc-ce60eb2a14d5f62b1fcaa2c863505f5d436cb3c7.tar.gz
src-ce60eb2a14d5f62b1fcaa2c863505f5d436cb3c7.zip
Account for the minimum resource size when parsing the end tag resource
descriptor. This should fix the "memory modified after free" panics. This patch will appear in a future acpi-ca distribution. Submitted by: Robert Moore <robert.moore / intel.com> Tested by: Peter Holm
Notes
Notes: svn path=/vendor-sys/acpica/dist/; revision=152058
-rw-r--r--sys/contrib/dev/acpica/rscalc.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/contrib/dev/acpica/rscalc.c b/sys/contrib/dev/acpica/rscalc.c
index 3c33c6ac97aa..e8187d6973b8 100644
--- a/sys/contrib/dev/acpica/rscalc.c
+++ b/sys/contrib/dev/acpica/rscalc.c
@@ -514,12 +514,10 @@ AcpiRsGetListLength (
case ACPI_RESOURCE_NAME_END_TAG:
/*
- * End Tag:
- * Terminate the loop now
+ * End Tag: This is the normal exit, add size of EndTag
*/
- AmlBufferLength = BytesParsed;
- break;
-
+ *SizeNeeded = BufferSize + ACPI_RS_SIZE_MIN;
+ return_ACPI_STATUS (AE_OK);
default:
break;