diff options
author | Kees Cook <kees@outflux.net> | 2022-11-17 20:48:16 -0800 |
---|---|---|
committer | Kees Cook <kees@outflux.net> | 2022-11-18 09:50:48 -0800 |
commit | 8a8443112b4ab0bc8897daa9470fc84591538b05 (patch) | |
tree | 98a5f75dc211559e8fcb8253845c852bb9242675 | |
parent | cc3a0ab278d23a6b880d001fb14e4f33ba299fc5 (diff) | |
download | acpica-8a8443112b4ab0bc8897daa9470fc84591538b05.tar.gz |
ACPI_RESOURCE_EXTENDED_IRQ: Replace 1-element array with flexible array
Similar to commit 7ba2f3d91a32 ("Replace one-element array with
flexible-array"), replace the 1-element array with a proper
flexible array member as defined by C99. This allows the code to
operate without tripping compile-time and run-time bounds checkers
(e.g. via __builtin_object_size(), -fsanitize=bounds, and/or
-fstrict-flex-arrays=3).
-rw-r--r-- | source/include/acrestyp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/include/acrestyp.h b/source/include/acrestyp.h index f045c2000..1df062426 100644 --- a/source/include/acrestyp.h +++ b/source/include/acrestyp.h @@ -538,7 +538,7 @@ typedef struct acpi_resource_extended_irq UINT8 WakeCapable; UINT8 InterruptCount; ACPI_RESOURCE_SOURCE ResourceSource; - UINT32 Interrupts[1]; + UINT32 Interrupts[]; } ACPI_RESOURCE_EXTENDED_IRQ; |