ACPICA: actbl1: Replace 1-element arrays with flexible arrays
authorKees Cook <kees@outflux.net>
Wed, 5 Apr 2023 13:48:56 +0000 (15:48 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 6 Apr 2023 18:29:11 +0000 (20:29 +0200)
commit48ff467c338b184bc309ea2e0d2a9524f569d245
tree90a69f62459448c3e44b6d0224187bdf717de3ae
parent94bf7c8a626d71a7c206b3e0cdfb43aca305c862
ACPICA: actbl1: Replace 1-element arrays with flexible arrays

ACPICA commit 8c9bd5d151f77767b2fd937911848b7159dc8ee9

Similar to "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).

No .text nor .data differences result from this change.

Link: https://github.com/acpica/acpica/commit/8c9bd5d1
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/acpi/actbl1.h