Re: [PATCH] platform/x86: hp-bioscfg: Replace deprecated strncpy() with strscpy()

2025-03-03 Thread Ilpo Järvinen
On Wed, 26 Feb 2025 00:21:27 +0100, Thorsten Blum wrote: > Since kstrtol() requires a NUL-terminated string as input and strncpy() > is deprecated for NUL-terminated destination buffers, use strscpy() > instead. > > Compile-tested only. > > > [...] Thank you for your contribution, it has been

Re: [PATCH] platform/surface: aggregator: Annotate struct ssam_event with __counted_by

2023-09-26 Thread Ilpo Järvinen
On Fri, 22 Sep 2023 10:54:37 -0700, Kees Cook wrote: > Prepare for the coming implementation by GCC and Clang of the __counted_by > attribute. Flexible array members annotated with __counted_by can have > their accesses bounds-checked at run-time checking via CONFIG_UBSAN_BOUNDS > (for array index

Re: [PATCH] platform/x86: hp-bioscfg: Annotate struct bios_args with __counted_by

2023-09-26 Thread Ilpo Järvinen
On Fri, 22 Sep 2023 10:54:21 -0700, Kees Cook wrote: > Prepare for the coming implementation by GCC and Clang of the __counted_by > attribute. Flexible array members annotated with __counted_by can have > their accesses bounds-checked at run-time checking via CONFIG_UBSAN_BOUNDS > (for array index