Re: [PATCH v2] overflow: Change DEFINE_FLEX to take __counted_by member

From: Gustavo A. R. Silva
Date: Wed Mar 06 2024 - 19:41:17 EST




On 3/6/24 17:51, Kees Cook wrote:
The norm should be flexible array structures with __counted_by
annotations, so DEFINE_FLEX() is updated to expect that. Rename
the non-annotated version to DEFINE_RAW_FLEX(), and update the
few existing users.

Signed-off-by: Kees Cook <keescook@xxxxxxxxxxxx>

LGTM:

Reviewed-by: Gustavo A. R. Silva <gustavoars@xxxxxxxxxx>

Thanks!
--
Gustavo