Re: [PATCH][next] drm/nouveau/nvkm: Replace zero-length array with flexible-array member

2023-01-16 Thread Karol Herbst
Reviewed-by: Karol Herbst will push in a moment On Thu, Jan 12, 2023 at 11:49 PM Kees Cook wrote: > > On Mon, Jan 09, 2023 at 07:39:30PM -0600, Gustavo A. R. Silva wrote: > > Zero-length arrays are deprecated[1] and we are moving towards > > adopting C99 flexible-array members instead. So,

Re: [PATCH][next] drm/nouveau/nvkm: Replace zero-length array with flexible-array member

2023-01-12 Thread Kees Cook
On Mon, Jan 09, 2023 at 07:39:30PM -0600, Gustavo A. R. Silva wrote: > Zero-length arrays are deprecated[1] and we are moving towards > adopting C99 flexible-array members instead. So, replace zero-length > array declaration in struct nvfw_hs_load_header_v2 with flex-array > member. > > This

[PATCH][next] drm/nouveau/nvkm: Replace zero-length array with flexible-array member

2023-01-09 Thread Gustavo A. R. Silva
Zero-length arrays are deprecated[1] and we are moving towards adopting C99 flexible-array members instead. So, replace zero-length array declaration in struct nvfw_hs_load_header_v2 with flex-array member. This helps with the ongoing efforts to tighten the FORTIFY_SOURCE routines on memcpy() and