[all-commits] [llvm/llvm-project] e455e6: [libc] Add Annex K strnlen_s function (#186112)
Victor Campos via All-commits
all-commits at lists.llvm.org
Mon Apr 13 05:10:49 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e455e6c9ecae01da8c2959d7dfefa7631373efcb
https://github.com/llvm/llvm-project/commit/e455e6c9ecae01da8c2959d7dfefa7631373efcb
Author: Victor Campos <victor.campos at arm.com>
Date: 2026-04-13 (Mon, 13 Apr 2026)
Changed paths:
M libc/config/baremetal/aarch64/entrypoints.txt
M libc/config/baremetal/arm/entrypoints.txt
M libc/config/baremetal/riscv/entrypoints.txt
M libc/config/darwin/aarch64/entrypoints.txt
M libc/config/darwin/x86_64/entrypoints.txt
M libc/config/gpu/amdgpu/entrypoints.txt
M libc/config/gpu/nvptx/entrypoints.txt
M libc/config/gpu/spirv/entrypoints.txt
M libc/config/linux/aarch64/entrypoints.txt
M libc/config/linux/arm/entrypoints.txt
M libc/config/linux/riscv/entrypoints.txt
M libc/config/linux/x86_64/entrypoints.txt
M libc/config/windows/entrypoints.txt
M libc/fuzzing/string/CMakeLists.txt
A libc/fuzzing/string/strnlen_s_differential_fuzz.cpp
M libc/include/CMakeLists.txt
M libc/include/string.yaml
M libc/src/string/CMakeLists.txt
M libc/src/string/string_utils.h
M libc/src/string/strnlen.cpp
A libc/src/string/strnlen_s.cpp
A libc/src/string/strnlen_s.h
M libc/test/src/string/CMakeLists.txt
A libc/test/src/string/strnlen_s_test.cpp
M libc/utils/docgen/string.yaml
Log Message:
-----------
[libc] Add Annex K strnlen_s function (#186112)
This patch adds the `strnlen_s` function from Annex K.
In order to reduce duplication between `strnlen` and `strnlen_s`, the
common logic has been extracted to a new internal function which both
now call.
In addition to the function definition, the patch adds a unit test and a
fuzzing test.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list