Re: [PATCH v3 0/2] Add wcslen()
From: Kees Cook
Date: Thu Apr 03 2025 - 13:18:28 EST
On Fri, 28 Mar 2025 12:26:30 -0700, Nathan Chancellor wrote:
> A recent LLVM change [1] introduces a call to wcslen() in
> fs/smb/client/smb2pdu.c through UniStrcat() via
> alloc_path_with_tree_prefix(). Similar to the bcmp() and stpcpy()
> additions that happened in 5f074f3e192f and 1e1b6d63d634, add wcslen()
> to fix the linkage failure.
>
> [1]: https://github.com/llvm/llvm-project/commit/9694844d7e36fd5e01011ab56b64f27b867aa72d
>
> [...]
Applied to for-next/hardening, thanks!
[1/2] include: Move typedefs in nls.h to their own header
https://git.kernel.org/kees/c/21592017d384
[2/2] lib/string.c: Add wcslen()
https://git.kernel.org/kees/c/61df817d1d1b
Take care,
--
Kees Cook