[V1][PATCH 0/3] New attribute "element_count" to annotate bounds for C99 FAM(PR108896)
Qing Zhao
qing.zhao@oracle.com
Tue May 30 21:44:04 GMT 2023
> On May 26, 2023, at 12:12 PM, Kees Cook <keescook@chromium.org> wrote:
>
> On Thu, May 25, 2023 at 04:14:47PM +0000, Qing Zhao wrote:
>> This patch set introduces a new attribute "element_count" to annotate bounds
>> for C99 flexible array member.
>
> Thank you for this work! I'm really excited to start using it in the
> Linux kernel. I'll give this a spin, but I know you've already been
> testing this series against the test cases I created earlier, so I don't
> expect any problems. :)
>
> One bike-shedding note: with the recent "-fbounds-safety" RFC posted for
> LLVM, we may want to consider renaming "element_count" to "counted_by":
> https://discourse.llvm.org/t/rfc-enforcing-bounds-safety-in-c-fbounds-safety/
Yeah, we can do that.
thanks.
Qing
>
> Thanks again!
>
> -Kees
>
> --
> Kees Cook
More information about the Gcc-patches
mailing list