Re: [PATCH] drm/radeon: make -fstrict-flex-arrays=3 happy

2024-04-16 Thread Kees Cook
On Mon, Apr 15, 2024 at 09:38:16AM -0400, Alex Deucher wrote: > The driver parses a union where the layout up through the first > array is the same, however, the array has different sizes > depending on the elements in the union. Be explicit to > fix the UBSAN checker. > > Closes: https://gitlab.

Re: [PATCH] drm/radeon: make -fstrict-flex-arrays=3 happy

2024-04-15 Thread Christian König
Am 15.04.24 um 15:38 schrieb Alex Deucher: The driver parses a union where the layout up through the first array is the same, however, the array has different sizes depending on the elements in the union. Be explicit to fix the UBSAN checker. Closes: https://gitlab.freedesktop.org/drm/amd/-/iss

[PATCH] drm/radeon: make -fstrict-flex-arrays=3 happy

2024-04-15 Thread Alex Deucher
The driver parses a union where the layout up through the first array is the same, however, the array has different sizes depending on the elements in the union. Be explicit to fix the UBSAN checker. Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3323 Fixes: df8fc4e934c1 ("kbuild: Enable