commit 0016f63547f70f969eeb6030d8d7433b05cae934
Author: Daniel Bertalan <dani@danielbertalan.dev>
AuthorDate: Tue Mar 28 14:07:25 2023 +0200
Commit: Tim Flynn <trflynn89@pm.me>
CommitDate: Wed Mar 29 21:35:53 2023 -0400
AK: Fix Clang 16 UBSan issue with zero-length `Array`
The current implementation of `Array<T, 0>` has a zero-length C array as
its storage type. While this is accepted as a GNU extension, when
compiling with Clang 16, an UBSan error is raised every time an object
is accessed whose only field is a zero-length array.
This is likely a bug in Clang 16's implementation of UBSan, which has
been reported here: https://github.com/llvm/llvm-project/issues/61775