Re: [PATCH v2][next] overflow: Fix direct struct member initialization in _DEFINE_FLEX()
From: Kees Cook
Date: Thu May 01 2025 - 19:30:39 EST
On Thu, 01 May 2025 16:23:43 -0600, Gustavo A. R. Silva wrote:
> Currently, to statically initialize the struct members of the `type`
> object created by _DEFINE_FLEX(), the internal object `obj` must be
> explicitly referenced at the call site. See:
>
> struct flex {
> int a;
> int b;
> struct foo flex_array[];
> };
>
> [...]
Applied to for-next/hardening, thanks!
[1/1] overflow: Fix direct struct member initialization in _DEFINE_FLEX()
https://git.kernel.org/kees/c/d2e95bf39497
Take care,
--
Kees Cook