Re: [PATCH v2][next] stddef: Introduce TRAILING_OVERLAP() helper macro

From: Kees Cook
Date: Wed Jun 18 2025 - 17:31:16 EST


On Tue, 17 Jun 2025 13:05:36 -0600, Gustavo A. R. Silva wrote:
> Add new TRAILING_OVERLAP() helper macro to create a union between
> a flexible-array member (FAM) and a set of members that would
> otherwise follow it. This overlays the trailing members onto the
> FAM while preserving the original memory layout.
>
>

Applied to for-next/hardening, thanks!

[1/1] stddef: Introduce TRAILING_OVERLAP() helper macro
https://git.kernel.org/kees/c/29bb79e9dbf1

Take care,

--
Kees Cook