Re: [PATCH][next] platform/chrome: Fix -Warray-bounds warnings

2023-12-15 Thread Tzung-Bi Shih
On Wed, 29 Mar 2023 19:54:02 -0600, Gustavo A. R. Silva wrote: > GCC-13 (and Clang) does not like having a partially allocated object, > since it cannot reason about it for bounds checking. > > Notice that the compiler is legitimately complaining about accessing > an object (params, in this case)

Re: [PATCH][next] platform/chrome: Fix -Warray-bounds warnings

2023-12-14 Thread Kees Cook
On Wed, Mar 29, 2023 at 07:54:02PM -0600, Gustavo A. R. Silva wrote: > GCC-13 (and Clang) does not like having a partially allocated object, > since it cannot reason about it for bounds checking. > > Notice that the compiler is legitimately complaining about accessing > an object (params, in this

Re: [PATCH][next] platform/chrome: Fix -Warray-bounds warnings

2023-12-14 Thread Kees Cook
On Wed, Mar 29, 2023 at 07:54:02PM -0600, Gustavo A. R. Silva wrote: > GCC-13 (and Clang) does not like having a partially allocated object, > since it cannot reason about it for bounds checking. > > Notice that the compiler is legitimately complaining about accessing > an object (params, in this