Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ACPICA: Replace fake flexible arrays with flexible array members
Functionally identical to ACPICA upstream pull request 813: acpica/acpica#813 One-element arrays (and multi-element arrays being treated as dynamically sized) are deprecated[1] and are being replaced with flexible array members in support of the ongoing efforts to tighten the FORTIFY_SOURCE routines on memcpy(), correctly instrument array indexing with UBSAN_BOUNDS, and to globally enable -fstrict-flex-arrays=3. Replace one-element array with flexible-array member in struct acpi_resource_extended_irq. Replace 4-byte fixed-size array with 4-byte padding in a union with a flexible-array member in struct acpi_pci_routing_table. This results in no differences in binary output. Cc: "Rafael J. Wysocki" <rafael@kernel.org> Cc: Len Brown <lenb@kernel.org> Cc: Robert Moore <robert.moore@intel.com> Cc: "Gustavo A. R. Silva" <gustavoars@kernel.org> Cc: linux-acpi@vger.kernel.org Link: https://lore.kernel.org/all/20221118181538.never.225-kees@kernel.org/ Signed-off-by: Kees Cook <keescook@chromium.org>
- Loading branch information