Re: [PATCH] sctp: Replace zero-length array with flexible array member
From: Kees Cook
Date: Sun Nov 17 2024 - 00:07:08 EST
On Sat, Nov 16, 2024 at 05:28:24PM +0100, Thorsten Blum wrote:
> Replace the deprecated zero-length array with a modern flexible array
> member in the struct sctp_idatahdr.
>
> Link: https://github.com/KSPP/linux/issues/78
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>
Nothing actually uses "payload" so it could probably just be entirely
removed, but yes, this looks like a no-op change.
Reviewed-by: Kees Cook <kees@xxxxxxxxxx>
--
Kees Cook