Skip to content

Commit e90ce51

Browse files
committed
Disable asan on last wide string function
1 parent 3596005 commit e90ce51

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libc/src/string/string_utils.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,9 @@ template <typename T> LIBC_INLINE size_t string_length(const T *src) {
116116
}
117117

118118
template <typename Word>
119-
LIBC_INLINE void *find_first_character_wide_read(const unsigned char *src,
120-
unsigned char ch, size_t n) {
119+
[[gnu::no_sanitize_address]] LIBC_INLINE void *
120+
find_first_character_wide_read(const unsigned char *src, unsigned char ch,
121+
size_t n) {
121122
const unsigned char *char_ptr = src;
122123
size_t cur = 0;
123124

0 commit comments

Comments
 (0)