edk2/DynamicTablesPkg/Library/Common/AmlLib
Tuan Phan 82dd8ab1b3 DynamicTablesPkg/AmiLib: Fix stack corruption in AmlCodeGenRdInterrupt
In AmlCodeGenRdInterrupt(), the IRQ list was copied directly into an
EFI_ACPI_EXTENDED_INTERRUPT_DESCRIPTOR structure allocated on the stack.
Since the structure only contains storage for the first interrupt entry,
copying multiple IRQs would write beyond the allocated buffer and corrupt
the stack.

Fix this issue by allocating the descriptor dynamically with sufficient
space to accommodate the entire IRQ list. This ensures all interrupt entries
are copied safely without overwriting adjacent stack memory.

Signed-off-by: Tuan Phan <tuan.phan@oss.qualcomm.com>
2026-07-31 12:56:11 +00:00
..
AmlDbgPrint DynamicTablesPkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
AmlEncoding DynamicTablesPkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
Api DynamicTablesPkg: Add AmlUpdateRdDWord() and AmlUpdateRdWord() 2026-07-10 23:45:20 +00:00
CodeGen DynamicTablesPkg/AmiLib: Fix stack corruption in AmlCodeGenRdInterrupt 2026-07-31 12:56:11 +00:00
NameSpace DynamicTablesPkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
Parser DynamicTablesPkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
ResourceData DynamicTablesPkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
Serialize DynamicTablesPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Stream DynamicTablesPkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
String DynamicTablesPkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
Tree DynamicTablesPkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
Utils DynamicTablesPkg: Move CheckAddressSpaceFields() to AmlUtility.c 2026-07-10 23:45:20 +00:00
AmlCoreInterface.h DynamicTablesPkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
AmlDefines.h DynamicTablesPkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
AmlInclude.h DynamicTablesPkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
AmlLib.inf DynamicTablesPkg: Exempt some _CPC field from checks 2024-01-29 16:47:03 +00:00
AmlNodeDefines.h DynamicTablesPkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00