summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c
diff options
context:
space:
mode:
authorTuan Phan <tuan.phan@oss.qualcomm.com>2026-07-24 07:49:37 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2026-07-31 15:56:11 +0300
commit82dd8ab1b374a907bff6a009d5f0efc510d53a98 (patch)
tree1d278048c3a5697273f1118e6b49bced2f9cc83b /MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c
parent4d92f22a5c398028ebcc0f52db298053fd161a99 (diff)
downloadedk2-82dd8ab1b374a907bff6a009d5f0efc510d53a98.tar.xz
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>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c')
0 files changed, 0 insertions, 0 deletions