diff options
author | Kees Cook <kees@outflux.net> | 2023-02-23 17:12:21 -0800 |
---|---|---|
committer | Kees Cook <kees@outflux.net> | 2023-03-02 11:02:28 -0800 |
commit | 151a44c5da640537271a3400c9049511a6e1360f (patch) | |
tree | d1bc17b4aad8cc17a1925c358e4446289cab5eb6 /source | |
parent | 446d05d5ea77946b8b3b8d0c638d1a446b18503e (diff) | |
download | acpica-151a44c5da640537271a3400c9049511a6e1360f.tar.gz |
ACPI_EFI_FILE_INFO: 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).
No binary changes appear in the .text nor .data sections.
Diffstat (limited to 'source')
-rw-r--r-- | source/include/platform/acefiex.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/include/platform/acefiex.h b/source/include/platform/acefiex.h index dce3518be..8df422b44 100644 --- a/source/include/platform/acefiex.h +++ b/source/include/platform/acefiex.h @@ -508,7 +508,7 @@ typedef struct { ACPI_EFI_TIME LastAccessTime; ACPI_EFI_TIME ModificationTime; UINT64 Attribute; - CHAR16 FileName[1]; + CHAR16 FileName[]; } ACPI_EFI_FILE_INFO; #define SIZE_OF_ACPI_EFI_FILE_INFO ACPI_OFFSET(ACPI_EFI_FILE_INFO, FileName) |