Re: [PATCH] [next] drm/amdgpu: Replace one-element array with flexible-array member

2022-10-31 Thread Kees Cook
On Fri, Oct 28, 2022 at 09:18:39AM +0200, Christian König wrote: > Am 28.10.22 um 07:10 schrieb Paulo Miguel Almeida: > > One-element arrays are deprecated, and we are replacing them with > > flexible array members instead. So, replace one-element array with > > flexible-array member in struct _ATO

Re: [PATCH] [next] drm/amdgpu: Replace one-element array with flexible-array member

2022-10-31 Thread Paulo Miguel Almeida
On Fri, Oct 28, 2022 at 07:33:17PM +0200, Christian König wrote: > Am 28.10.22 um 18:36 schrieb Kees Cook: > > > All that said, converting away from them can be tricky, and I think such > > conversions need to explicitly show how they were checked for binary > > differences[2]. > > Oh, that's a g

Re: [PATCH] [next] drm/amdgpu: Replace one-element array with flexible-array member

2022-10-28 Thread Christian König
Am 28.10.22 um 18:36 schrieb Kees Cook: On Fri, Oct 28, 2022 at 09:18:39AM +0200, Christian König wrote: Am 28.10.22 um 07:10 schrieb Paulo Miguel Almeida: One-element arrays are deprecated, and we are replacing them with flexible array members instead. So, replace one-element array with flexib

Re: [PATCH] [next] drm/amdgpu: Replace one-element array with flexible-array member

2022-10-28 Thread Christian König
Am 28.10.22 um 07:10 schrieb Paulo Miguel Almeida: One-element arrays are deprecated, and we are replacing them with flexible array members instead. So, replace one-element array with flexible-array member in struct _ATOM_FAKE_EDID_PATCH_RECORD and refactor the rest of the code accordingly. This

[PATCH] [next] drm/amdgpu: Replace one-element array with flexible-array member

2022-10-28 Thread Paulo Miguel Almeida
One-element arrays are deprecated, and we are replacing them with flexible array members instead. So, replace one-element array with flexible-array member in struct _ATOM_FAKE_EDID_PATCH_RECORD and refactor the rest of the code accordingly. This helps with the ongoing efforts to tighten the FORTIF