From cc3a0ab278d23a6b880d001fb14e4f33ba299fc5 Mon Sep 17 00:00:00 2001 From: Kees Cook Date: Fri, 18 Nov 2022 09:49:35 -0800 Subject: ACPI_MADT_OEM_DATA: Fix flexible array member definition Use ACPI_FLEX_ARRAY() helper to define flexible array member alone in a struct. Fixes issue #812. --- source/include/actbl2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/include/actbl2.h b/source/include/actbl2.h index 10c61f8e2..2faea8e41 100644 --- a/source/include/actbl2.h +++ b/source/include/actbl2.h @@ -1550,7 +1550,7 @@ enum AcpiMadtLpcPicVersion { typedef struct acpi_madt_oem_data { - UINT8 OemData[]; + ACPI_FLEX_ARRAY(UINT8, OemData); } ACPI_MADT_OEM_DATA; -- cgit v1.2.1