[libc-commits] [libc] e90ce51 - Disable asan on last wide string function
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Thu Aug 21 06:30:59 PDT 2025
Author: Joseph Huber
Date: 2025-08-21T08:30:47-05:00
New Revision: e90ce511e0dc9230c941af6328d781424b9566b4
URL: https://github.com/llvm/llvm-project/commit/e90ce511e0dc9230c941af6328d781424b9566b4
DIFF: https://github.com/llvm/llvm-project/commit/e90ce511e0dc9230c941af6328d781424b9566b4.diff
LOG: Disable asan on last wide string function
Added:
Modified:
libc/src/string/string_utils.h
Removed:
################################################################################
diff --git a/libc/src/string/string_utils.h b/libc/src/string/string_utils.h
index cc99633aa49d8..ea2e7b2e9eb4c 100644
--- a/libc/src/string/string_utils.h
+++ b/libc/src/string/string_utils.h
@@ -116,8 +116,9 @@ template <typename T> LIBC_INLINE size_t string_length(const T *src) {
}
template <typename Word>
-LIBC_INLINE void *find_first_character_wide_read(const unsigned char *src,
- unsigned char ch, size_t n) {
+[[gnu::no_sanitize_address]] LIBC_INLINE void *
+find_first_character_wide_read(const unsigned char *src, unsigned char ch,
+ size_t n) {
const unsigned char *char_ptr = src;
size_t cur = 0;
More information about the libc-commits
mailing list